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

# Create an AI agent — Complete guide

> How to build an AI agent in Mindo end to end - the prompt, your business policies, capabilities, testing, settings and change history

An **AI agent** is the assistant that automatically replies to your customers on WhatsApp, Instagram or the web widget. In this guide you'll build one from scratch: create it, write its prompt, load your business rules, add capabilities, test it and get it ready for production.

Everything happens under **Messaging → AI Agents** (`/dashboard/ai-agents-management`).

## Demo video

<iframe width="100%" height="400" src="https://www.youtube.com/embed/lOWrtXRwYss" frameBorder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowFullScreen />

<Note>
  The video is narrated in Spanish, but the on-screen steps match this guide exactly.
</Note>

## Before you start

* You need access to the **AI Agents** section of your Mindo account.
* For the agent to actually reply you'll need a **connected WhatsApp session**. You can create the agent first and connect a session later.

## Create the agent

<Steps>
  <Step title="Open AI Agents">
    In the left menu, under **Messaging**, click **AI Agents**. You'll see every agent in your account with its status (Active / Inactive) and three shortcuts per card: **Test agent**, **Quick Chat** and **Settings**.

    <Frame caption="List of AI agents in the account">
      <img src="https://mintcdn.com/mindo/0Wc4nTmWU9IVNFWm/images/crear-agente-ia-01-listado.png?fit=max&auto=format&n=0Wc4nTmWU9IVNFWm&q=85&s=f38d67376ee0cb900fdd11d1133c9d49" alt="AI Agents management screen showing the agent cards and their statuses" width="1920" height="1080" data-path="images/crear-agente-ia-01-listado.png" />
    </Frame>
  </Step>

  <Step title="Pick the agent type">
    Click **Create New Agent**. Mindo asks which type you want:

    * **Ecommerce** (recommended): asks you a few questions about your business and **auto-generates the prompt** by analysing your website. Ideal for online stores.
    * **Custom**: starts blank and you configure everything yourself.

    **ECommerce Custom**, **Flow** and **Import agent** are for advanced cases. If you need them, talk to your Mindo contact.

    <Frame caption="Modal with the available agent types">
      <img src="https://mintcdn.com/mindo/0Wc4nTmWU9IVNFWm/images/crear-agente-ia-02-tipos.png?fit=max&auto=format&n=0Wc4nTmWU9IVNFWm&q=85&s=ed16b37d3456eeb4a0bc7305c67d6d4e" alt="Create New Agent modal with the Ecommerce, ECommerce Custom, Custom, Flow and Import agent options" width="1920" height="1080" data-path="images/crear-agente-ia-02-tipos.png" />
    </Frame>
  </Step>

  <Step title="Name it">
    Type the **Agent Name** (at least 3 characters) and click **Create New Agent**.

    <Frame caption="Name of the new agent">
      <img src="https://mintcdn.com/mindo/0Wc4nTmWU9IVNFWm/images/crear-agente-ia-03-nombre.png?fit=max&auto=format&n=0Wc4nTmWU9IVNFWm&q=85&s=5ccbcd11e4d3060695630d45b9059d58" alt="Agent Settings modal with the Agent Name field filled in" width="1920" height="1080" data-path="images/crear-agente-ia-03-nombre.png" />
    </Frame>
  </Step>

  <Step title="Get to know the agent page">
    The agent now exists. At the top you have the **status**, a **search box** (`⌘K`) that finds anything inside the agent, and the **Deactivate**, **Publish** and **Full history** buttons. On the left, the six tabs: **Prompt**, **Knowledge**, **Capabilities**, **Testing**, **Settings** and **History**.

    <Frame caption="Agent page with its six tabs">
      <img src="https://mintcdn.com/mindo/0Wc4nTmWU9IVNFWm/images/crear-agente-ia-04-pagina.png?fit=max&auto=format&n=0Wc4nTmWU9IVNFWm&q=85&s=fd30ecd23dbbdf2b54c70cb225261c32" alt="Agent page showing the header and the Prompt, Knowledge, Capabilities, Testing, Settings and History tabs" width="1920" height="1080" data-path="images/crear-agente-ia-04-pagina.png" />
    </Frame>
  </Step>
</Steps>

## Prompt

The **prompt** defines who the agent is and how it speaks.

