start-triggers
Choose the Playbook that runs when a conversation starts on a channel. In the dashboard, this is the When a conversation starts event of a Playbook. The before-end-* channel names set the Playbook that runs before the AI Agent ends the conversation.
Commands
Examples
Run a Playbook when a conversation starts on Messaging and on Voice:
Run the Playbook on SMS even when the conversation asks for a specific greeting response:
Run a Playbook before the AI Agent ends a Messaging conversation:
Find the channels that run a Playbook before you turn the Playbook off:
Send Messaging and Voice back to the standard greeting:
Details
- The channel names are
messaging,voice,email,sms,whatsapp,web,before-end-messaging,before-end-voice, and more.start-triggers set --helplists all of them. - The API refuses a channel that the AI Agent does not have.
- The Playbook must be a v2 Playbook. The API does not check that the Playbook is active, but an inactive Playbook does not run.
- A new trigger is not authoritative. If you give no authoritative option, each channel keeps its current value.
setandclearsend one request for all the channels you give. Do not run twosetorclearcommands at the same time.- The dashboard stops you from turning off a Playbook that is the Messaging or Voice start trigger. adacli does not do this check.
- If start triggers are not turned on for your AI Agent,
setsaves the trigger and prints a warning. Ada does not use the trigger until the feature is on.
For every option of a command, run it with --help, for example adacli acme start-triggers set --help.
Related commands
playbooks: create and edit the Playbook that a trigger runs.channels: see the channels that your AI Agent has.proactives: link a Playbook to a proactive message.