Skip to navigation

proactives

Read and change the Proactive Outreach of your AI Agent. Each proactive is a message that the chat widget shows on matching pages, as in Messaging Proactive Outreach.

Commands

CommandWhat it does
proactives listLists proactives, one page at a time.
proactives get <id>Shows one proactive.
proactives createCreates a proactive. It starts off unless you pass --active.
proactives update <id>Changes a proactive, or turns it on or off. adacli sends only the fields that change.
proactives delete <id>Deletes a proactive.
proactives translation-preview <id>Shows the machine translation of a proactive message in one language.

Examples

Show a message on pricing pages, one time in each session, 5 seconds after the page opens:

adacli acme proactives create --name "Pricing help" --message "Questions about our plans?" \
--url-condition contains:/pricing --frequency session --delay 5 --active

Pause a proactive:

adacli acme proactives update <proactive-id> --status paused

Preview the French translation of a message, then save a French message:

adacli acme proactives translation-preview <proactive-id> --language fr
adacli acme proactives update <proactive-id> --language fr --message "Des questions sur nos forfaits ?"

Link a v2 Playbook to a proactive. --dry-run shows the request and sends nothing:

adacli acme proactives update <proactive-id> --playbook <playbook-id> --dry-run
adacli acme proactives update <proactive-id> --playbook <playbook-id>

Copy a proactive. The copy starts off:

adacli acme proactives get <proactive-id> --json > proactive.json
adacli acme proactives create --file proactive.json --name "Copy of pricing help"

Details

  • A proactive always keeps a message in the default language of the AI Agent. create and update refuse a change that removes it.
  • --message replaces the messages of the --language you give. Repeat --message to add more messages.
  • The URL condition types are equals, contains, ends-with, and regex. Repeat --url-condition to add more. To replace the list, add --clear-url-conditions.
  • --frequency takes always, session, or user. --duration none keeps the message open until the end user closes it.
  • The key that the Web SDK triggers comes from the name, unless you pass --key.
  • --playbook takes an active v2 Playbook. --playbook none removes the link.
  • --file takes JSON in the get --json shape. The options on the command line apply after the file.

For every option of a command, run it with --help, for example adacli acme proactives update --help.

  • playbooks: build the Playbook that a proactive runs.
  • languages: see the languages of your AI Agent.
  • start-triggers: run a Playbook when a conversation starts.