Cluster Nodes
root-nodes
n8n-nodes-langchain.agent
Conversational AI Agent node documentation

Conversational AI Agent node

Feature removed: n8n removed this functionality in February 2025.

The Conversational Agent has human-like conversations. It can maintain context, understand user intent, and provide relevant answers. This agent is typically used for building chatbots, virtual assistants, and customer support systems.

The Conversational Agent describes tools in the system prompt and parses JSON responses for tool calls. If your preferred AI model doesn't support tool calling or you're handling simpler interactions, this agent is a good general option. It's more flexible but may be less accurate than the Tools Agent.

Refer to AI Agent for more information on the AI Agent node itself.

Node parameters

Configure the Conversational Agent using the following parameters.

Prompt

Require Specific Output Format

Node options

Refine the Conversational Agent node's behavior using these options:

Human Message

Tell the agent about the tools it can use and add context to the user's input.

You must include these expressions and variable:

  • {tools}: A LangChain expression that provides a string of the tools you've connected to the Agent. Provide some context or explanation about who should use the tools and how they should use them.
  • {format_instructions}: A LangChain expression that provides the schema or format from the output parser node you've connected. Since the instructions themselves are context, you don't need to provide context for this expression.
  • {{input}}: A LangChain variable containing the user's prompt. This variable populates with the value of the Prompt parameter. Provide some context that this is the user's input.

Here's an example of how you might use these strings:

Example:

TOOLS
------
Assistant can ask the user to use tools to look up information that may be helpful in answering the user's original question. The tools the human can use are:

{tools}

{format_instructions}

USER'S INPUT
--------------------
Here is the user's input (remember to respond with a markdown code snippet of a JSON blob with a single action, and NOTHING else):

{{input}}

System Message

Max Iterations

Return Intermediate Steps

Refer to the main AI Agent node's Templates and examples section.

Common issues

For common questions or issues and suggested solutions, refer to Common issues.