<Steps>
  <Step title="Write the System Prompt">
    On the **Prompt** tab, click **Edit** on the *System Prompt* card and describe in plain language who the agent is, how it should talk and what it can resolve. It's Markdown, so you can use lists and bold.

    <Frame caption="System Prompt editor">
      <img src="https://mintcdn.com/mindo/0Wc4nTmWU9IVNFWm/images/crear-agente-ia-05-prompt-editor.png?fit=max&auto=format&n=0Wc4nTmWU9IVNFWm&q=85&s=1ee62c5cb56bc89d2d9bfc35eb5d115f" alt="System Prompt editor with the agent text and the Cancel and Save buttons" width="1920" height="1080" data-path="images/crear-agente-ia-05-prompt-editor.png" />
    </Frame>
  </Step>

  <Step title="Save and check the environment">
    Click **Save**. Notice the selector that reads **Development**: you're editing the test version, so nothing reaches your customers yet. It only goes live when you **publish**.
  </Step>

  <Step title="Roll back with the version history">
    The **History** button stores every version with its date and author. If a change didn't work out, you can go back to the previous version without losing anything.

    <Frame caption="Prompt version history">
      <img src="https://mintcdn.com/mindo/0Wc4nTmWU9IVNFWm/images/crear-agente-ia-06-prompt-historial.png?fit=max&auto=format&n=0Wc4nTmWU9IVNFWm&q=85&s=fec398d4eec00fefe506baa5e5285bcd" alt="Version history modal showing version v1 marked as Current" width="1920" height="1080" data-path="images/crear-agente-ia-06-prompt-historial.png" />
    </Frame>
  </Step>

  <Step title="Task Flows (optional)">
    Further down, **Task Flows** makes the agent follow a fixed sequence of steps — for example, always asking for the order number before answering.
  </Step>
</Steps>

## Knowledge: structured policies

**Structured Policies** are your concrete business rules, written clearly so the agent can use them when replying. Keeping them separate from the prompt means you can update a deadline or a condition without touching the agent's personality.

<Frame caption="Structured Policies section inside Knowledge">
  <img src="https://mintcdn.com/mindo/0Wc4nTmWU9IVNFWm/images/crear-agente-ia-07-politicas.png?fit=max&auto=format&n=0Wc4nTmWU9IVNFWm&q=85&s=5e98668165f4fd97371fc5ec020de504" alt="Knowledge tab with the empty Structured Policies section" width="1920" height="1080" data-path="images/crear-agente-ia-07-politicas.png" />
</Frame>

<Steps>
  <Step title="Add a policy">
    Click **Add policy**. A form opens with four fields:

    | Field                       | What to put                                     |
    | --------------------------- | ----------------------------------------------- |
    | **Title**                   | What the policy is about                        |
    | **Type**                    | The category to group it under (e.g. *Returns*) |
    | **Description**             | The full rule, with the exact details           |
    | **Usage Context / Trigger** | When the agent should apply it                  |

    <Frame caption="New policy form">
      <img src="https://mintcdn.com/mindo/0Wc4nTmWU9IVNFWm/images/crear-agente-ia-08-politica-form.png?fit=max&auto=format&n=0Wc4nTmWU9IVNFWm&q=85&s=319c5287e6f4bca22445529d0afcbe12" alt="New Policy modal with the Title, Type, Description and Usage Context fields filled in" width="1920" height="1080" data-path="images/crear-agente-ia-08-politica-form.png" />
    </Frame>
  </Step>

  <Step title="Save it">
    The policy is stored, grouped by type and with its own toggle to enable or disable it. You can edit or delete it anytime.

    <Frame caption="Saved policy grouped by type">
      <img src="https://mintcdn.com/mindo/0Wc4nTmWU9IVNFWm/images/crear-agente-ia-09-politica-guardada.png?fit=max&auto=format&n=0Wc4nTmWU9IVNFWm&q=85&s=3d9593fa6950c28a860fb2a1ccc7d783" alt="Policy list showing the returns and exchanges policy marked as active" width="1920" height="1080" data-path="images/crear-agente-ia-09-politica-guardada.png" />
    </Frame>
  </Step>

  <Step title="Import several at once">
    Above the list you have the **environment selector**, the policies' own **Publish** button, and **Import / Export**. If your rules are already in a spreadsheet, import them (JSON or CSV) instead of typing them one by one.
  </Step>
</Steps>

## Capabilities

This is where you give the agent concrete powers.

<Frame caption="Capabilities tab: Tools, Guardrail and Follow-ups">
  <img src="https://mintcdn.com/mindo/0Wc4nTmWU9IVNFWm/images/crear-agente-ia-10-capacidades.png?fit=max&auto=format&n=0Wc4nTmWU9IVNFWm&q=85&s=58f5c2f7da84907e0494232e99b9ee6c" alt="Capabilities tab showing the Tools, Guardrail and Follow-ups sections" width="1920" height="1080" data-path="images/crear-agente-ia-10-capacidades.png" />
</Frame>

* **Tools**: actions the agent can run, like checking stock or an order status. Click **Add new tool** to browse the catalogue.
* **Guardrail**: enabled by default. It classifies greetings and goodbyes so the agent doesn't over-reply. Turn it off and the agent always answers.
* **Follow-ups**: automatic messages to re-engage conversations that went quiet.

