Skip to navigation

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

CommandWhat it does
start-triggers listLists each channel with the Playbook that runs when a conversation starts and before the Agent ends it.
start-triggers unassignedLists the channels of the AI Agent that have no start trigger.
start-triggers set <channels...>Runs a v2 Playbook when a conversation starts on each channel you give.
start-triggers clear <channels...>Removes the trigger from each channel you give.

Examples

Run a Playbook when a conversation starts on Messaging and on Voice:

adacli acme start-triggers set messaging voice --playbook <playbook-id>

Run the Playbook on SMS even when the conversation asks for a specific greeting response:

adacli acme start-triggers set sms --playbook <playbook-id> --authoritative

Run a Playbook before the AI Agent ends a Messaging conversation:

adacli acme start-triggers set before-end-messaging --playbook <playbook-id>

Find the channels that run a Playbook before you turn the Playbook off:

adacli acme start-triggers list --playbook <playbook-id>

Send Messaging and Voice back to the standard greeting:

adacli acme start-triggers clear messaging voice

Details

  • The channel names are messaging, voice, email, sms, whatsapp, web, before-end-messaging, before-end-voice, and more. start-triggers set --help lists 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.
  • set and clear send one request for all the channels you give. Do not run two set or clear commands 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, set saves 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.

  • 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.