# Create your first AI agent

> Go from a new account to an AI agent answering on your website in five steps.

Source: https://askmavis.co/help/create-your-first-ai-agent  
Collection: Getting started  
Last updated: 2026-12-05

This guide takes you from a new account to an AI agent that answers visitors on your website. It takes about 15 minutes.

![Animation: on the Training tab, a Q&A pair asking whether the shop ships to New Zealand is added, then the same question is asked in the Playground and the AI agent answers with the new pair.](https://askmavis.co/help-media/create-your-first-ai-agent/first-agent-flow.webp)

What the animation shows:

1. On **Training**, click **Add Q&A pair**.
2. Type a question and its answer, then click **Add Pair**.
3. Open **Playground** and ask the same question.
4. The AI agent answers from the pair you just added.

## 1. Create the agent

1. Sign in and open **Agents**.
2. Click **Create agent**.
3. The name starts as **Mavis**. Keep it or type your own, for example "Customer support", then click **Create agent**. You can rename the agent later in its settings.

![The Agents page with the name Customer support typed in, ready to create the agent.](https://askmavis.co/help-media/create-your-first-ai-agent/1-create-agent.webp)

Your plan sets how many agents you can have. Free and Starter include one agent, Growth includes three and Business includes ten.

## 2. Add training content

Your agent answers from the content you give it, so this is the most important step.

1. Open your agent and go to **Training**.
2. Add what you have:
   - **Q&A** for questions that need an exact answer, like your refund policy.
   - **Text snippets** for longer details, like opening hours or shipping rules.
   - **Files** such as PDFs, Word documents or spreadsheets.
   - **Help articles** from your AskMavis help center.

![The Q&A tab on Training, with a new pair: Do you ship to New Zealand? and its answer.](https://askmavis.co/help-media/create-your-first-ai-agent/2-training-qa.webp)

See [Add training content](https://askmavis.co/help/add-training-content) for what each type is best for.

## 3. Test it in the Playground

1. Go to **Playground**.
2. Ask the questions your customers ask most.
3. If an answer is wrong or missing, add or fix training content and ask again.

![The AI playground answering Do you ship to New Zealand? with the shipping time and free shipping rule from the Q&A pair.](https://askmavis.co/help-media/create-your-first-ai-agent/3-playground.webp)

You can also write **instructions** here to set the agent's tone, and pick its **AI model**.

## 4. Publish

Changes to instructions, the model, actions and procedures are saved to a draft first. When you're happy, click **Publish** so visitors get them. Training content saves straight away and doesn't need publishing.

## 5. Install it on your website

1. Go to **Guardrails**. Under **Allowed domains**, type your website, for example `example.com`, click **Add**, then click **Save changes**. The widget only loads on these sites.

   ![Allowed domains on Guardrails.](https://askmavis.co/help-media/create-your-first-ai-agent/5-allowed-domains.webp)
2. Go to **Install** and click **Enable widget**.
3. Copy the **Website install code** and paste it at the end of the body on every page, just before the closing `</body>` tag. Most site builders have a "footer code" setting for this.

![The Install tab with the Enable widget button, the Website install code and steps for each website builder.](https://askmavis.co/help-media/create-your-first-ai-agent/6-install.webp)

Open your website and the chat launcher appears in the corner. See [Add the messenger to your website](https://askmavis.co/help/add-the-messenger-to-your-website) for site builders and more options.

## Next steps

- [Customise the messenger](https://askmavis.co/help/customise-the-messenger) so it matches your brand.
- [Set up handoff to your team](https://askmavis.co/help/talk-to-a-person) for questions the agent can't answer.
- [Get better answers from your agent](https://askmavis.co/help/get-better-answers)
