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

<AgentInstructions>

## Submitting Feedback

If you encounter incorrect, outdated, or confusing documentation on this page, submit feedback:

POST https://docs.affinda.com/feedback

```json
{
  "path": "/academy/integration-agent",
  "feedback": "Description of the issue"
}
```

Only submit feedback when you have something specific and actionable to report.

</AgentInstructions>

> Use the Affinda AI Integration Agent to build no-code data exports to downstream applications like ATS, ERP, and CRM systems using natural language.

# Create your integration with our AI Integration Agent

## Purpose

This tutorial walks you through using the Affinda Integration Agent to automate data export to your downstream applications. The agent takes natural language instructions, enabling users to create integrations without writing code.

<Note>
  Users will need to create a Pipedream account to connect to other applications for data export.
</Note>

## 1. Create a new integration

Integrations are tied to a workspace and document type.

Users can create a new integration in the Affinda app by:

* Navigate to the Integration tab in your organization, and select "+ Create Integration", or
* Navigating to the Workflow settings in a particular workspace, opening the Data Export Settings, and clicking "+ Add Integration"

## 2. Connect account using Pipedream

To create an integration, users must first connect their account to the desired downstream application using Pipedream.

<Steps>
  <Step title="Find service to connect ">
    Use the search bar or scroll to find the service you would like to connect.

    Click here to view a full list of services pipedream offers.
  </Step>

  <Step title="Click connect service">
    This will launch a Pipedream pop-up window, where you can grant Pipedream access to your account on your selected service.

    <img className="border-2 border-gray-300 rounded-lg" src="https://mintcdn.com/affinda-44/Y5GCzR1ukAFqe_7W/images/pipedreampopup.png?fit=max&auto=format&n=Y5GCzR1ukAFqe_7W&q=85&s=2e6de8e395dfbd629becb8583d1c7266" alt="Pipedream pop-up" style={{ width:"37%" }} width="1809" height="2730" data-path="images/pipedreampopup.png" />

    <Warning>
      Check carefully that you have granted Pipedream all required permissions; sometimes they are easy to miss.
    </Warning>

    If you have already connected to the service previously, locate the service and click on the account you wish to use.
  </Step>
</Steps>

## 3. Initial configuration

<Steps>
  <Step title="Connect any additional accounts">
    If your integration requires multiple downstream services, you can add them here.
  </Step>

  <Step title="Select the trigger">
    A **trigger** is the event that starts the data export process. Users can choose from 2 triggers for data export:

    * When a document is parsed, the export runs immediately after the document has been processed
    * When a document is validated, the export runs only after the document is confirmed (either through manual or auto confirmation)
  </Step>

  <Step title="Select the document type + workspace" />

  <Step title="Click &#x22;Create Integration&#x22;" />
</Steps>

## 4. Create, test and fine-tune your integration code

<Steps>
  <Step title="Describe the integration to the agent">
    Explain to the agent what you want the integration to do, where the data should be pushed, and what format it should be in.

    The agent will ask for additional information as needed.

    <img className="border-2 border-gray-300 rounded-lg" src="https://mintcdn.com/affinda-44/Y5GCzR1ukAFqe_7W/images/integrationassistant.png?fit=max&auto=format&n=Y5GCzR1ukAFqe_7W&q=85&s=1309617b8a8fb0010e4a9e5ebdd8cfcb" alt="Integration Agent" style={{ width:"59%" }} width="1804" height="912" data-path="images/integrationassistant.png" />
  </Step>

  <Step title="Run Test">
    Once the agent has created the code, test run with an example document from your workspace.

    Check your downstream apps to see how the data has been pushed.
  </Step>

  <Step title="Fix in chat ">
    If your integration is getting an error, click Fix in chat to send the error message to the agent. The agent will update the code accordingly.

    You can also review the failed run logs in the "Runs" tab.
  </Step>

  <Step title="Repeat above steps until integration works as intended" />
</Steps>

## 5. Enable

Once you are happy with your integration, enable it by switching on the toggle in the top right-hand corner of the Configure Integration interface. Now your integration will automatically run every time the trigger event happens.

You can also enable integrations in the Data export Workflow Settings pane.
