> ## Documentation Index
> Fetch the complete documentation index at: https://docs.testdriver.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# AI Chatbots

> Integrate AI chatbots into your testing workflow.

# Testing AI Chatbots with TestDriver

TestDriver can be used to test AI chatbots, or any two way assertions like:

* Approval workflows
* Chatbots
* Email or SMS notifications
* And more!

This scenario is an example of how to set up and run tests for an AI chatbot using TestDriver.

## Prerequisites

Before running the tests, ensure you have performed the following steps:

1. If you haven't already, signup for a Free Trial on the [TestDriver website](https://testdriver.ai/pricing)
2. Run the `init` command to set up the TestDriver configuration using the API key you got when you signed up for the trial:

```bash theme={null}
npx testdriverai@latest init
```

<Check>Now you are ready to run the tests!</Check>

## Scenario overview

1. Load a website with an AI chatbot.
2. Type a chat message or ask a question.
3. Wait for the chatbot to respond.
4. Verify that the chatbot's response is correct and meets the expected criteria.
