Integrations: Langbase with n8n Workflows

Let's take a look at how to integrate Langbase Pipe into your n8n workflows.


In this integration guide, you will:

  • Learn how to set up Langbase Pipe in your n8n workflow.
  • Understand how to configure the HTTP Request node to communicate with Langbase Pipe.
  • Extract and manipulate the response from Langbase Pipe using n8n's data transformation features.

Step #1Get the Pipe run cURL request

To get started with integrating Langbase Pipe into your n8n workflow, follow these steps:

  1. Navigate to Langbase Studio.
  2. Create a new Pipe agent or select an existing one. You can also fork this AI Support agent pipe.
  1. Navigate to the API tab in your Langbase Pipe to access its API endpoint and API key.
  1. Scroll to the Run the Pipe (simple) section.
  2. Click on the STREAM-OFF tab.
  3. Copy the Pipe run cURL request.

Step #2Configure HTTP Request Node in n8n

  1. Open your n8n workspace and navigate to your workflow.
  2. Add a new node by clicking the + icon.
  3. Select HTTP Request node from the Core section.
  4. This node will handle the API communication with Langbase.

Step #3Import Pipe run cURL request

  1. Click on the Import cURL button. A popup will appear on your screen.
  2. Paste the Pipe run cURL request you copied earlier into the popup.
  3. Click on Execute Step button.
  4. You will see the response in the OUTPUT section.

Step #4Create a new data transformation node

  1. Add another new node to your workflow.
  2. Navigate to Data transformation section.
  3. Select Edit Fields (Set) to extract specific response.

Step #5Extract and manipulate the response

You can consume the response from the Langbase Pipe in your n8n workflow by extracting the completion field from the response.

  1. Drag the completion field in the Field to Set input field.
  2. Execute the transformation by clicking Execute Step.
  3. Now you can see the response in the OUTPUT section.
Info

See our API Reference for more API endpoints and cURL requests.


Next Steps