If you are using Formbricks Cloud, you will need to configure this
integration differently. Please follow this guide
here to set it up.
Setup
Enabling the n8n integration in a self-hosted environment requires a new workflow setup using n8n and changing the environment variables of your Formbricks instance.- Setup your n8n workflow: Go to n8n.io and create a new workflow. Search for “Formbricks” to get started:
- Connect Formbricks with n8n: Now, you have to connect n8n with Formbricks via an API Key:
- Click on Create New Credentail button to add your host and API Key
- Select Event: Next, you can choose the event you want to trigger the node on. You can select multiple events:
Response Finished as an event, which will trigger when the survey has been filled out.
- Select Survey: Next, you can choose from all the surveys you have created in this workspace. You can select multiple surveys:
- 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.
Response Finished). Once the event is triggered you will see the response that you filled out in the survey.
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:
- Add Discord to your workflow: Click on the plus and search
Discord.
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.
Once the execution is successful, you’ll receive the content in the discord channel.
Voila! You have successfully enabled the n8n integration in your self-hosted Formbricks instance. Now you can follow the steps mentioned in the Formbricks Integrations section to know more about the capabilities with Formbricks with n8n.
Still struggling or something not working as expected? Join our Github Discussions and we’d be glad to assist you!