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

# How Integrations Work

> Automate bringing documents into your Agent and sending its results to an Integration

**Integrations** allow your Agent to connect directly with third-party applications and services.
An Integration either brings documents into an Agent or sends its results out:

* **Input**: documents coming into the Agent
* **Output**: results going out of the Agent

[See the full list of all supported integrations here](https://docs.agents.kolena.com/connections.md) and steps on how to integrate with them.
Agents can also be connected using our [API](https://docs.agents.kolena.com/api-reference/add-agent-run.md) or [Python Client](https://docs.agents.kolena.com/python-client/quickstart.md).

## Configuring Integrations

Integrations are configured for each Agent from the Workflow graph on the main Agent page.

![](https://mintcdn.com/kolena/0q6bErf-14FYYvDd/assets/connections.png?fit=max\&auto=format\&n=0q6bErf-14FYYvDd\&q=85\&s=303ebaf7db98a1fc68b24c7b3a9142c6)

The Workflow graph starts at an **Input** node and ends at an **Output** node, with the Agent's Prompts in between.
Each node lists what is currently connected to it. Clicking a node opens a panel where you can manage it:

* From the **Input** node, click "Upload Files" to add documents yourself, or "Import from Integration" to bring them in automatically.
* From the **Output** node, click "Add Output Template" to shape the results, or "Send to Integration" to send them somewhere.

On a large Agent, use the "Jump to" control above the graph to bring the Input or Output node back into view.

An Integration you connect is available to every Agent in the Workspace, and sharing one lets other people attach it to their own Agents. To view your integrations, open your user profile at the bottom of the sidebar, click "Profile Settings", then switch to the "Integrations" tab.

Administrators, and anyone with a [Custom Role](https://docs.agents.kolena.com/custom-roles.md) granting the "View Integration" action, can see every Integration connected across the Organization from the "Integrations" tab on the Organization page.

## Input and Output Integrations

### Input Integrations

If documents come in from a file storage system (e.g. Box, Google Drive, S3), the Agent will automatically watch it for new files.
When new files are detected, the Agent will create new Runs to process those files.
See [Cloud Folder Sync](https://docs.agents.kolena.com/connections/cloud-folder-sync.md) for details on how folders are kept in sync.

An Input Integration can read files in two different patterns:

1. **Import Files Separately**: Each file in the connected location is processed as a separate Run.
2. **Group Files Together**: All files in a sub-folder pattern are processed together, where each sub-folder's content as a single run by the Agent.

### Output Integrations

If results go out to a file storage system (e.g. Box, Google Drive, S3), the Agent will write output files to it after each Run is completed.

An Output Integration can write files in two different patterns:

1. **Write to Directory**: Each Run by the Agent produces output files sent to the Integration.
2. **Write to File**: Each Run by the Agent produces a row in a single output spreadsheet.

> [!NOTE]
>
> You can send your results to an Integration as PDF, Word, Excel, CSV, JSON, or Powerpoints.
> You can also use [templates](https://docs.agents.kolena.com/templated-outputs.md) to customize the format of your output files.

### Example Workflows

These patterns can be combined.
Let's consider how to model some example workflows:

> [!TIP]
>
> #### Lease Abstraction
>
> Suppose you have multiple lease documents and amendments for various properties stored in a Box.com folder:
>
> ```
> /Leases
> /Leases/Property_A/Lease.pdf
> /Leases/Property_A/Amendment_1.pdf
> /Leases/Property_A/Amendment_2.pdf
> /Leases/Property_B/Lease.pdf
> /Leases/Property_B/Amendment_1.pdf
> ```
>
> and you want to generate an abstract file for each property.
>
> In this case, you would bring documents in from the Box.com folder, grouping files by subfolder (i.e., Property\_A, Property\_B) so that each property's documents are processed as a single run.
> The output can then be sent to another Box.com folder, with one output file per run.

> [!TIP]
>
> #### Utility Bill Extraction
>
> Suppose you have a folder of utility bills in Google Drive which you want to extract key details into a table, which one row per bill:
>
> ```
> /Bills
> /Bills/Bill_001.pdf
> /Bills/Bill_002.pdf
> /Bills/Bill_003.pdf
> ```
>
> In this case, you would bring documents in from the Google Drive folder and send results out to a single Google Sheet.
> The output of each runs will be synced to a new row in the Google Sheet.

See the [Integrations FAQ](https://docs.agents.kolena.com/faq/integrations.md) for how syncing handles new, moved, and deleted files.


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