Understanding Calls in Ultravox
inactivityMessages
are an array of message objects.
Call Starts
inactivityMessages
above, the call is created and joined.User Stops Interacting - First Message
Inactivity Continues - Second Message
Inactivity Continues - Call Ends
initialMessages
. By default, new calls don’t have initial messages and call stages inherit the prior stage’s messages. New calls will inherit messages if priorCallId
is set.
These messages can serve the purpose of giving the agent call history or to give examples for few-shotting (e.g. if you want the agent to learn how to respond in a specific way to user input).
initialMessages
must be an array of message objects where each message contains a role
and text
.
See “Response” under List Call Messages for more details.