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

# n8n

> Integrate Formbricks with n8n for a streamlined workflow experience.

> [!NOTE]
>
> The Formbricks n8n node is currently only available in the n8n self-hosted
> version as a community node. To install it go to "Settings" -> "Community
> Nodes" and install @formbricks/n8n-nodes-formbricks.

n8n allows you to build flexible workflows focused on deep data integration. And with sharable templates and a user-friendly UI, the less technical people on your team can collaborate on them too. Unlike other tools, complexity is not a limitation. So you can build whatever you want — without stressing over budget. Hook up Formbricks with n8n and you can send your data to 350+ other apps. Here is how to do it.

## Step 1: Setup your survey incl. `questionId` for every question

> [!NOTE]
>
> Nailed down your survey? Any changes in the survey cause additional work in
> the n8n node. It makes sense to first settle on the survey you want to run and
> then get to setting up n8n.

When setting up the node your life will be easier when you change the `questionId`s of your survey questions. You can only do so **before** you activate your survey.

![Update Question ID](https://mintcdn.com/formbricks/ciPr-k8rsK4LGtZI/images/platform/features/integrations/n8n/update-question-id.webp?fit=max\&auto=format\&n=ciPr-k8rsK4LGtZI\&q=85\&s=83d7b8bcef7f685a1cec3570c42a7960)

*The Question ID is the first field behind **Show Question settings** at the foot of a question card. Update it so you will recognise the response tied to this question.*

> [!NOTE]
>
> Already activated? Duplicate survey You can only update the questionId
> when the survey was not yet activated. Already activated it? Just **duplicate
> it** to update the questionIds.
>
> ![Duplicate Survey](https://mintcdn.com/formbricks/ciPr-k8rsK4LGtZI/images/platform/features/integrations/n8n/duplicate-survey.webp?fit=max\&auto=format\&n=ciPr-k8rsK4LGtZI\&q=85\&s=3ee00952d6bc1a50d9a944d765851730)

## Step 2: Setup your n8n workflow

Go to [n8n.io](https://n8n.io) and create a new workflow. Search for “Formbricks” to get started:

![Add Formbricks Trigger](https://mintcdn.com/formbricks/ciPr-k8rsK4LGtZI/images/platform/features/integrations/n8n/add-formbricks-trigger.webp?fit=max\&auto=format\&n=ciPr-k8rsK4LGtZI\&q=85\&s=6ec754cf7fb282ae800595341304a2ea)

## Step 3: Connect Formbricks with n8n

Now, you have to connect n8n with Formbricks via an API Key:

![Create new credential button](https://mintcdn.com/formbricks/ciPr-k8rsK4LGtZI/images/platform/features/integrations/n8n/create-new-credential-btn.webp?fit=max\&auto=format\&n=ciPr-k8rsK4LGtZI\&q=85\&s=62ef7868d016e0bc34713d709e0c4bb1)

Click on Create New Credential button to add your host and API Key

![Add host and api key](https://mintcdn.com/formbricks/ciPr-k8rsK4LGtZI/images/platform/features/integrations/n8n/add-api-key.webp?fit=max\&auto=format\&n=ciPr-k8rsK4LGtZI\&q=85\&s=8d70a5cd7bb1a26e5d5bbfbcdd334677)

Now you need an API key. Please refer to the [API Key Setup](https://formbricks.com/docs/api-reference/generate-key.md) page to learn how to create one.

Once you copied it in the API Key field, hit Save button to test the connection and save the credentials.

![Successful Connection](https://mintcdn.com/formbricks/ciPr-k8rsK4LGtZI/images/platform/features/integrations/n8n/success-connection.webp?fit=max\&auto=format\&n=ciPr-k8rsK4LGtZI\&q=85\&s=ae40b4a7811b28647bf769508c3b9a6b)

## Step 4: Select Event

Next, you can choose the event you want to trigger the node on. You can select multiple events:

![Select Event](https://mintcdn.com/formbricks/ciPr-k8rsK4LGtZI/images/platform/features/integrations/n8n/select-event.webp?fit=max\&auto=format\&n=ciPr-k8rsK4LGtZI\&q=85\&s=8ed93f51f5affc12a4fe481f2b26cff9)

Here, we are adding `Response Finished` as an event, which will trigger when the survey has been filled out.

## Step 5: Select Survey

Next, you can choose from all the surveys you have created in this workspace. You can select multiple surveys:

![Select Survey](https://mintcdn.com/formbricks/ciPr-k8rsK4LGtZI/images/platform/features/integrations/n8n/select-survey.webp?fit=max\&auto=format\&n=ciPr-k8rsK4LGtZI\&q=85\&s=f8493b8d9fc1984a4f8de3bd9504c9b8)

Here, we are selecting two surveys.

![Selected Surveys](https://mintcdn.com/formbricks/ciPr-k8rsK4LGtZI/images/platform/features/integrations/n8n/selected-surveys.webp?fit=max\&auto=format\&n=ciPr-k8rsK4LGtZI\&q=85\&s=4dd3b1869902a51da42d498fc96e46d6)

## Step 6: Test your trigger

In order to set up n8n you'll need a test response in the selected survey. This allows you to select the individual values of each response in your workflow.

![Submit Test Response](https://mintcdn.com/formbricks/ciPr-k8rsK4LGtZI/images/platform/features/integrations/n8n/submit-test-response.webp?fit=max\&auto=format\&n=ciPr-k8rsK4LGtZI\&q=85\&s=0477176b9d40aa90e60c6bee6e77dfd8)

Next, click on Listen for event button.

![Listen for event](https://mintcdn.com/formbricks/ciPr-k8rsK4LGtZI/images/platform/features/integrations/n8n/listen-for-event.webp?fit=max\&auto=format\&n=ciPr-k8rsK4LGtZI\&q=85\&s=45543238ec8328d126e8f8d74548b806)

Then, go to the survey which you selected. Fill it out, and wait for the particular event to trigger (in this case it's `Response Finished`). Once the event is triggered you will see the response that you filled out in the survey.

![Test Response Success](https://mintcdn.com/formbricks/ciPr-k8rsK4LGtZI/images/platform/features/integrations/n8n/test-response-success.webp?fit=max\&auto=format\&n=ciPr-k8rsK4LGtZI\&q=85\&s=eea118063a384c0c08e3fa79a255c6b9)

Now you have all the data you need at hand. The next steps depend on what you want to do with it. In this tutorial, we will send submissions to a discord channel:

## Step 7: Add discord to your workflow

Click on the plus and search `Discord`.

![Add Discord](https://mintcdn.com/formbricks/ciPr-k8rsK4LGtZI/images/platform/features/integrations/n8n/add-discord.webp?fit=max\&auto=format\&n=ciPr-k8rsK4LGtZI\&q=85\&s=a30314c4fcf031ec9274fcd4a9bf0e66)

Fill in the `Webhook URL` and the `Content` that you want to receive in the respective discord channel. Next, click on `Execute Node` button to test the node.

![Fill Discord Details](https://mintcdn.com/formbricks/ciPr-k8rsK4LGtZI/images/platform/features/integrations/n8n/fill-discord-details.webp?fit=max\&auto=format\&n=ciPr-k8rsK4LGtZI\&q=85\&s=1a52e6c0c26b35ad8702393ac82a81b1)

Once the execution is successful, you'll receive the content in the discord channel.

![Discord Response](https://mintcdn.com/formbricks/ciPr-k8rsK4LGtZI/images/platform/features/integrations/n8n/discord-response.webp?fit=max\&auto=format\&n=ciPr-k8rsK4LGtZI\&q=85\&s=3416cbebf74fd38ce22548ae0abb8813)


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