n8n integration
Orchestrate Blaxel agents using n8n workflows.
This tutorial will walk you through how to integrate your AI agents —deployed on Blaxel— into automated workflows using n8n. Whether you’re new to Blaxel, n8n, or both, this guide will help you get started quickly with a minimalistic setup that you can build on.
What You’ll Build
This is a simple n8n workflow that:
- listens for chat messages,
- then forwards those messages as inputs to your AI agent on Blaxel via an HTTP request.
Here’s a minimal JSON snippet that demonstrates the workflow:
Step 1: Update the URL Field
Before running your workflow, update the URL field in the HTTP Request node to match your agent’s URL. Replace https://run.blaxel.ai/{YOUR-WORKSPACE}/agents/{YOUR-AGENT}
with your actual workspace and agent identifiers.
Step 2: Configure Header Authentication
To secure your API calls, you must set up header authentication. Follow these two key steps:
-
Set up the header auth credentials:
Ensure that your HTTP Request node is set in Header Auth type.
-
Create Credentials:
Fill out the form with the following details. For more details on obtaining your Blaxel API key, refer to this Access Tokens documentation.
- Name:
Authorization
- Value:
Bearer <YOUR_API_KEY>
- Name:
Your n8n workflow is ready to launch!
Hooking up your Blaxel AI agents with n8n is like giving your dev toolkit superpowers! This bare-bones setup we just walked through is just scratching the surface. Think of it as your “Hello World” moment before diving into the really cool stuff - like building a workflow of multiple AI agents that work together.
Was this page helpful?