Skip to content

n8n Setup

Connect n8n to graph8 Studio to automate workflows with your campaigns, accounts, and intelligence data.

What is n8n?

n8n is an open-source workflow automation tool. With MCP integration, you can:

  • Trigger workflows when campaigns are created or updated
  • Sync account data with your CRM
  • Build custom automations using graph8 Studio data

Prerequisites

  • n8n instance (self-hosted or cloud)
  • A graph8 Studio account
  • n8n MCP support enabled (requires n8n 1.x+)

Setup Steps

  1. Connect in graph8 Studio

    Go to Profile and click “Connect” in the MCP card. Complete the sign-in flow.

  2. Copy the n8n configuration

    After connecting, expand “Setup Instructions” and select the n8n tab. Copy the HTTP Request configuration.

  3. Add HTTP Request node in n8n

    In your n8n workflow, add an HTTP Request node.

  4. Configure the connection

    Paste the configuration from your Profile page, or use this format:

    https://mcp-production-c2f3.up.railway.app/mcp?session_id=YOUR_SESSION_ID
  5. Test the connection

    Use the “Test” button in n8n to verify the connection works.

Available Actions

Once connected, you can use these MCP tools in your n8n workflows:

Campaigns

  • list_campaigns — Get all campaigns with optional status filter
  • get_campaign — Get details for a specific campaign
  • search_campaigns — Search campaigns by keyword

Companies

  • list_accounts — Get all companies
  • get_account — Get company details by ID or name
  • search_accounts — Search companies by industry, name, etc.

Deals

  • list_deals — Get pipeline deals
  • get_deal — Get deal details

Intelligence

  • get_intelligence — Get intelligence for an account
  • search — Search across all graph8 Studio data

Example Workflows

Sync New Campaigns to Slack

  1. Trigger: Schedule (every hour) or Webhook
  2. MCP Node: list_campaigns with status=“active”
  3. Filter Node: Only new campaigns since last run
  4. Slack Node: Post to #marketing channel

Enrich CRM with Company Intelligence

  1. Trigger: Webhook from CRM (new deal created)
  2. MCP Node: get_account by company name
  3. MCP Node: get_intelligence for the company
  4. HTTP Node: Update CRM record with intelligence data

Daily Pipeline Report

  1. Trigger: Schedule (9am daily)
  2. MCP Node: list_deals
  3. Code Node: Summarize pipeline by stage
  4. Email Node: Send report to sales team

Manual HTTP Setup

If your n8n version doesn’t have native MCP support, use the HTTP Request node:

{
"method": "POST",
"url": "https://mcp-production-c2f3.up.railway.app/mcp",
"headers": {
"Content-Type": "application/json"
},
"body": {
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "list_campaigns",
"arguments": {
"status": "active"
}
},
"id": 1
},
"qs": {
"session_id": "YOUR_SESSION_ID"
}
}

Troubleshooting

”Authentication failed”

  1. Go to Profile in graph8 Studio
  2. Check if your session is still active
  3. If expired, click “Connect” for a new session
  4. Update the session ID in your n8n workflow

”Tool not found”

  • Verify you’re using the correct tool name (case-sensitive)
  • Check the capabilities guide for available tools

Rate limiting

  • graph8 Studio has rate limits on API calls
  • Add delays between requests in high-volume workflows
  • Consider batching operations where possible

Session Management

MCP sessions expire after 24 hours of inactivity. For long-running automations:

  1. Check session validity at the start of critical workflows
  2. Set up alerts for authentication failures
  3. Refresh sessions proactively from the Profile page

Frequently Asked Questions

Can I use n8n Cloud or do I need self-hosted?

Both work. n8n Cloud and self-hosted instances can connect to graph8 Studio via MCP. The HTTP Request node method works universally.

How do I handle session expiration in automated workflows?

Store your session ID in n8n credentials for easy updating. Set up error handling to catch authentication failures, and consider adding alerting when sessions expire.

Are there rate limits on MCP calls from n8n?

Yes, graph8 Studio has rate limits. Add delays between requests in high-volume workflows. If you hit limits, you’ll receive a rate limit error response.

Can I trigger n8n workflows from graph8 Studio?

Use webhooks for this. Configure an outbound webhook in graph8 Studio that calls your n8n webhook trigger URL when events occur (campaign created, intelligence complete, etc.).

How do I test MCP calls before building full workflows?

Use n8n’s HTTP Request node with the “Test” button. You can verify responses before connecting to other nodes. Start with simple calls like list_campaigns.