Server and Client
ClientInboundMessage
- Quickstart
- API Reference
- Dashboard
- Community
- GitHub
- POSTCreate Assistant
- GETGet Assistant
- GETList Assistants
- PATCHUpdate Assistant
- DELDelete Assistant
- POSTCreate Phone Number
- GETGet Phone Number
- GETList Phone Numbers
- PATCHUpdate Phone Number
- DELDelete Phone Number
- POSTCreate Analytics Queries
Assistants
Phone Numbers
Analytics
Server and Client
ClientInboundMessage
{
"message": {
"type": "add-message",
"message": {
"content": "<string>",
"role": "assistant"
}
}
}
message
object
requiredThese are the messages that can be sent from client-side SDKs to control the call.
message.type
enum<string>
requiredThis is the type of the message. Send "add-message" message to add a message to the conversation history.
Available options:
add-message
message.message
object
requiredThis is the message to add to the conversation.
message.message.content
string | null
requiredmessage.message.role
enum<string>
requiredAvailable options:
assistant
, function
, user
, system
, tool
Was this page helpful?
{
"message": {
"type": "add-message",
"message": {
"content": "<string>",
"role": "assistant"
}
}
}