Skip to content

Using n8n with LangBot

n8n is an open-source workflow automation platform that allows you to create, schedule, and execute various automated tasks.

LangBot currently supports triggering workflows and receiving responses through the Webhook node in n8n workflows.

Using n8n as the runner

Please open the configuration page of an existing pipeline or create a new pipeline (recommended) and open the configuration page. Select n8n Workflow API as the runner in AI.

n8n as the runner

Then configure and fill in the other settings according to the content below.

Configuring n8n Workflow Connection

n8n Workflow

You need to select Webhook as the trigger and configure it according to the image below:

n8n webhook configuration

INFO

Authentication corresponds to the authentication methods in LangBot's pipeline configuration, which you can modify as needed.

n8n workflow configuration

For the workflow response content in n8n, please use the Respond to Webhook node and configure it according to the image below:

n8n workflow response configuration

The response content key name in Response Body needs to match the output key name in LangBot's pipeline configuration.

After completing the n8n workflow configuration, please click Active at the top to enable the workflow.