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

# chat

Chat with your AI Agent in the terminal, as an end user would. Use it for a quick check of a reply, or to chat with a change set before you promote it. In the dashboard, the same check is [Interactive Testing](/docs/optimization/testing/interactive-testing).

## Commands

| Command     | What it does                                                  |
| ----------- | ------------------------------------------------------------- |
| `chat`      | Starts an interactive chat. It is the same as `chat talk`.    |
| `chat talk` | Starts an interactive chat. It reads each message from stdin. |

## Examples

Start a chat with the live configuration:

```bash
adacli acme chat
```

Set metavariables for the end user when the conversation starts:

```bash
adacli acme chat --var language=fr --var user_tier=premium
```

Chat with the staged configuration of a change set:

```bash
adacli acme chat --changeset <changeset-id>
```

Send one message, then end the chat:

```bash
printf 'Where is my order?\n\n' | adacli acme chat
```

## Details

* Type a message and press Enter to send it. To end the chat, press Enter on an empty line.
* To change metavariables during the chat, type `/set key=value`. `/get` and `/help` are also available.
* adacli writes each reply and one `__CONVO_ID__ <id>` line to stdout. Use the ID with the [`conversations`](/adacli/commands/conversations) commands.
* adacli waits 60 seconds for each reply. To change the wait, set `--timeout` in milliseconds.
* If adacli cannot use the change set ID, the chat uses the live configuration and shows no error.
* A chat with a change set does not remove the `untested` warning of `changesets promote`. Only a test run does.

For every option of a command, run it with `--help`, for example `adacli acme chat talk --help`.

## Related commands

* [`testing`](/adacli/commands/testing): run test cases in bulk.
* [`changesets`](/adacli/commands/changesets): stage the changes to chat with.
* [`conversations`](/adacli/commands/conversations): read the conversation after the chat.

---

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