Below isthe is the web service to call up to interact with the bot.
...
To ask a question (any type of text sent by the customer) to the Bot specify the standard "RFAQ" node in the request and pass the text of the question in the "hda_sematic_question" parameter.
Syntax:
where “brainURL” is the url configured in the bot configuration stored in “botconfigurations” collection in mongoDB
Query string parameters:
Name | Description |
---|---|
hda_semantic_question | Text that will be passed to the bot to be interpreted |
...
This service must be called whenever it is specified by a previous response. For example, in the case of a menu, one of the options can specify a node url to be called in the "targetUrl" parameter if the option is chosen by the user.
Syntax:
HTTP GET http://{brain-host}:{port}/brain/autojson/{brain-service}/{node} {brainURL}/targetURL
headers = {
cookie: <BRAINSID_SessionCookie>
};
...