<Card title="Automatic follow-up" icon="clock-rotate-left" href="/en/guias/seguimiento-automatico">
  How to configure follow-ups so the agent messages back customers who never replied.
</Card>

## Testing

<Frame caption="Testing tab with AI Simulation, Standard Tests and Reviews">
  <img src="https://mintcdn.com/mindo/0Wc4nTmWU9IVNFWm/images/crear-agente-ia-11-pruebas.png?fit=max&auto=format&n=0Wc4nTmWU9IVNFWm&q=85&s=fa5a93a8ed68f49a4b42382ff4a88bd4" alt="Testing tab showing AI Simulation with the Auto-generate from prompt and Create manually options" width="1920" height="1080" data-path="images/crear-agente-ia-11-pruebas.png" />
</Frame>

* **AI Simulation**: create test customers with different personalities. You can **auto-generate them from the prompt** or **create them manually**.
* **Standard Tests**: load fixed questions with the answer you expect, click **Run All** and Mindo tells you which ones passed.
* **Reviews**: **Create Review** generates a review so your team can rate the agent's interactions.

### Quick Chat

The fastest test: you write as if you were a customer and see how it answers. Under each reply you get 👍 / 👎.

<Frame caption="Quick Chat: the agent replies using the policy we loaded">
  <img src="https://mintcdn.com/mindo/0Wc4nTmWU9IVNFWm/images/crear-agente-ia-12-conversacion.png?fit=max&auto=format&n=0Wc4nTmWU9IVNFWm&q=85&s=b90dfb03796e4f6a895e49eccd4eb8c2" alt="Agent Testing Center with a conversation where the agent answers about returns and exchanges" width="1920" height="1080" data-path="images/crear-agente-ia-12-conversacion.png" />
</Frame>

<Warning>
  Thumbs down asks you for a reason and **creates a ticket** for the Mindo team: it does not change the agent instantly. If you want an immediate change, edit the prompt or the policy yourself.
</Warning>

<CardGroup cols={3}>
  <Card title="Quick Chat" icon="messages" href="/en/guias/chat-rapido">
    Test the agent and leave feedback step by step.
  </Card>

  <Card title="Train your AI agent" icon="graduation-cap" href="/en/guias/entrenar-agente-ia">
    How to track your corrections.
  </Card>

  <Card title="Complete test reviews" icon="clipboard-check" href="/en/guias/completar-reviews">
    Rate the agent's interactions.
  </Card>
</CardGroup>

## Settings

<Frame caption="Settings tab with sessions and the configuration cards">
  <img src="https://mintcdn.com/mindo/0Wc4nTmWU9IVNFWm/images/crear-agente-ia-13-configuracion.png?fit=max&auto=format&n=0Wc4nTmWU9IVNFWm&q=85&s=ed47cea19f0e055111feb713bdf37b63" alt="Settings tab showing Sessions and Audience plus the agent configuration cards" width="1920" height="1080" data-path="images/crear-agente-ia-13-configuracion.png" />
</Frame>

### Sessions and Audience

The **session** is the line the agent replies through. Click the **+**, tick the line and connect it. The **Audience** is optional and limits which contacts the agent responds to.

<CardGroup cols={2}>
  <Card title="WhatsApp" icon="whatsapp" href="/en/guias/conexion-whatsapp">
    Connect an API number.
  </Card>

  <Card title="Instagram" icon="instagram" href="/en/guias/conexion-instagram">
    Link your Instagram account.
  </Card>
</CardGroup>

### Agent settings

One card per setting:

| Setting                       | What it's for                                                                            |
| ----------------------------- | ---------------------------------------------------------------------------------------- |
| **Agent Schedules**           | When the agent is available (see [Branches and holidays](/en/guias/sucursales-feriados)) |
| **Response Settings**         | Format and style of the replies                                                          |
| **Grammar Rules**             | Grammar and spelling rules                                                               |
| **Conversation Memory**       | How much context the agent remembers                                                     |
| **Document Extraction (OCR)** | Automatic reading of documents the customer sends                                        |
| **AI Handoff**                | Which human it escalates to, by reason, audience and channel                             |
| **Interview Answers**         | View and manage what the agent collected                                                 |

<Note>
  **Model Settings** and **Endpoint Settings** are advanced: the Mindo team usually sets them up for you.
</Note>

### Clone, export or delete

At the bottom of the tab you have **Clone Agent** (identical copy), **Export Agent** (JSON backup) and **Delete Agent**.

