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.
- They are service specific
- They do not trigger callbacks or events
- They return a Promise that resolves once the bot has processed the action.
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:
onMessageErrorcallbackMessageErrorevent- 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 withRTVIActionResponse:
RTVIActionResponse object, which contains a result property with any associated data.