---
title: Agent in the Loop (AITL)
description: Learn how to ask AI questions about your documents and use the answers in your workflow.
---

[Skip to content](https://support.parashift.io/agent-in-the-loop#main-content)

[Contact us](https://support.parashift.io/kb-tickets/new?hsLang=en) [Customer support portal](https://support.parashift.io/tickets-view?hsLang=en)

[![parashift\_logo\_white-2](https://support.parashift.io/hs-fs/hubfs/parashift_logo_white-2.png?width=250&height=45&name=parashift_logo_white-2.png)](https://support.parashift.io/?hsLang=en)

Open main navigation

Close main navigation

- [Contact us](https://support.parashift.io/kb-tickets/new)
- [Customer support portal](https://support.parashift.io/tickets-view)

 How can we help you?

- There are no suggestions because the search field is empty.

1. [Support Center](https://support.parashift.io/?hsLang=en)
2. [Configuration Guides](https://support.parashift.io/configuration-guides?hsLang=en)
3. [Automation](https://support.parashift.io/configuration-guides?hsLang=en#automation)

# Agent in the Loop (AITL)

## Learn how to ask AI questions about your documents and use the answers in your workflow.

Extraction captures the values printed on a document. Sometimes you need an answer that takes a bit of reading and judgement:

- *Is this invoice already paid?*
- *Does this invoice follow our payment terms?*
- *Which department is this letter addressed to?*
- *Summarize the reason for this complaint in one sentence.*

With **Agent in the Loop** you write questions like these as **prompts** for a document type.   
Every document of that type is processed and each prompt is answered by an AI model. The answers are stored as **business fields** on the document, where your team can review them, automation agents can use them and your integration can receive them.

**Availability:** Agent in the Loop needs to be enabled for your tenant.   
Please contact your Parashift [Support](mailto:support@parashift.io)to activate it. 

### How Agent in the Loop Works

- **Extraction.** Parashift extracts the document fields as usual.
- **Extraction validation.** If it is part of your workflow, your team checks the extracted values first.
- **Agents.** Every live agent for the document type answers its prompt on the document, one after another in the order you set.
- **Automation agents.** Automation agents run next, so they can already use the answers. For example, they can route a document based on the answer to "Is this invoice already paid?".
- **Review.** If business fields are left for review, your team checks them in the **Review** step.

#### **Key terms**

- **Agent:** a prompt plus its settings, configured for one document type.
- **Prompt:** the question or instruction the AI model answers about the document.
- **Business field:** the field that receives the agent's answer. Business fields are kept separate from the extracted document fields.
- **Attachment:** a text file the model reads together with the document, e.g. your terms and conditions.

**Your extracted data stays untouched.** Agents never write into the extracted document fields. Their answers always go into separate business fields, so an agent can't overwrite or lose an extracted value.

### Setting up an Agent

Agent in the Loop are configured in the **Document Type** settings. 

![0](https://support.parashift.io/hs-fs/hubfs/0.png?width=670&height=161&name=0.png)

##### **Configuration**

1. **Name:** a short description.
2. **Model:** the AI model that answers the prompt.
3. **Include prior agent outputs:** when switched on, the prompt also contains the questions and answers of agents that already ran on the document. This lets one agent build on another.
4. **Task:** the question to ask about the document, e.g. *"Is this invoice already paid? Answer yes or no."*  To refer to a value from the document, click **Insert Field** and choose the field. Its value is added to your task when the agent runs, e.g. *"Is the invoice total of* `[Total amount]` *already paid?"*
5. **Attachments:** up to **three files** the model reads together with the document, e.g. your terms and conditions, a policy, or a list of departments.
6. **Business field:** the identifier of the new automatically created field that receives the answer.

![1-Nov-19-2026-11-01-04-5652-AM](https://support.parashift.io/hs-fs/hubfs/1-Nov-19-2026-11-01-04-5652-AM.png?width=670&height=723&name=1-Nov-19-2026-11-01-04-5652-AM.png)

### Writing Good Prompts

Parashift wraps your prompt in fixed instructions for the model:

- the model answers **only from the document and your attachments**, not from general knowledge.
- if the answer isn't in the document, the field stays **empty** instead of being guessed.
- the answer is kept **short**.

#### Tips for your prompts

- **Ask one thing per agent.** One clear question gives one clear answer, and every answer gets its own business field.
- **Say what form the answer should take.** For example *"Answer yes or no"*, *"Answer with the date as DD.MM.YYYY"*, or *"Answer with one of: Sales, Finance, HR"*.
- **Say where to look** if it helps, e.g. *"Check the payment section at the bottom of the invoice."*
- **Put reference information into attachments,** not into the prompt. For example a list of cost centers, your payment terms or a policy.
- **Chain agents for multi-step questions.** Put the basic question first and switch on **Include prior agent outputs** for the follow-up agent.

### Where the Answers Go

- Each answer is written to the new automatically created **business field** you set in the agent.
- All agent answers of a document are shown together in one group, labelled **AI Agent**, in the Review.
- If two agents use the **same business field**, the later agent's answer replaces the earlier one. Use a different business field for each agent unless you want this on purpose.
- If the model returns **no answer**, no business field is stored.
- **Automation agents** run after Agent in the Loop, so you can use the answers in their conditions. For example: *if payment-status is "yes", route the document to the archive*.   
  Learn more: [How to use Automation Agents](https://support.parashift.io/automation-agents?hsLang=en).

##### Reviewing Agent Answers

Agent answers are shown in the **Review** step together with any matching results.   
Learn more: [How to use Matching Rules & Review](https://support.parashift.io/how-to-use-matching-rules-review?hsLang=en) for the full Review screen. 

***![2-Nov-19-2026-10-50-05-2529-AM](https://support.parashift.io/hs-fs/hubfs/2-Nov-19-2026-10-50-05-2529-AM.png?width=670&height=246&name=2-Nov-19-2026-10-50-05-2529-AM.png)***

- The **AI Agent** group lists each answer as a business field.
- **Correct an answer.** Click the field and type the correct value.
- **Reset to agent value.** If you changed an answer, open the field (click it or press ↓) and choose **Reset to agent value**.
- Click **Done** to finish the document.

- [Getting Started](https://support.parashift.io/getting-started?hsLang=en)
- [User Guides](https://support.parashift.io/user-guides?hsLang=en#main-content)

    - [General](https://support.parashift.io/user-guides?hsLang=en#general)
    - [Validation](https://support.parashift.io/user-guides?hsLang=en#validation)
    - [Platform Workshops](https://support.parashift.io/user-guides?hsLang=en#platform-workshops)
- [Configuration Guides](https://support.parashift.io/configuration-guides?hsLang=en#main-content)

    - [Document Type & Fields](https://support.parashift.io/configuration-guides?hsLang=en#document-type-fields)
    - [Automation](https://support.parashift.io/configuration-guides?hsLang=en#automation)
    - [Tenant (User management)](https://support.parashift.io/configuration-guides?hsLang=en#tenant-user-management)
    - [Workflow (Upload Configuration, Separation, Classification)](https://support.parashift.io/configuration-guides?hsLang=en#workflow-upload-configuration-separation-classification)
- [Release Notes](https://support.parashift.io/release-notes?hsLang=en)
- [API Documentation](https://support.parashift.io/api-documentation?hsLang=en#main-content)

    - [Platform API Configuration](https://support.parashift.io/api-documentation?hsLang=en#platform-api-configuration)
    - [Technical API Documentation](https://support.parashift.io/api-documentation?hsLang=en#technical-api-documentation)
- [Professional Services](https://support.parashift.io/professional-services?hsLang=en#main-content)

    - [Project-based Service Packages](https://support.parashift.io/professional-services?hsLang=en#project-based-service-packages)
    - [Subscription-based Service Packages](https://support.parashift.io/professional-services?hsLang=en#subscription-based-service-packages)

[![Knowledge Base Home](https://support.parashift.io/hubfs/parashift_logo_black-2.svg "Knowledge Base Home")](https://support.parashift.io/?hsLang=en)

[Platform Live Status](https://status.parashift.io/)   |   [API Documentation](https://docs.parashift.io/)

<https://www.parashift.io/> [mailto:support@parashift.io](mailto:support@parashift.io) <https://www.linkedin.com/company/parashiftag>

Copyright © 2025, Parashift AG