This n8n workflow enables dynamic, multi-agent AI conversations with configurable personalities, powered by OpenRouter models (e.g., GPT-4, Claude-3). 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, If for validation, 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 (e.g., add custom triggers, capabilities, or models like 'llama-3'). Ensure MySQL or similar database for session storage if scaling. 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; security alerts—review input for malicious patterns. Activate workflow in n8n. Monitor responses for agent selection accuracy (confidence > 0.1). Optimize by tuning agent triggers, maxTokens (e.g., 500 for shorter responses), temperature (e.g., 0.5 for precision), or adding new agent personalities (e.g., 'researcher').", "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"
$5.49
Workflow steps: 10
Integrated apps: chatTrigger, if, set