Rasa
{
"verb": "rasa",
"url": "http://my-assitant.acme.com/webhooks/rest/webhook?token=foobarbazzle",
"prompt": "Hello there! What can I do for you today?",
"eventHook": "/rasa/event",
"actionHook": "/rasa/action"
}
Parameters
urlstringURL to connect to the Rasa assistant using the RestInput channel.
actionHookstringA webhook that is called when the Rasa Function completes.
eventHookstringA webhook that is called when the Rasa assistant returns either a user message or a bot message.
promptstringAn initial greeting to play to the user.
recognizerobjectIf provided, the speech recognition settings to use (defaults to application settings).
recognizer.hintsarrayArray of words or phrases to assist speech detection.
recognizer.languagestringLanguage code to use for speech detection.
Defaults to the application-level setting or 'en-US' if not set.
recognizer.profanityFilterbooleanIf true, filter profanity from speech transcription.
Default: false.
recognizer.vendorstringSpeech vendor to use (currently only Google is supported).
ttsobjectIf provided, audio prompts will be played using these text-to-speech choices rather than the application defaults.
tts.genderstring(Google only) MALE, FEMALE, or NEUTRAL.
tts.languagestringLanguage code to use.
tts.vendorstringSpeech vendor to use: Google, AWS (alias: Polly), or default (for application default).
tts.voicestringVoice to use. Note that the voice list differs depending on whether you are using AWS or Google.
Defaults to the application setting, if provided.
actionHook properties
The actionHook webhook will contain the following additional parameters:
rasaResult: the completion reason:caller hungup- the caller hungupredirect- a new application was returned from an event webhook and is now being executedtimeout- the user did not respond to a promptwebhookError- an error was received attempting to call an event webhook
eventHook properties
The eventHook webhook will contain two parameters: event and message.
The event parameter will be either userMessage or botMessage depending on whether
the message comes from the user or the rasa assistant, and message will contain the message itself.
Your event webhook may return a new application in a json payload, in which case the call
will be redirected to that application.