Connect n8n
Connect an AI Agent workflow to LeadsAgent.
Set up with your AI assistant
Paste the prompt into n8n. It includes setup steps and a read-only connection check.
n8n: use an API key
- On the LeadsAgent setup page, select “Create an API key”. Name it for this app and set its expiry and limits. Copy it once; it starts with la_.
- In your workflow, add an “AI Agent” node. Under its Tool connector, click + and add “MCP Client Tool”.
- Enter the LeadsAgent URL. Choose “HTTP Streamable” only if this MCP Client Tool version offers that transport. The linked tool documentation currently shows an SSE endpoint field.MCP endpoint
https://leadsagent.io/mcp/v1 - Set “Authentication” to “Header Auth” and create a new credential: Name X-API-Key, Value your key.Header name
X-API-Key - Leave “Tools to Include” on “All”, or pick “Selected” and choose find_leads, start_task, get_task, reply_to_task and get_task_results.