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

# Agent mode vs workflow mode

> Two ways to run the same engine: agents that answer your code in the request, and pipelines that run your back office. How to choose, and how to combine them.

Everything in equate runs on one [extraction](https://equatetravel.ai/docs/platform/extraction-engine.md) and
[matching](https://equatetravel.ai/docs/platform/matching-engine.md) engine. There are **two ways to drive it**, built for
two different jobs:

* **Workflow mode.** [Pipelines](https://equatetravel.ai/docs/guides/pipelines.md) process invoices end to end inside
  equate: take them in, read them, match them, queue what needs a person and deliver the
  results. equate *is* the back office.
* **Agent mode.** Your systems call a published [agent](https://equatetravel.ai/docs/guides/agents.md) over the
  [API](https://equatetravel.ai/docs/api-reference/introduction.md) and get the result back in the same request. equate is
  a *capability inside your own software*.

An agent is not a lighter engine. It reads, classifies and matches with the same models,
the same business rules and the same actions as a pipeline. What it leaves out is
everything that needs a document to be kept: the queues, the review screen and the rules
that compare a document with earlier ones.

## Side by side

| | Workflow mode (pipelines) | Agent mode (API) |
| - | - | - |
| **Started by** | Documents arriving (upload, email, Gmail, FTP, [API push](https://equatetravel.ai/docs/connectors/rest-api.md)) or a schedule | An HTTP call from your code (`/run`, `/batch`) |
| **Runs** | A durable, multi-step workflow: read, match, check for duplicates and re-issues, route, deliver | One call: read, say what the document is, match, answer |
| **Returns** | Nothing to your code. Results are **delivered** by actions and worked in the dashboard | The result, in the response, shaped by the agent's output settings |
| **Booking data** | The sources assigned to the pipeline | The sources connected to the agent |
| **Suppliers** | Every supplier, or the pipeline's list | Every supplier, or the agent's list. Others are answered as out of scope |
| **Match depth and rules** | Plan, then pipeline, then supplier, then workspace default. Sector and supplier rules as the pipeline says | The same order and the same rules, as the agent says |
| **Custom fields** | Read and matched | Read and matched |
| **Documents that aren't invoices** | Labelled, and handled by your document handlers | Labelled, and handled by the handlers that cover every pipeline |
| **Actions** | Per outcome, run by the pipeline | Per outcome, run after the agent has answered |
| **Test mode** | Reads and matches, sends nothing | Reads and matches, sends nothing |
| **Unsure results** | Land in [Need Review](https://equatetravel.ai/docs/guides/reviewing-exceptions.md) for a person | Returned to the caller (`outcome`, `decision`, `confidence`). Your system decides |
| **Duplicates, re-issues, superseded invoices, guest copies** | Checked against what equate has already processed, and held for a person | Never held. An agent that keeps records says on the answer when the invoice is on record already |
| **Kept afterwards** | The invoice, its file, its stages and its activity log | A recorded run per call. With records on, the document too, in the Invoice log, Reports, Analytics and the booking's history, and its file if you choose |
| **Bookings counted towards your plan** | Each booking matched, once | With records on, each booking matched automatically, once. With records off, none |
| **Set up as** | A pipeline | A published, versioned agent |

## Choosing

> [card] Pick workflow mode when
>
> Invoices arrive addressed to *you* (inboxes, folders), a team works Need Review in
> equate, and you want duplicates and re-issues caught. This is the full back-office
> replacement, and where most operations teams work.

> [card] Pick agent mode when
>
> You are building your own product or internal tooling and need reading and matching as
> a step in *your* flow: an answer in the request, your storage, your screens and your
> rules on what happens next.

Two rules of thumb:

1. **Who sees the result first?** A person in a queue means workflow mode. A program means
   agent mode.
2. **Where should an unsure result land?** In equate's Need Review queue means workflow
   mode. In your own system's logic means agent mode.

## Combining the two

The modes share suppliers, booking data, business rules, document handlers and the action
library, so mixing them is natural:

* **Push in, work in equate.** Feed pipelines from your code with
  [`POST /api/v1/invoices`](https://equatetravel.ai/docs/connectors/rest-api): API in, workflow processing, dashboard
  review. Pushing into a pipeline is workflow mode. The call returns a job id, not a
  result.
* **Try it in agent mode, scale in workflow mode.** The agent playground is the fastest
  way to see how well equate reads your real documents. Set up pipelines once you trust
  the output.
* **Run both.** A back office on pipelines while product teams call agents elsewhere. Each
  agent has its own versions, limits and run history, so the two never get in each other's
  way.

> [!NOTE]
>
> Plans differ. Pipelines are included on every plan, while the agent API needs a plan
> with the **Agent Builder**. See [plans & billing](https://equatetravel.ai/docs/guides/billing.md).

> [card] [Build a pipeline](https://equatetravel.ai/docs/guides/pipelines.md)
>
> Workflow mode, from input to actions.

> [card] [Build an agent](https://equatetravel.ai/docs/guides/agents.md)
>
> Draft, test in the playground, publish, call it from code.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.