Table of Contents

Landbot + n8n Integration: How to Connect Using the n8n Block

Pau Sanchez Updated by Pau Sanchez

The n8n block sends data from your Landbot bot to an n8n workflow in real time, so you can trigger automations the moment a user interacts with your bot. Use it to capture leads, process form submissions, or kick off multi-step automation sequences without writing code.

What you need before you start

● An active n8n account (cloud or self-hosted)

● A basic understanding of JSON data structure

How to create a webhook trigger in n8n

A webhook trigger is the entry point n8n uses to receive data from Landbot. Set this up before you configure anything in Landbot.

1️⃣ Create a new workflow in n8n.

2️⃣ Add a Webhook node: click the "+" button to add a new node, then search for "Webhook" and select the Webhook Trigger node.

3️⃣ Configure the Webhook node with these settings:

● HTTP Method: POST

● Path: enter a custom path (for example, landbot-webhook) or leave the default

● Authentication: set to None, or configure it to match your security requirements

● Respond: set to Using 'Respond to Webhook' Node

n8n generates two webhook URLs once you save the node:

● Test URL: use this while you're testing the workflow

● Production URL: use this in your live Landbot flow

Important: The Test URL only works while the workflow is open and active in the n8n editor. Switch to the Production URL before you publish your bot, or the integration stops working as soon as you close the n8n tab.

How to configure the response n8n sends back to Landbot

The Respond to Webhook node controls what n8n sends back after it receives data from Landbot. Add it right after your webhook trigger.

1️⃣ Add a Respond to Webhook node after your Webhook trigger node.

respond to webhook node screenshot

2️⃣ In the Respond to Webhook node, configure these settings:

● Respond With: select JSON

● Response Body: keep the default example, or edit it with the parameters you want to send back to Landbot

3️⃣ (Optional) Add processing nodes — such as Set, Function, or HTTP Request — between the Webhook trigger and the Respond to Webhook node to transform or enrich the data before n8n replies.

4️⃣ Save and activate your workflow.

5️⃣ Copy the Production URL. You'll paste it into Landbot in the next step.

How to set up the n8n block in Landbot

The n8n block sends the data you configure to your n8n workflow's webhook URL. Add it to your Landbot flow once your n8n webhook trigger and Respond to Webhook node are set up.

1️⃣ Open your bot in the Landbot builder, click the "+" button to add a new block, then select Integrations → n8n.

2️⃣ Paste your n8n Production URL into the Workflow URL field. Don't use the Test URL for a live bot — it stops working as soon as the n8n workflow tab is closed.

3️⃣ Set up the data you want to send: match each key to a Landbot Field or piece of static text.

Use Landbot Fields (prefixed with @) to dynamically insert user responses into the data you send to n8n.

4️⃣ Add test values for each field.

For example: Name: "John Doe", Email: "john@example.com", Phone: "+1234567890", Message: "Test message".

5️⃣ Click Run test and wait for a successful response.

6️⃣ (Optional) Map the data n8n sends back to Landbot Fields:

Click Add field mapping.

In the Response field dropdown, select the key from the response, then choose the Landbot Field to store it in.

Example: Map myField to @myfield

7️⃣ Click Apply to save your configuration.

How to test the n8n integration

Test both sides of the connection before you publish your bot.

1️⃣ In n8n: make sure your workflow is activated (toggle in the top-right corner), then open the Executions tab to monitor incoming webhooks.

2️⃣ In Landbot: Run your bot through the flow up to the n8n block, then check that the data appears correctly in n8n's executions.

3️⃣ Confirm all fields map correctly and that any response data from n8n reaches the right Landbot Fields. Test edge cases too, such as empty fields and special characters.

Was this article helpful?

How to Integrate Landbot with n8n using Webhooks

Contact