> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.ada.cx/llms.txt.

# proactives

Read and change the [Proactive Outreach](/docs/automation/proactive-outreach) of your AI Agent. Each proactive is a message that the chat widget shows on matching pages, as in [Messaging Proactive Outreach](/docs/automation/proactive-outreach/messaging).

## Commands

| Command                               | What it does                                                                          |
| ------------------------------------- | ------------------------------------------------------------------------------------- |
| `proactives list`                     | Lists proactives, one page at a time.                                                 |
| `proactives get <id>`                 | Shows one proactive.                                                                  |
| `proactives create`                   | Creates 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:

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

Pause a proactive:

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

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

```bash
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:

```bash
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:

```bash
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`.

## Related commands

* [`playbooks`](/adacli/commands/playbooks): build the Playbook that a proactive runs.
* [`languages`](/adacli/commands/languages): see the languages of your AI Agent.
* [`start-triggers`](/adacli/commands/start-triggers): run a Playbook when a conversation starts.

---

Have any questions? Contact your Ada team, or email us at [](mailto:help@ada.cx?subject=Help%20Docs%20inquiry).