Skip to main content
Community template Uses AIPersonal ProductivityAI Chatbot

Build an interactive AI agent with chat interface and multiple tools - n8n workflow template

This template is a complete, hands-on tutorial that lets you build and interact with your very first AI Agent. Think of an AI Agent as a standard AI chatbot with superpowers. The agent doesn't just talk; it can use tools to perform actions and find information in real-time.…

Template by Lucas Peyrin · Original listing (opens in a new tab)

Starts on
Chat message
Nodes
11 nodes
Level
Intermediate
Setup
About 12 min

Workflow preview

How this workflow runs

  1. 1

    Example Chat Window

    Starts the workflow when a chat message is received through the chat interface.

  2. 2

    Simple Memory

    Gives the AI short-term conversational memory of recent messages.

  3. 3

    Gemini

    Provides Google Gemini as the chat model for the AI steps.

  4. 4

    OpenAI

    Provides the OpenAI chat model (GPT) that powers the AI reasoning in this workflow.

  5. 5

    get_a_joke

    A tool the AI agent can call to work with HTTP Request.

  6. 6

    days_from_now

    A tool the AI agent can call to work with Date Time.

  7. 7

    wikipedia

    Handles the Tool Wikipedia step in this workflow.

  8. 8

    create_password

    A tool the AI agent can call to work with Crypto.

  9. 9

    calculate_loan_payment

    Lets the AI agent run custom code as a tool.

  10. 10

    n8n_blog_rss_feed

    A tool the AI agent can call to work with Rss Feed Read.

Creator's notes and setup

Written by Lucas Peyrin for the original listing.

How it works

This template is a complete, hands-on tutorial that lets you build and interact with your very first AI Agent.

Think of an AI Agent as a standard AI chatbot with superpowers. The agent doesn't just talk; it can use tools to perform actions and find information in real-time. This workflow is designed to show you exactly how that works.

  1. The Chat Interface (Chat Trigger): This is your window to the agent. It's a fully styled, public-facing chat window where you can have a conversation.
  2. The Brain (AI Agent Node): This is the core of the operation. It takes your message, understands your intent, and intelligently decides which "superpower" (or tool) it needs to use to answer your request. The agent's personality and instructions are defined in its extensive system prompt.
  3. The Tools (Tool Nodes): These are the agent's superpowers. We've included a variety of useful and fun tools to showcase its capabilities:
    • Get a random joke.
    • Search Wikipedia for a summary of any topic.
    • Calculate a future date.
    • Generate a secure password.
    • Calculate a monthly loan payment.
    • Fetch the latest articles from the n8n blog.
  4. The Memory (Memory Node): This gives the agent a short-term memory, allowing it to remember the last few messages in your conversation for better context.

When you send a message, the agent's brain analyzes it, picks the right tool for the job, executes it, and then formulates a helpful response based on the tool's output.

Set up steps

Setup time: ~3 minutes

This template is nearly ready to go out of the box. You just need to provide the AI's "brain."

  1. Configure Credentials: This workflow requires an API key for an AI model. Make sure you have credentials set up in your n8n instance for either Google AI (Gemini) or OpenAI.
  2. Choose Your AI Brain (LLM):
    • By default, the workflow uses the Google Gemini node. If you have Google AI credentials, you're all set!
    • If you prefer to use OpenAI, simply disable the Gemini node and enable the OpenAI node. You only need one active LLM node. Make sure it is connected to the Agent parent node.
  3. Explore the Tools: Take a moment to look at the different tool nodes connected to the Your First AI Agent node. This is where the agent gets its abilities! You can add, remove, or modify these to create your own custom agent.
  4. Activate and Test!
    • Activate the workflow.
    • Open the public URL for the Example Chat Window node (you can copy it from the node's panel).
    • Start chatting! Try asking it things like:
      • "Tell me a joke."
      • "What is n8n?"
      • "Generate a 16-character password for me."
      • "What are the latest posts on the n8n blog?"
      • "What is the monthly payment for a $300,000 loan at 5% interest over 30 years?"

n8n nodes used (7 types)

What every node does (11)
  • Simple Memory (Memory Buffer Window)Gives the AI short-term conversational memory of recent messages.
  • Gemini (LLM Chat Google Gemini)Provides Google Gemini as the chat model for the AI steps.
  • OpenAI (LLM Chat Open AI)Provides the OpenAI chat model (GPT) that powers the AI reasoning in this workflow.
  • Example Chat Window (Chat Trigger)Starts the workflow when a chat message is received through the chat interface.
  • Your First AI Agent (Agent)The AI agent that orchestrates the workflow — it reasons over the input and decides which tools to call.
  • get_a_joke (HTTP Request Tool)A tool the AI agent can call to work with HTTP Request.
  • days_from_now (Date Time Tool)A tool the AI agent can call to work with Date Time.
  • wikipedia (Tool Wikipedia)Handles the Tool Wikipedia step in this workflow.
  • create_password (Crypto Tool)A tool the AI agent can call to work with Crypto.
  • calculate_loan_payment (Tool Code)Lets the AI agent run custom code as a tool.
  • n8n_blog_rss_feed (Rss Feed Read Tool)A tool the AI agent can call to work with Rss Feed Read.

FAQ

Build an interactive AI agent with chat interface and multiple tools: questions

How do I import the "Build an interactive AI agent with chat interface and multiple tools" workflow into n8n?

Copy the workflow JSON from this page, open the n8n editor, click on an empty canvas and paste with Ctrl+V (Cmd+V on macOS). You can also download the .json file and choose Import from File in the workflow menu. Save the workflow, then attach credentials before activating it.

Which nodes and credentials does "Build an interactive AI agent with chat interface and multiple tools" use?

It uses Agent, LLM Chat Open AI, Memory Buffer Window, Tool Code, Tool Wikipedia and Chat Trigger, plus 1 more. Any node that connects to an external service needs your own credential — open each node after import and select or create one. Trigger, logic and transformation nodes usually need no credentials.

Can it run on n8n Cloud and on self-hosted n8n?

The workflow format is the same on both. If a node appears as unknown or outdated after import, update n8n to a recent version or, on self-hosted instances, install the required community node package. Features such as $env access are available on self-hosted instances only.

How can I customise "Build an interactive AI agent with chat interface and multiple tools"?

Start by changing the trigger (schedule, webhook or app event) and the destination nodes to match your stack — it is listed under Personal Productivity, AI Chatbot. Edit prompts, field mappings and filters in the relevant nodes, use expressions like {{ $json.field }} to map data, and test with a manual execution before activating.

n8n is a trademark of n8n GmbH. AltFTool is not affiliated with, endorsed by or sponsored by n8n. Community templates are credited to their creators and link to the original listing; AltFTool originals are written and tested by the AltFTool team.

About this page

Free n8n workflow templates to copy and import

The AltFTool n8n library collects free n8n workflow templates for AI agents, Gmail, Google Sheets, Telegram and other apps. Each workflow page shows a preview, the list of nodes and the credentials it needs, and lets you copy or download the JSON to import into your own n8n.

Search the templates by app or task, or browse them by category and by node. The Workflow Inspector checks any workflow JSON for triggers, credentials and hardcoded keys before you share it, and the expressions cheat sheet gives copy-paste n8n expression examples. AltFTool is not affiliated with n8n.

People also search for

  • n8n workflow templates
  • n8n templates
  • n8n automation examples
  • n8n json workflows
  • n8n nodes
  • free n8n workflow templates
  • n8n ai agent template
  • n8n expressions cheat sheet