<Frame caption="Agent lifecycle actions">
  <img src="https://mintcdn.com/mindo/0Wc4nTmWU9IVNFWm/images/crear-agente-ia-14-clonar-eliminar.png?fit=max&auto=format&n=0Wc4nTmWU9IVNFWm&q=85&s=842ccbcf05bf57e9fe6f7cfac32cef26" alt="Clone Agent, Export Agent and Delete Agent options at the bottom of the Settings tab" width="1920" height="1080" data-path="images/crear-agente-ia-14-clonar-eliminar.png" />
</Frame>

<Warning>
  **Deleting an agent is permanent.** There's no undo — export it first if you want to keep the configuration.
</Warning>

## History

Every change is recorded: who did it, when and what changed. Filter by **Settings**, **Flows**, **Tools**, **Policies** or **Script**, and the **Live** indicator shows changes as they happen.

<Frame caption="History tab with filters and the change detail">
  <img src="https://mintcdn.com/mindo/0Wc4nTmWU9IVNFWm/images/crear-agente-ia-15-historial.png?fit=max&auto=format&n=0Wc4nTmWU9IVNFWm&q=85&s=b49a39ff0c2ee5538e072970b9b42dd9" alt="History tab showing the change list with its filters and the selected change detail" width="1920" height="1080" data-path="images/crear-agente-ia-15-historial.png" />
</Frame>

The **Full history** button in the header opens the complete log with every change together. It's the best place to understand why the agent started answering differently.

## Publish and turn it on

<Steps>
  <Step title="Publish to Production">
    Click **Publish**. Mindo shows you the **Development → Production** diff so you can review it before confirming.

    <Frame caption="Publish to Production modal with the version diff">
      <img src="https://mintcdn.com/mindo/0Wc4nTmWU9IVNFWm/images/crear-agente-ia-16-publicar.png?fit=max&auto=format&n=0Wc4nTmWU9IVNFWm&q=85&s=cba7ba8d85dc43073c8b0dfd9bec279f" alt="Publish to Production modal showing the Development content about to be published" width="1920" height="1080" data-path="images/crear-agente-ia-16-publicar.png" />
    </Frame>

    <Warning>
      The **Publish** button is disabled if you have **unsaved changes** or if the agent is **inactive**.
    </Warning>
  </Step>

  <Step title="Turn the agent on">
    With the status set to **Active** and at least one **connected session**, the agent starts replying on its own.
  </Step>
</Steps>

## How do I know it worked?

**Both** conditions have to be true:

1. The agent shows as **Active**.
2. Under **Settings → Sessions** there's at least one **connected** session (not *Not connected*).

If either is missing, the agent won't reply.

## FAQ

<AccordionGroup>
  <Accordion title="Can the agent message first?">
    No. It's **reactive**: it only replies to incoming messages, within the WhatsApp conversation window. To re-engage idle conversations, use [Automatic follow-up](/en/guias/seguimiento-automatico).
  </Accordion>

  <Accordion title="It's on but doesn't reply">
    It's almost always the session. Check **Settings → Sessions**: if it says **Not connected**, the agent has no line to reply through.
  </Accordion>

  <Accordion title="What's the difference between Development and Production?">
    **Development** is your draft: you test there without affecting anyone. When you click **Publish**, that content moves to **Production**, which is what your customers see.
  </Accordion>

  <Accordion title="Should everything go in the prompt or in the policies?">
    The **prompt** is the "who you are and how you speak". The **policies** are the specific data and rules (deadlines, prices, conditions). Splitting them makes it far easier to update a rule without touching the agent's personality.
  </Accordion>

  <Accordion title="I gave a thumbs down — does it fix itself?">
    No. That feedback **creates a ticket** the Mindo team reviews. For an immediate change, edit the prompt or the policy yourself. See [Train your AI agent](/en/guias/entrenar-agente-ia).
  </Accordion>

  <Accordion title="Can I review replies before they go out?">
    Yes, with **Suggestion mode**: the agent drafts and you approve or reject. See [Suggestion mode](/en/guias/modo-sugerencia).
  </Accordion>

  <Accordion title="I don't want it replying to one specific contact">
    You can pause it per contact. See [Pause the agent permanently](/en/guias/pausar-agente-permanente).
  </Accordion>
</AccordionGroup>

<CardGroup cols={2}>
  <Card title="Turn the agent on and off" icon="power-off" href="/en/guias/encender-apagar-agente">
    Enable or disable your agent with a single switch.
  </Card>

  <Card title="Suggestion mode" icon="lightbulb" href="/en/guias/modo-sugerencia">
    Review every reply before the agent sends it.
  </Card>
</CardGroup>

<CardGroup cols={1}>
  <Card title="Go to AI Agents" icon="arrow-up-right-from-square" href="https://app.mindosoftware.com/dashboard/ai-agents-management">
    Create your AI agent in the Mindo platform.
  </Card>
</CardGroup>
