This n8n workflow enables dynamic, multi-agent AI conversations with configurable personalities, powered by OpenRouter models. It supports @mentions or keyword-based agent selection, maintains session context, and includes robust security and error handling. Key nodes include Chat Trigger for session management, Code for agent selection and input sanitization, and Set for structured responses. It saves 10-12 hours weekly for support or creative teams (5-30 members) handling 100+ interactions monthly, ideal for customer support, content creation, or complex problem-solving. Saves 10-12 hours weekly on 100+ monthly interactions. Suits support/creative teams (5-50 employees). Requires OpenRouter API (~$10/month), n8n (~$20/month). Scalable to 1,000 interactions/month, limited by API quotas. Install n8n via cloud.n8n.io. Obtain OpenRouter API key from openrouter.ai (Settings > API Keys). Configure webhook URL in Chat Trigger node (e.g., https://your-n8n-instance/webhook/a74752f3-419a-4510-856f-3efeaceec019). Update agent configurations in Agent Selection Logic node to match your use case (e.g., add custom triggers or models). Test with sample input (e.g., {chatInput: '@developer Debug this code'}). Handle errors: invalid API keys—regenerate in OpenRouter; rate limits—adjust timeout in Configuration Manager. Activate workflow in n8n. Monitor responses for agent selection accuracy. Optimize by tuning agent triggers, maxTokens, or adding new agent personalities.", "businessValue": "Saves 10-12 hours/week on 100+ monthly interactions", "setupTime": "45-60 minutes", "difficulty": "Advanced", "requirements": [ "OpenRouter API (~$10/month), n8n (~$20/month)", "OpenRouter API key", "Knowledge of webhooks, AI models, and session management" ], "useCase": "Automating multi-agent AI conversations"
$3.49
Workflow steps: 8
Integrated apps: chatTrigger, if, set