Multi-Agent Conversation

This workflow enables simultaneous conversations between users and multiple AI agents, supporting personalized configurations for each agent's name, instructions, and language model. Users can mention specific agents using @, allowing the system to dynamically invoke multiple agents, avoiding the creation of duplicate nodes, and supporting multi-turn dialogue memory to enhance the coherence of interactions. It is suitable for scenarios such as intelligent Q&A, decision support, and education and training, meeting complex and diverse interaction needs.

Tags

Multi-agentMulti-turn Dialogue

Workflow Name

Multi-Agent Conversation

Key Features and Highlights

This workflow enables users to engage in conversations simultaneously with multiple AI agents, each configurable with unique names, instructions, and distinct language models. Users can invoke one or more specific AI agents by mentioning @agent_name in their messages; if no @mention is present, all agents are called randomly by default. The workflow automatically extracts @mentions and dynamically cycles through the respective agents, avoiding the need to create multiple separate nodes. It also supports multi-turn conversation memory to enhance interaction coherence.

Core Problems Addressed

Traditional single AI assistants struggle to meet the demands for multi-dimensional and multi-style intelligent interactions. This workflow leverages multi-agent collaboration to overcome the limitations of single-model coverage, delivering a richer and more flexible intelligent dialogue experience. Additionally, dynamic invocation and unified management reduce complexity and improve scalability.

Application Scenarios

  • Intelligent Q&A requiring multi-perspective and multi-style responses
  • Collaborative multi-role AI assistance for decision-making in complex business scenarios
  • Simulated multi-mentor style dialogues in education and training
  • Customer service systems integrating multiple intelligent assistants to enhance service quality
  • Experimental environments for comparing responses from different AI models in research and development

Main Process Steps

  1. Receive User Chat Messages: Triggered by Webhook to capture input messages.
  2. Define User and Global System Settings: Configure user information and global system prompts.
  3. Configure Multiple AI Agents: Define agent names, corresponding models, and personalized system messages.
  4. Extract @Mentions from Messages: Parse message text to identify and prioritize specified agents for invocation.
  5. Iteratively Invoke Agents: For each called agent, dynamically generate dialogue context based on its configuration and invoke the corresponding model.
  6. Manage Multi-Turn Conversation Memory: Use shared memory nodes to maintain session context, supporting continuous dialogue.
  7. Aggregate Agent Responses: Collect and format all agents’ replies into a unified output for the user.

Involved Systems or Services

  • n8n Automation Platform: Core workflow design and execution environment.
  • LangChain Nodes: Facilitate chat triggers, agent invocation, and multi-turn memory management.
  • OpenRouter API: Supports calling multiple large language models such as OpenAI GPT-4o, Anthropic Claude, and Google Gemini.
  • Code Nodes (JavaScript): Implement key logic including @mention parsing and response aggregation.

Target Users and Value

  • AI product developers and automation engineers: Quickly prototype multi-agent conversational systems.
  • Enterprise users and customer service teams: Build multi-role intelligent customer support or advisory assistants.
  • Educational and training institutions: Simulate multi-mentor, multi-style teaching environments.
  • Researchers: Compare performance across different language models and conduct multi-agent interaction studies.
  • Any individuals or teams seeking to enhance the diversity and depth of AI-driven conversations.

By offering flexible configuration and high scalability, this workflow empowers users to achieve efficient and enriched multi-agent conversational experiences, fulfilling diverse intelligent interaction needs in complex scenarios.

Recommend Templates

Intelligent Q&A and Citation Generation Based on File Content

This workflow achieves efficient information retrieval and intelligent Q&A by automatically downloading specified files from Google Drive and splitting their content into manageable text blocks. Users can ask questions through a chat interface, and the system quickly searches for relevant content using a vector database and OpenAI models, generating accurate answers along with citations. This process significantly enhances the efficiency of document information acquisition and the credibility of answers, making it suitable for various scenarios such as academic research, enterprise knowledge management, and customer support.

Intelligent QAVector Search

Daily Cartoon (w/ AI Translate)

This workflow automatically retrieves "Calvin and Hobbes" comics daily, extracts image links, and uses AI to translate the comic dialogues into English and Korean. Finally, the comics, complete with original text and translations, are automatically pushed to a Discord channel, allowing users to access the latest content in real time. This process eliminates the hassle of manually visiting websites and enables intelligent sharing of multilingual comics, making it suitable for comic enthusiasts, content operators, and language learners.

comic scrapingAI translation

Multimodal Image Content Embedding and Vector Search Workflow

This workflow automatically downloads images from Google Drive, extracts color information and semantic keywords, and combines them with advanced multimodal AI models to generate embedded documents stored in a memory vector database. It supports text-based image vector searches. This solution addresses the inefficiencies and inaccuracies of traditional image search methods and is suitable for scenarios such as digital asset management, e-commerce recommendations, and media classification, enhancing the intelligence of image management and retrieval.

Multimodal EmbeddingVector Search

Summarize YouTube Videos (Automated YouTube Video Content Summarization)

This workflow can automatically retrieve the transcription text of YouTube videos and utilize artificial intelligence technology to extract key points, generating a concise text summary. Through this process, users can quickly grasp the essential information from the video, saving time on watching lengthy videos. It is suitable for content creators, researchers, and professionals, helping them efficiently acquire and manage valuable information, enabling rapid conversion and application of knowledge.

Video SummaryAuto Transcription

LLM Chaining Examples

This workflow demonstrates how to analyze and process web content step by step through multiple chained calls to a large language model. Users can choose sequential, iterative, or parallel processing methods to meet different scenario requirements. It supports context memory management to enhance conversational continuity and integrates with external systems via a Webhook interface. It is suitable for automatic web content analysis, intelligent assistants, and complex question-answering systems, catering to both beginners and advanced users' expansion needs.

LLM chainingMemory management

Auto Categorize WordPress Template

This workflow utilizes artificial intelligence technology to automatically assign primary categories to WordPress blog posts, significantly enhancing content management efficiency. It addresses the time-consuming and error-prone issues of traditional manual categorization, making it suitable for content operators and website administrators, especially when managing a large number of articles. Users only need to manually trigger the process to retrieve all articles, which are then categorized through intelligent AI analysis. Finally, the categories are updated back to WordPress, streamlining the content organization process and improving the quality of the website's content and user experience.

WordPress CategoriesSmart Sorting

Chat with OpenAI Assistant — Sub-Workflow for Querying Capitals of Fictional Countries

This workflow integrates an intelligent assistant specifically designed to query the capitals of fictional countries. Users can obtain capital information for specific countries through simple natural language requests, or receive a list of all supported country names when they request "list." It combines language understanding and data mapping technologies, enabling quick and accurate responses to user inquiries, significantly enhancing the interactive experience. This is suitable for various scenarios, including game development, educational training, and role-playing.

Fictional CountriesOpenAI Chat

Intelligent Web Query and Semantic Re-Ranking Flow

This workflow aims to enhance the intelligence and accuracy of online searches. After the user inputs a research question, the system automatically generates the optimal search query and retrieves results through the Brave Web Search API. By leveraging advanced large language models, it conducts multi-dimensional semantic analysis and result re-ranking, ultimately outputting the top ten high-quality links and key information that closely match the user's needs. This process is suitable for scenarios such as academic research, market analysis, and media editing, effectively addressing the issues of imprecise traditional search queries and difficulties in information extraction.

Intelligent SearchSemantic Reordering