> ## 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.

# Activepieces

> A step-by-step guide to integrating Formbricks with Activepieces.

Activepieces is a versatile tool to automate workflows between Formbricks and numerous applications. Here's how to set it up.

<Note>
  Ensure your survey is finalized before setting up Activepieces. Any changes in the survey will require additional adjustments in the workflow.
</Note>

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

Set up the `questionId`s of your survey questions before publishing.

<img src="https://mintcdn.com/formbricks/hX4eoMhsUTcFz4G1/images/xm-and-surveys/core-features/integrations/activepieces/update-question-id.webp?fit=max&auto=format&n=hX4eoMhsUTcFz4G1&q=85&s=aa0bea2564d3821e4d747360aefc2b7a" alt="Update Question ID" width="1678" height="800" data-path="images/xm-and-surveys/core-features/integrations/activepieces/update-question-id.webp" />

*Update the Question ID field in every question card under Advanced Settings.*

<Note>
  Already published? Duplicate survey You can only update the questionId before publishing the survey. If already published, simply duplicate it.

  <img src="https://mintcdn.com/formbricks/FxVXbfRFRc8kmKdj/images/xm-and-surveys/core-features/integrations/activepieces/duplicate-survey.webp?fit=max&auto=format&n=FxVXbfRFRc8kmKdj&q=85&s=95ef9012ac1652a1e5bbc8894ebc3297" alt="Duplicate Survey" width="2982" height="536" data-path="images/xm-and-surveys/core-features/integrations/activepieces/duplicate-survey.webp" />
</Note>

## Step 2: Setup Activepieces

Visit [Activepieces](https://activepieces.com) to start a new Flow.

<img src="https://mintcdn.com/formbricks/FxVXbfRFRc8kmKdj/images/xm-and-surveys/core-features/integrations/activepieces/create-new-flow.webp?fit=max&auto=format&n=FxVXbfRFRc8kmKdj&q=85&s=b7f6ebee8f825add83a3b5e6a4bbd070" alt="Create New Flow" width="1570" height="460" data-path="images/xm-and-surveys/core-features/integrations/activepieces/create-new-flow.webp" />

Search for `Formbricks` and choose the event to trigger the flow, we will choose `Response Finished` here

<img src="https://mintcdn.com/formbricks/FxVXbfRFRc8kmKdj/images/xm-and-surveys/core-features/integrations/activepieces/search-formbricks.webp?fit=max&auto=format&n=FxVXbfRFRc8kmKdj&q=85&s=9bd4e3b24e905f438b034fc258c28557" alt="Search Formbricks" width="1850" height="1414" data-path="images/xm-and-surveys/core-features/integrations/activepieces/search-formbricks.webp" />

## Step 3: Connect Formbricks with Activepieces

Click on `Create connection`:

<img src="https://mintcdn.com/formbricks/FxVXbfRFRc8kmKdj/images/xm-and-surveys/core-features/integrations/activepieces/create-connection.webp?fit=max&auto=format&n=FxVXbfRFRc8kmKdj&q=85&s=0fba6a51fe3105ed3fb3ce480084bb2c" alt="Create Connection" width="2614" height="1140" data-path="images/xm-and-surveys/core-features/integrations/activepieces/create-connection.webp" />

Enter the Formbricks API Host and API Key. API Host is by default set to [https://app.formbricks.com](https://app.formbricks.com) but can be modified for self-hosting instances. Learn how to get an API Key from the [API Key tutorial](/api-reference/rest-api#how-to-generate-an-api-key).

<img src="https://mintcdn.com/formbricks/FxVXbfRFRc8kmKdj/images/xm-and-surveys/core-features/integrations/activepieces/configure-connection.webp?fit=max&auto=format&n=FxVXbfRFRc8kmKdj&q=85&s=6084cb03f2d39ccafe9a8a3798c624e3" alt="Configure Connection" width="1798" height="1502" data-path="images/xm-and-surveys/core-features/integrations/activepieces/configure-connection.webp" />

## Step 4: Select Survey

Choose from your created surveys:

<img src="https://mintcdn.com/formbricks/FxVXbfRFRc8kmKdj/images/xm-and-surveys/core-features/integrations/activepieces/select-survey.webp?fit=max&auto=format&n=FxVXbfRFRc8kmKdj&q=85&s=3c8e5a2af8f27e4dd6fb4f9e68fb8cd6" alt="Select Survey" width="1040" height="1062" data-path="images/xm-and-surveys/core-features/integrations/activepieces/select-survey.webp" />

## Step 5: Send a test response

You need a test response for Activepieces setup. Click on Test trigger and submit a test response in the connected Formbricks survey to see the data in Activepieces.

<img src="https://mintcdn.com/formbricks/FxVXbfRFRc8kmKdj/images/xm-and-surveys/core-features/integrations/activepieces/test-trigger.webp?fit=max&auto=format&n=FxVXbfRFRc8kmKdj&q=85&s=7da624890a91582cdd1b42ab42ea770c" alt="Test Trigger" width="968" height="1078" data-path="images/xm-and-surveys/core-features/integrations/activepieces/test-trigger.webp" />

If the test response is successful, you will see the data in Activepieces.

<img src="https://mintcdn.com/formbricks/FxVXbfRFRc8kmKdj/images/xm-and-surveys/core-features/integrations/activepieces/success-response.webp?fit=max&auto=format&n=FxVXbfRFRc8kmKdj&q=85&s=c228ca19f8b13618e3cdb4aea15aa524" alt="Success Response" width="928" height="834" data-path="images/xm-and-surveys/core-features/integrations/activepieces/success-response.webp" />

## Step 6: Set up Google Sheet

Decide on the desired action for the data. Here, we'll send submissions to a Google Sheet. Add Google sheet step to your flow and configure it as follows:
Choose "Add a Row" for the action. Authenticate with Google and select the spreadsheet you want to add the data to.

<img src="https://mintcdn.com/formbricks/FxVXbfRFRc8kmKdj/images/xm-and-surveys/core-features/integrations/activepieces/select-gs-sheet.webp?fit=max&auto=format&n=FxVXbfRFRc8kmKdj&q=85&s=985e10076852bbca00eaa07c3c814618" alt="Select Google sheet" width="2954" height="1654" data-path="images/xm-and-surveys/core-features/integrations/activepieces/select-gs-sheet.webp" />

Specify the fields you want to add to the spreadsheet.

<img src="https://mintcdn.com/formbricks/FxVXbfRFRc8kmKdj/images/xm-and-surveys/core-features/integrations/activepieces/match-data.webp?fit=max&auto=format&n=FxVXbfRFRc8kmKdj&q=85&s=33dbbf4832cb3a4d41f224edfef48819" alt="Match Data" width="2954" height="1654" data-path="images/xm-and-surveys/core-features/integrations/activepieces/match-data.webp" />

A new row gets added to the spreadsheet for every response:

<img src="https://mintcdn.com/formbricks/FxVXbfRFRc8kmKdj/images/xm-and-surveys/core-features/integrations/activepieces/result.webp?fit=max&auto=format&n=FxVXbfRFRc8kmKdj&q=85&s=39d602beacebe7f26846621e763cf290" alt="Result" width="1442" height="268" data-path="images/xm-and-surveys/core-features/integrations/activepieces/result.webp" />
