Build your agent
Say
Speaks a line you write: greetings, confirmations, goodbyes. Can also speak what an AI decision wrote.
Type: out.
What it does
- Starts from
out_dictexactly as written: usuallyspeak, and sometimeshangupor your own keys. - Adds each value named in
variablesfrom the call's state. Names with no value yet are left out. - Sends the result to the caller.
speakis spoken,hangup: trueends the call once it's said, and anything else travels with the turn to your webhook.
Settings
Everything goes in the step's parameters. In the editor, click the step to open its settings.
interruption_typestring- In the editor: If the caller interrupts. What happens when the caller talks over the agent. Default:
"full". out_dictobject- In the editor: Also send (More tab). Extra details sent to your webhook, not spoken — like end the call.
variablesstring[]- In the editor: Pass along (More tab). Values from earlier steps to send with it.
out_dict.speakstring- In the editor: What to say. Spoken exactly as written. Leave it out to say nothing of your own.
interruption_metadataobject- Numbers for the timed and length-based interruption types:
duration(seconds),length(words),ignore-words. removeboolean- Clean the
variablesbefore sending. Withremove_tts, strips emotion cues such as[laughs](for example, to show them in a transcript). Defaultfalse. remove_ttsboolean- Strip voice cues when
removeis on. Defaultfalse. remove_tts_namestring- Which cue style to strip. Default
"eleven_v3".
Examples
A fixed line
A greeting that can’t be talked over:
{ "type": "out", "parameters": { "out_dict": { "speak": "Hi! Thanks for calling Sunrise Dental." }, "interruption_type": "no" }, "next": "ask_for_input"}Speak what the AI decided
After an AI decision, speak its reply and pass on its hang-up decision:
{ "type": "out", "parameters": { "variables": [ "speak", "hangup" ] }, "next": "ask_for_input"}Send data without speaking
Record an outcome for your webhook, silently:
{ "type": "out", "parameters": { "out_dict": { "stage": "booking_confirmed" }, "variables": [ "outcome" ] }}