n8n + MindStudio
Integrate MindStudio AI Agents with n8n
Last updated
Integrate MindStudio AI Agents with n8n
Last updated
MindStudio Agents can be triggered directly from using an HTTP Request node to run custom workflows. This guide walks you through the full setup.
Before you start:
You must have a MindStudio account with a published AI Agent.
You'll need your Agent ID and an API key from the MindStudio Developer Portal.
Your agent must have Launch Variables setup in the Start Block.
Open the Agent you'd like to call via API
In the Editor, click the top folder to open the Agent Settings
On the Metadata tab, you'll find the Agent ID at the bottom.
Click on the Agent ID to copy it to your clipboard.
Go to
Click on "Create Key"
Name your Key
Click on the key to copy it to your clipboard
Open the Agent you'd like to call via API
In the automations tab, click on the Start Block
Make sure your Run Mode is set to On-Demand
At the top of the configuration panel click to add new launch variables
Click the “+” button in n8n
Search for and select HTTP Request
Under the HTTP Request Node:
HTTP Method: POST
URL: https://v1.mindstudio-api.com/developer/v2/agents/run
Authentication: Set to "None"
Headers:
Key: Authorization
— Value: Bearer YOUR_API_KEY
Set the Body Content Type to RAW
Set Content Type to application/json
Paste your payload into the body field, like this:
You can use expressions (
$json["fieldName"]
) to dynamically populate these variables from previous n8n nodes. Or use the n8n interface to click and drag values in from previous steps.
Run the workflow manually with sample data. If there’s an error, check the HTTP Response Code
and body
message. You may also consider using n8n's built in assistant to help debug.
Invalid API Key → Ensure your key is copied correctly from MindStudio.
Invalid Agent ID → Only use published Agent IDs.
Missing variables → Ensure all required launch variables are included.