Skip to content

request

Dmitriy Chechyotkin edited this page Mar 16, 2020 · 3 revisions

BotRequest contains a channel-related request data and available through request variable in the action block of the dialogue state.

In general this object contains at least type of the request, user's identifier and an input. Each channel defines it's own implementation of BotRequest with additional channel-related request fields.

Request type

JAICF defines three types of the request: query, event and intent.

User ID

Channel-related user's identifier is contained in request.cluentId variable.

Input

request.input variable contains an input string that corresponds to the request's type.

For event and intent request it is a name of event or intent accordingly. In case of query request this variable contains a raw text of the user's request.

Clone this wiki locally