n8n Integration
Supervaize Studio can use an n8n workflow as an Agent.
This lets you:
- link an existing n8n workflow by URL
- run it from Supervaize as a Job
- pass job inputs and agent parameters into n8n
- track execution progress in Supervaize
- optionally pause for Human-in-the-Loop approval (MCP mode)
Two Integration Modes
1. Zero-touch (default)
Use this when you want the fastest setup and do not want to modify your workflow.
What you need:
- an n8n workflow with a Webhook trigger node
- for example:
hello_world_zero_touch.json
- for example:
- an n8n API Key
- see get n8n api for how to get your API key
What Supervaize does:
- triggers your n8n webhook
- polls n8n execution status automatically
- creates Case steps from completed n8n nodes
Good for:
- existing webhook workflows
- quick onboarding
- no human-in-the-loop (human approval) steps required
2. MCP reporting (advanced)
Use this when you want rich progress reporting and human-in-the-loop steps.
What you need:
- an n8n workflow that includes MCP Client nodes
- n8n API Key (used for linking/metadata and some runtime operations)
- n8n MCP server token from n8n (Studio calls n8n with it)
- Studio MCP token from Studio (the MCP Client nodes call Studio with it)
- MCP Client nodes configured to call the Supervaize MCP endpoint
https://<your-studio>/mcp/agent/<workspace>
What you gain:
- explicit case start/step/status reporting
- human input requests from n8n to Supervaize
- workflow resume after user decision
Before You Start
Prepare these values:
Workflow URL(for examplehttps://n8n.example.com/workflow/<id>)n8n API Key(in n8n go toSettings->n8n API, then click Create an API Key)n8n MCP server token(only for MCP mode; in n8n go toSettings->Instance-level MCP)
Get n8n API :

Setup Instance-level MCP :
For the MCP token in n8n:
- make sure Instance-level MCP is Enabled
- open Connection details and copy the access token
- if the page shows
No workflows enabled, click Enable workflows for the workflows you want MCP clients to discover/execute

Workflow requirements by mode:
- Zero-touch: must include a
Webhooktrigger node. - MCP mode: should include MCP Client nodes calling Supervaize tools such as
report_case_start,report_case_step,request_human_input,get_case_status, andreport_case_status.
Save an n8n Instance
Save each n8n instance once. Workflows on the same host reuse its credentials.
The n8n page is in the workspace settings menu under Tools. It shows when you have Developer access and the n8n feature is enabled for the workspace.
- Open Settings, then Tools. The page is titled n8n Integrations.
- In n8n instances, click Add n8n instance.
- Enter the n8n base URL.
- Enter the n8n API key. You can add it later.
- For MCP mode, enter the n8n MCP server token (Studio → n8n).
- Click Save.
To change an instance, click Edit on its row. Saved secrets are masked.
Studio MCP token (MCP mode)
The MCP Client nodes of your workflow need a token from Studio. This token is not the n8n MCP server token.
- Click Edit on the instance.
- In Studio MCP token (n8n → Studio), click Generate Studio MCP token.
- Copy the server URL and the token. Studio shows them one time.
- In each n8n MCP Client node, set the server URL and the Bearer credential to these values.
The token is bound to this workspace and this instance. Regenerate Studio MCP token revokes the previous token. Do not paste the Studio token in the n8n MCP server token field.
Link a Workflow by URL (Recommended)
In Supervaize Studio:
- Open Settings, then Tools.
- Click Link workflow. The Link n8n workflow dialog opens.
- In n8n instance, select a saved instance. Or select the new-instance option.
- Paste the Workflow URL. With a saved instance, the URL must be on the same host.
- For a new host, enter the n8n API key (first time).
- Leave Enable MCP reporting off for zero-touch, or turn it on for MCP mode.
- If MCP reporting is on, enter the n8n MCP server token (Studio → n8n). Leave it empty to use the token saved on the instance.
- (Optional) If the webhook uses authentication in n8n, select Webhook uses authentication in n8n. Then select Header Auth or Basic Auth.
- (Optional) Add Workflow parameters (optional) with Add parameter. Each parameter has a name, a description, Secret and Required.
- Click Link workflow.
What happens automatically:
- Supervaize fetches your workflow metadata from n8n
- detects webhook path (for zero-touch)
- auto-detects parameters from credentials and code nodes
- creates an Agent linked to that n8n workflow
Import a Workflow from JSON (Alternative)
You can also click Import JSON and import exported workflow JSON from n8n.
Use this when:
- you already exported a workflow file
- you want to import without using the workflow URL flow
In the Import workflow JSON dialog, you provide:
- the n8n instance, or a new n8n host URL
- the n8n API key (optional)
- the Workflow file, or the Workflow JSON pasted as text
- the Workflow name (required)
Click Import to create the agent.
How Your n8n Workflow Receives Data
When a Job starts, Supervaize sends a JSON payload to n8n (webhook/MCP input) with:
job_idjob_contextjob_fieldsagent_parameters
Typical structure:
{
"job_id": "...",
"job_context": { "workspace_id": "...", "started_by": "..." },
"job_fields": { "Some input": "value" },
"agent_parameters": { "API_KEY": "...", "LOOKUP_COUNT": "3" }
}
In n8n Code nodes, read it from the webhook body (common pattern):
const body = $input.first().json.body || $input.first().json;
const agentParams = body.agent_parameters || {};
const jobFields = body.job_fields || {};
Parameters: What Users Configure in Supervaize
Supervaize can create Agent parameters from:
- n8n credentials used in the workflow
- code references like
agent_parameters.API_KEY - parameters you manually define during linking
Behavior:
- names containing
KEY,SECRET,TOKEN,PASSWORDare treated as secret - some required/optional flags are inferred from code patterns
- users fill these values in the Agent configuration before running jobs
Running the Workflow from Supervaize
After linking:
- Open the created Agent.
- Fill any required Agent parameters.
- Start a Job from Supervaize.
- Watch Job and Case progress in Supervaize.
In zero-touch mode:
- Supervaize polls n8n (about every 10 seconds, for up to 20 minutes per execution)
- each completed n8n node appears as a Case step
- a final summary step is added when execution ends
In MCP mode:
- progress depends on what your MCP Client nodes report
- Human-in-the-loop steps can pause the workflow until a user responds in Supervaize
Human-in-the-Loop (MCP Mode)
MCP mode supports approval/decision loops:
- n8n calls
request_human_input - Supervaize shows the question/form in the Case
- A user responds in Supervaize
- n8n calls
get_case_status(or resumes via the designed MCP flow) - Workflow continues based on the response
Use MCP mode when your workflow needs:
- approvals
- operator confirmation
- manual correction/selection
Example Workflows (Attached Files)
The three example files you shared map to the supported usage patterns:
Download the examples:
hello_world_zero_touch.json (first test)
What it is:
- Minimal zero-touch example
- Flow:
Webhook->Code->Respond to Webhook - Good for first connectivity test
How to use it:
- Import it into n8n (
Import from Fileor paste JSON). - Activate the workflow in n8n.
- In Supervaize, link it with Link workflow (leave MCP reporting off).
- Start a test Job.
- Confirm Supervaize creates a Case and shows node steps for the webhook/code/response nodes.
zero_touch_exp_1.json (parameters + validation)
What it is:
- Practical zero-touch example with parameter validation
- Reads
agent_parametersandjob_fields - Demonstrates a required parameter check for
API_KEY
How to use it:
- Import and activate the workflow in n8n.
- Link it in Supervaize using Link workflow (MCP reporting off).
- Open the created Agent and verify parameters were detected (for example
API_KEY,LOOKUP_COUNT,NOTIFICATION_EMAIL). - Set
API_KEY(required). Optionally setLOOKUP_COUNTandNOTIFICATION_EMAIL. - Start a Job and inspect the Case steps and final response in Supervaize.
Notes:
- If
API_KEYis missing, the workflow intentionally throws an error. This is useful for testing parameter validation and failure reporting.
HITL_exp.json (MCP + Human-in-the-Loop)
What it is:
- MCP and human-in-the-loop example
- Includes multiple
MCP Clientnodes and aWaitnode - Shows an advanced pattern for human decision steps
How to use it:
- Import and activate the workflow in n8n.
- Configure the MCP Client nodes in n8n to call the Supervaize MCP endpoint and tools.
- In Supervaize, link the workflow by URL and turn on Enable MCP reporting.
- Enter your n8n MCP server token during linking. Add a Studio MCP token to each MCP Client node.
- Start a Job and watch the Case for MCP-reported steps.
- When a human-input request appears, respond in Supervaize.
- Confirm the workflow resumes and completes in n8n/Supervaize.
Important:
- This example requires MCP node configuration inside n8n. It will not provide human-in-the-loop behavior in zero-touch mode.
Recommended onboarding path:
- Start with
hello_world_zero_touch.json - Move to
zero_touch_exp_1.json - Use
HITL_exp.jsonwhen you need approvals or human-in-the-loop steps
Troubleshooting
"Invalid n8n authentication credentials"
Check:
- API key is valid
- workflow URL points to the correct n8n instance
- the workflow is accessible with that key
"Workflow not found or not accessible"
Check:
- URL is the direct workflow URL (not a list page)
- the workflow ID exists
- your n8n API key has permission to read it
Zero-touch job does not start
Check:
- workflow contains a
Webhooktrigger node - webhook path is configured on that node
- n8n server is reachable from Supervaize
- Agent has
n8n_api_keyconfigured
No human-in-the-loop step appears in Supervaize
Check:
- MCP mode was enabled when linking
- n8n MCP server token is set on the link form or the instance
- Studio MCP token is set in each MCP Client node
- workflow contains MCP Client nodes
- MCP Client nodes call Supervaize MCP tools (
request_human_input, etc.)
Best Practices
- Use zero-touch first unless you specifically need human-in-the-loop steps.
- Keep parameter names stable (
API_KEY,PHONE_NUMBER, etc.) so existing Agent config remains reusable. - Mark secrets as secret parameters in the link form.
- Add a simple webhook-based smoke test workflow before linking a production workflow.