# What is an AI agent? (/docs/what-is-an-agent)

> An AI agent is an assistant that understands questions in plain language, answers from your own knowledge, and takes actions such as an order look-up within the permissions you set. Unlike a scripted chatbot, it does not need a flow for every question. Includes a comparison table, an example and how a Loopwix agent works.

Type: concept | Status: ga | Last reviewed: 2026-11-21

An **AI agent** is an assistant that understands a customer's question in plain language and answers it from your own knowledge. It can also take actions for them, such as looking up an order. In Loopwix, the agent is the assistant your customers talk to. You decide how it introduces itself, what it knows, what it may do and where it appears.

## What is the difference between an AI agent and a chatbot? [#what-is-the-difference-between-an-ai-agent-and-a-chatbot]

A scripted chatbot follows flows that someone built in advance: buttons, keywords and fixed replies. An AI agent understands free-text questions and writes each answer from your knowledge. It can also use your tools, such as a store or a calendar, within permissions you set. It hands over to a person when it cannot help.

| | Scripted chatbot | AI agent |
|---|---|---|
| **How it understands** | Buttons and keywords you set up | Plain-language questions, in many languages |
| **Where answers come from** | Replies written into each flow | Your knowledge: help pages, files, FAQs |
| **New questions** | Falls back to "I didn't understand" | Answers if your knowledge covers it, and says so if not |
| **Live data** | Only what a flow fetches | Look-ups through connected tools, such as order status |
| **Actions** | Fixed steps in a flow | Actions you allow, such as cancelling an order, with a confirm step |
| **Permissions** | Usually none per customer | Trust levels: private data only after the customer verifies |
| **Upkeep** | Edit flows for every change | Update the knowledge, and every answer follows |

A good AI agent still uses fixed steps where they matter. In Loopwix, [workflows](/docs/workflows) make the agent follow the same steps every time, for example to verify a customer before a refund request.

## Why it matters [#why-it-matters]

Customers ask the same thing in many different ways. A scripted chatbot needs a path for each one, so it breaks on questions nobody planned. An AI agent answers from one set of knowledge, so a new way of asking still gets the right answer. The time you spend goes into your knowledge, not into flow diagrams.

## The four parts of an agent [#the-four-parts-of-an-agent]

| Part | What it is | Where you set it up |
|---|---|---|
| **Identity** | Name, role, tone, welcome and fallback messages | [Agents](/docs/agents) |
| **Knowledge** | What it can answer from: files, FAQs, notes, websites, connected tools | [Knowledge](/docs/knowledge) |
| **Actions and data** | What it can do: call your systems, read and write tables, run processes | [Integrations](/docs/integrations), [Records](/docs/records), [Workflows](/docs/workflows) |
| **Channels** | Where customers reach it: your website chat, and messaging apps in beta | [Channels](/docs/channels) |

## What happens when a customer asks a question [#what-happens-when-a-customer-asks-a-question]

<Mermaid title="What happens when a customer asks a question" chart={`flowchart LR
  C[Customer message] --> A[Agent]
  A --> K[Published knowledge]
  A --> T[Connected tools and data]
  A --> R[Answer]
  A -->|needs a person| H[Inbox]`} />

1. The customer sends a message in a channel such as the website chat.
2. The agent searches the knowledge you published and attached to it.
3. If the question needs an action, such as looking up an order, the agent uses a connected tool. It does so only if your settings allow it for that customer.
4. The agent answers, optionally showing where the answer came from.
5. If it cannot help, or the customer asks for a person, it hands over to your team in the [Inbox](/docs/inbox). Hand-over is switched on by Loopwix on request.

## An example [#an-example]

A customer on a clothing store's website writes: "hey did my jacket ship yet".

- **A scripted chatbot** looks for a keyword. It might show a menu: "Track order / Returns / Other". The customer picks one and types their order number into a form.
- **An AI agent** understands the question. It asks the customer to verify their email with a code, then finds their order in Shopify. It replies: "Your order from 3 March has been fulfilled, so it has left the warehouse." The customer never sees a menu.

If the customer then asks "can I cancel it?", the agent asks them to confirm the exact order before it does anything.

## How does an agent stay safe? [#how-does-an-agent-stay-safe]

An agent can only use what you attach and enable. Each tool has a minimum trust level, so private data needs a verified customer. Actions that change something ask the customer to confirm first. You can switch an agent or a tool off at once in [Runtime controls](/docs/security/runtime-controls). See [Trust and verification](/docs/security/trust-and-verification).

## Draft and published [#draft-and-published]

You edit a **draft** and test it. **Publish** saves it as a numbered version that customers see. Customers keep seeing the last published version until you publish again. See [Publish an agent](/docs/agents/publish).

## Next steps [#next-steps]

- Learn the terms in [Key concepts](/docs/key-concepts).
- Build one: [Quickstart: build with AI](/docs/get-started/quickstart) or [set up by hand](/docs/get-started/quickstart-manual).
- See it in practice: [Turn your help center into an AI agent](/docs/guides/support-agent-from-your-help-center).
