# How the agent works

> Know where the AI agent answers, what it answers from, what it can do on its own and when it hands a conversation to your team.

Source: https://docs.komplian.com/ai-agent/overview

Where: AI Agent
Who: Owners and admins change the agent. Everyone in the workspace sees its conversations.

The AI agent answers your customers on your channels, under the name you give it. It replies from your business's own information and takes the actions you have switched on.

## Where it answers

Open **AI Agent → Channels**. The page splits your channels in two groups.

| Group | Channels | Who replies |
| --- | --- | --- |
| **The agent answers here** | Web Widget, WhatsApp, Instagram, Messenger, Telegram, Slack, Discord | The agent, until a person on your team takes over. |
| **Connected, answered by your team** | Email | Your team. The agent reads email only to pick up quote requests. |

See [All channels](https://docs.komplian.com/channels/overview) to connect each one.

## What it answers from

The agent uses three things, in this order:

1. **Your business profile.** What you do, what you sell, your policies and hours. It is written from your website and you can edit it in [Persona and tone](https://docs.komplian.com/ai-agent/persona).
2. **Your knowledge.** Your website, documents and written answers. See [Knowledge](https://docs.komplian.com/ai-agent/knowledge-base).
3. **Its tools.** Live lookups such as your catalogue, an order or your calendar (table below).

When none of them has the answer, the agent says it will check with your team. It does not guess.

## What it can do

Each capability switches on by itself when its condition is met.

| The agent can | It is on when |
| --- | --- |
| Search products, give details, check stock and recommend | Your [catalogue](https://docs.komplian.com/products/catalog) has active items, from a store or added by hand. |
| Look up an order | A store is connected. The customer gives the order number and the email or phone used for the purchase, in one message. |
| Send a checkout link | A store is connected. |
| Collect name, email, phone and company | Always. It shows a short form card. It never asks for them in plain text. |
| File a callback request | Always. It creates a call task for your team and notifies owners and admins. |
| Check availability and book, look up, move or cancel appointments | [Calendar](https://docs.komplian.com/calendar/overview) has **AI agent booking** set to **Books directly** (the default). |
| Check availability and send a request | **AI agent booking** is set to **Requests only**. A request is not a confirmed appointment until your team confirms it. |
| Offer a form | [Forms](https://docs.komplian.com/crm/forms) has at least one published form (Growth plan and above). |
| Track a parcel | AfterShip is connected. |
| Answer counts, lists and rankings from your database | A MongoDB, Neon or Supabase database is connected (Pro plan and above). Read only. |
| Email the customer | A Gmail or Outlook mailbox is connected. It writes only to the address the customer gave in that conversation. |
| Take a quote request | Always. The request is linked to the customer's lead. |
| Remember preferences such as sizes, colours or brands | Always. Never payment data or passwords. |
| Hand the conversation to a person | Always. See the next section. |

With **AI agent booking** set to **Disabled**, the agent has no calendar actions.

## When it hands over to your team

The agent passes a conversation to your team when:

- the customer asks for a person, complains, asks for a refund or raises a legal matter;
- it failed 2 or 3 times at the same request.

Everyone in the workspace gets an email. While a person answers, the agent stays quiet. See [AI and your team](https://docs.komplian.com/inbox/human-handoff).

To stop the agent on a whole channel, switch off **Auto Reply** in that channel's **AI Skills**. See [All channels](https://docs.komplian.com/channels/overview).

## Languages

The agent writes in Spanish, English and Portuguese. It answers in the language the customer writes in. A single borrowed word does not change the language. If the customer asks for another of the three, for example "in English", it switches at once.

## Credits

| Action | AI credits |
| --- | --- |
| One agent reply on a live channel | 1 |
| A reply in [Test the agent](https://docs.komplian.com/ai-agent/test-agent) | 0 |

Credits come from your plan's allowance for each billing cycle. See [Plans and credits](https://docs.komplian.com/settings/billing).

## What it never does

- Invent prices, policies, stock or availability.
- Ask for or keep payment data or passwords.

## Related

- [Persona and tone](https://docs.komplian.com/ai-agent/persona): Choose how it sounds and correct your business profile.
- [Procedures](https://docs.komplian.com/ai-agent/procedures): Tell it how to handle a specific situation.
- [Test the agent](https://docs.komplian.com/ai-agent/test-agent): Check its answers in a private chat, free of credits.
- [AI and your team](https://docs.komplian.com/inbox/human-handoff): Take over a conversation and hand it back.
