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
-
Connect in graph8 Studio
Go to Profile and click “Connect” in the MCP card. Complete the sign-in flow.
-
Copy the n8n configuration
After connecting, expand “Setup Instructions” and select the n8n tab. Copy the HTTP Request configuration.
-
Add HTTP Request node in n8n
In your n8n workflow, add an HTTP Request node.
-
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 -
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 filterget_campaign— Get details for a specific campaignsearch_campaigns— Search campaigns by keyword
Companies
list_accounts— Get all companiesget_account— Get company details by ID or namesearch_accounts— Search companies by industry, name, etc.
Deals
list_deals— Get pipeline dealsget_deal— Get deal details
Intelligence
get_intelligence— Get intelligence for an accountsearch— Search across all graph8 Studio data
Example Workflows
Sync New Campaigns to Slack
- Trigger: Schedule (every hour) or Webhook
- MCP Node:
list_campaignswith status=“active” - Filter Node: Only new campaigns since last run
- Slack Node: Post to #marketing channel
Enrich CRM with Company Intelligence
- Trigger: Webhook from CRM (new deal created)
- MCP Node:
get_accountby company name - MCP Node:
get_intelligencefor the company - HTTP Node: Update CRM record with intelligence data
Daily Pipeline Report
- Trigger: Schedule (9am daily)
- MCP Node:
list_deals - Code Node: Summarize pipeline by stage
- 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”
- Go to Profile in graph8 Studio
- Check if your session is still active
- If expired, click “Connect” for a new session
- 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:
- Check session validity at the start of critical workflows
- Set up alerts for authentication failures
- 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.