tts:say
- Speak a message using text-to-speech.tts:interrupt
- Interrupt the current text-to-speech message.llm:append_to_messages
- Append a context to the current LLM messages.
Obtaining available actions
To obtain a list of available actions, you can use thedescribeActions
method on the RTVI client.
Anatomy of an action
An action object has the following properties:service
- The service that the action belongs to.action
- The name of the action, as defined by the bot.arguments
- An array of argument objects that the action accepts.
Dispatching an action
error-response
typed message with the same unique ID assigned by the client, triggering a rejection.
You can handle error responses in multiple ways:
onMessageError
callbackMessageError
event- try / catching the promise
Action response data
Some actions resolve with data. This data is specific to the action and is defined by the bot. A successful action will resolve withVoiceMessageActionResponse
:
VoiceMessageActionResponse
object, which contains the result
property.