Integrating a Custom LLM with Millis AI Voice Agent
start_call
event to tell your server when the conversation starts.
end_of_stream
.
flush
: Set this to true
to instruct the agent to immediately generate audio based on the current response. If false
, the agent will buffer the response and generate audio only when it receives a complete sentence.pause
: Set this to a number of milliseconds to instruct the agent to pause for that long after saying the response before saying the next response.stream_id
from the original request so that we can keep track of which response corresponds to which request.start_call
event, use the stream_id
from the start_call
event.stream_response
, you can send the following types:
stream_id
: The unique identifier for the stream.destination
: The phone number or endpoint to transfer the call to.partial_transcript
session_id
: The unique identifier for the session.transcript
: The partial or complete transcript text.is_final
: Boolean indicating whether the transcript is final.playback_finished
session_id
: The unique identifier for the session.stream_id
: The unique identifier for the stream.interrupt
stream_id
: The unique identifier for the stream.