AI-Powered Conversational Agent with Tools
detail.loadingPreview
This n8n workflow creates an AI conversational agent that leverages multiple tools, including Wikipedia and a weather API, to answer complex user queries. It utilizes a buffer memory to maintain conversation context.
🚀Ready to Deploy This Workflow?
About This Workflow
Overview
This n8n workflow demonstrates how to build a sophisticated conversational AI agent using Langchain nodes. The agent is designed to understand user prompts and utilize a set of predefined tools to gather information and formulate responses. It integrates with Ollama for AI model execution, Wikipedia for general knowledge, and a weather API for real-time weather data. A key component is the Window Buffer Memory node, which stores the conversation history (last 20 messages) to provide context for the AI, enabling more natural and coherent interactions.
Key Features
- AI Agent for processing user input and tool execution.
- Integration with
Ollama Chat Modelfor powerful LLM capabilities. Wikipediatool for accessing general knowledge.Weather HTTP Requesttool for fetching current weather information.Window Buffer Memoryto maintain conversation context.
How To Use
- Configure AI Model: Set up your
Ollama Chat Modelnode with your preferred local LLM (e.g.,llama3.2:latest). Ensure your Ollama service is running and accessible. - Define Agent Behavior: In the
AI Agentnode, configure theSystem Messageto instruct the AI on its role and the tools it can use. Provide specific instructions for using the weather and Wikipedia tools. - Set up Tools: Ensure the
WikipediaandWeather HTTP Requestnodes are correctly configured to interact with their respective APIs. - Enable Memory: Connect the
Window Buffer Memorynode to theAI Agentto store and recall conversation history. - Trigger Workflow: Use the
On new manual Chat Messagenode to initiate the workflow with a user's query. - Run the Workflow: Execute the workflow and interact with the AI agent by providing chat messages.
Apps Used
Workflow JSON
{
"id": "6d5ce462-11f4-4d8b-8727-be33ff364a7a",
"name": "AI-Powered Conversational Agent with Tools",
"nodes": 0,
"category": "AI & LLMs",
"status": "active",
"version": "1.0.0"
}Note: This is a sample preview. The full workflow JSON contains node configurations, credentials placeholders, and execution logic.
Get This Workflow
ID: 6d5ce462-11f4...
About the Author
Crypto_Watcher
Web3 Developer
Automated trading bots and blockchain monitoring workflows.
Statistics
Verification Info
Related Workflows
Discover more workflows you might like
AI Agent with Custom Tool and Human Fallback
This n8n workflow uses an AI Agent to handle user queries, leveraging custom tools for specific tasks. It includes a fallback to human support when the AI cannot resolve the query, particularly when an email address is missing.
AI Agent to Chat with Your Search Console Data using OpenAI and PostgreSQL
Leverage an AI agent to query your Google Search Console data. This n8n workflow uses OpenAI for natural language processing and PostgreSQL for chat memory, allowing interactive data retrieval.
AI Chatbot for Health Insurance Lead Qualification and Data Enrichment
This n8n workflow creates an AI-powered chatbot that captures lead data, enriches it, and queries databases for health insurance product recommendations. It utilizes the Chat Trigger, OpenAI, and various tool nodes for comprehensive lead management.