---
title: "Attio"
description: "Learn how to integrate Formbricks with Attio to automatically create or update records when survey responses are submitted."
icon: "address-book"
---

<Note>
  There is no native Attio integration yet. Connect Formbricks to Attio with Attio Workflows, Make, n8n, or a custom webhook.
</Note>

## Prerequisites

- A Formbricks survey that collects email addresses
- An Attio plan that includes Workflows or API access
- An Attio access token (n8n and webhook methods only)

### Attio access token

<Steps>
  <Step title="Create an Integration">
    In Attio, go to **Workspace Settings** → **Developers** and click **Create a new integration**.
  </Step>
  <Step title="Set Scopes and Copy the Token">
    Grant `record_permission:read-write` and `object_configuration:read`, save, and copy the access token.
  </Step>
</Steps>

See [Attio's authentication docs](https://docs.attio.com/rest-api/guides/authentication) for details.

---

## Method 1: Attio Workflows

Attio [Workflows](https://attio.com/help/reference/automations/workflows/overview-of-workflows) can receive Formbricks webhooks directly, so no third-party tool is needed.

<Steps>
  <Step title="Create a Workflow">
    In Attio, go to **Workflows** → **Create workflow** and choose **Webhook received** as the trigger. Copy the generated URL.
  </Step>
  <Step title="Add the Webhook in Formbricks">
    Go to **Configuration** → **Integrations** → **Manage Webhooks** → **Add Webhook**. Paste the Attio URL, select **Response Finished**, and choose your survey.

    ![Integrations Tab](/images/platform/features/integrations/webhooks/integrations-tab.webp)
  </Step>
  <Step title="Add a Parse JSON Block">
    Submit a test response, then add a **Parse JSON** block. Set **Input** to **Webhook Payload Body** and generate the schema by pasting the sample Formbricks payload. Answers are under `data.dataByQuestionCode`, keyed by question code (`data.data` holds the same answers keyed by Question ID).
  </Step>
  <Step title="Add a Create/Update Record Action">
    Choose **People** or **Companies** and map the parsed fields. To avoid duplicates, match People on email (e.g. `data.dataByQuestionCode.email`) and Companies on domain.
  </Step>
  <Step title="Test and Activate">
    Submit another response, confirm the record in Attio, and turn the workflow on.
  </Step>
</Steps>

---

## Method 2: Make.com

<Steps>
  <Step title="Check Question Codes">
    Give each question you want to map a meaningful question code, such as `email`, so mapping is easier. Find it in the **Settings** tab of the question, under **Recode**. Codes can only be changed before the survey is published and are locked afterwards. See [Question codes and answer codes](/surveys/analysis/question-codes).
  </Step>
  <Step title="Add the Formbricks Trigger">
    In a new [Make](https://make.com) scenario, add **Formbricks** → **Watch Response Finished**. Click **Create a webhook**, enter your API host (default `https://app.formbricks.com`) and [API key](/api-reference/generate-key), and select your survey.

    ![Search Formbricks](/images/platform/features/integrations/make/search-formbricks.webp)
    ![Enter API Key](/images/platform/features/integrations/make/enter-api-key-and-host.webp)
  </Step>
  <Step title="Add the Attio Module">
    Add **Attio** → **Create or Update a Person** (or **Company**) and connect your Attio account.
  </Step>
  <Step title="Map Fields">
    | Attio Attribute | Formbricks Field |
    | --------------- | ---------------- |
    | Email Addresses | `dataByQuestionCode.email` |
    | Name | `dataByQuestionCode.first_name` / `dataByQuestionCode.last_name` |
    | Custom Attribute | Any `dataByQuestionCode.*` or `meta.*` field |
  </Step>
  <Step title="Test and Activate">
    Submit a test response, confirm the record in Attio, and turn on the scenario.
  </Step>
</Steps>

---

## Method 3: n8n

<Note>
  The Formbricks and Attio nodes are community nodes for self-hosted n8n. On n8n Cloud, use a **Webhook** node as the trigger (with a Formbricks webhook pointing at it) and an **HTTP Request** node with the API call from Method 4. The Webhook node nests the request under `body`, so use `$json.body.data.dataByQuestionCode.*` in place of `$json.data.dataByQuestionCode.*`.
</Note>

<Steps>
  <Step title="Add the Formbricks Trigger">
    Install `@formbricks/n8n-nodes-formbricks` via **Settings** → **Community Nodes**. Then add the **Formbricks** trigger node, connect your API key and host, select **Response Finished**, and choose your survey.

    ![Add Formbricks Trigger](/images/platform/features/integrations/n8n/add-formbricks-trigger.webp)
  </Step>
  <Step title="Add the Attio Node">
    Install `n8n-nodes-attio` via **Settings** → **Community Nodes**, add it with the **Assert Record** operation, and authenticate with your access token.
  </Step>
  <Step title="Configure the Record">
    Set **object** to `people` and **matching_attribute** to `email_addresses`, then set the `data` body (replace the keys with your question codes):

    ```json
    {
      "values": {
        "email_addresses": ["{{ $json.data.dataByQuestionCode.email }}"],
        "name": [{
          "first_name": "{{ $json.data.dataByQuestionCode.first_name }}",
          "last_name": "{{ $json.data.dataByQuestionCode.last_name }}",
          "full_name": "{{ $json.data.dataByQuestionCode.first_name }} {{ $json.data.dataByQuestionCode.last_name }}"
        }]
      }
    }
    ```
  </Step>
  <Step title="Test and Activate">
    Click **Listen for event**, submit a test response, confirm the record in Attio, and activate the workflow.
  </Step>
</Steps>

---

## Method 4: Custom webhook

<Steps>
  <Step title="Create a Formbricks Webhook">
    Go to **Configuration** → **Integrations** → **Manage Webhooks** → **Add Webhook**, enter your endpoint URL, select **Response Finished**, and choose your surveys.
  </Step>
  <Step title="Build the Handler">
    Read the answers from `data.dataByQuestionCode` (keyed by question code; `data.data` holds the same answers keyed by Question ID) and call Attio's [Assert Record endpoint](https://docs.attio.com/rest-api/endpoint-reference/records/assert-a-record), which creates or updates in one call:

    ```
    PUT /v2/objects/people/records?matching_attribute=email_addresses
    ```

    ```json
    {
      "data": {
        "values": {
          "email_addresses": ["jane@example.com"],
          "name": [{ "first_name": "Jane", "last_name": "Doe", "full_name": "Jane Doe" }]
        }
      }
    }
    ```

    For signature verification, see [Webhooks](/platform/features/integrations/webhooks).
  </Step>
  <Step title="Deploy and Test">
    Deploy the handler to a public URL, submit a test response, and confirm the record in Attio.
  </Step>
</Steps>

---

## Troubleshooting

**No record created**
- Check that you're mapping the correct email question code.
- Check the token has `record_permission:read-write` and `object_configuration:read`.

**Duplicate records**
- Use a create-or-update action (or the Assert endpoint) matching People on email and Companies on domain.

**Webhook not firing**
- Check the URL is public, **Response Finished** is selected, and the survey is linked.

---

Need help? Ask in [GitHub Discussions](https://github.com/formbricks/formbricks/discussions).
