Intelligent Conversational Agent with Web Browsing and Weather Tools
detail.loadingPreview
Empower your applications with a sophisticated conversational AI agent that leverages real-time web information and weather data. This n8n workflow enables your agent to answer complex queries by intelligently utilizing Wikipedia and a live weather API.
About This Workflow
This n8n workflow showcases a powerful AI Agent designed to interact with users and access external knowledge. It's powered by the Ollama Chat Model (specifically llama3.2) and enhanced with Langchain's agent capabilities. The agent is instructed to use Wikipedia for general information and a live weather API to fetch current weather and forecast data for specific locations. To maintain context, a window buffer memory stores the last 20 messages, ensuring coherent and relevant conversations. The workflow is triggered by a manual chat message, allowing for interactive testing and deployment.
Key Features
- Advanced AI Agent: Utilizes a sophisticated LLM (Ollama Llama3.2) for natural language understanding and response generation.
- Tool Integration: Seamlessly integrates Wikipedia and a live weather API for real-time data retrieval.
- Contextual Memory: Maintains conversational flow with a window buffer memory, remembering the last 20 messages.
- Customizable System Prompts: Easily define the agent's persona and capabilities through system messages.
- Manual Trigger: Simple to initiate and test conversations via a manual chat message input.
How To Use
- Trigger: Start the workflow with the 'On new manual Chat Message' node, inputting your query.
- AI Agent Configuration: The 'AI Agent' node is configured with a system message instructing it to use the 'Wikipedia' and 'Weather HTTP Request' tools. Ensure the input is passed correctly (e.g.,
={{ $json.input }}). - Language Model: Connect your preferred chat model, such as 'Ollama Chat Model' (e.g., llama3.2:latest), to the 'AI Agent' node.
- Memory: Integrate the 'Window Buffer Memory' node to manage conversational history, setting the
contextWindowLengthto 20. - Tool Setup: Configure the 'Wikipedia' and 'Weather HTTP Request' nodes. For the weather tool, ensure the URL and query parameters are correctly set up to accept latitude and longitude dynamically.
- Connections: Establish the necessary connections between the trigger, AI Agent, language model, memory, and tools as shown in the workflow diagram.
Apps Used
Workflow JSON
{
"id": "4ee01c7f-aab2-4a9e-ba56-cd6ac93384aa",
"name": "Intelligent Conversational Agent with Web Browsing and Weather Tools",
"nodes": 28,
"category": "Marketing",
"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: 4ee01c7f-aab2...
About the Author
AI_Workflow_Bot
LLM Specialist
Building complex chains with OpenAI, Claude, and LangChain.
Statistics
Related Workflows
Discover more workflows you might like
WhatsApp AI Assistant: LLaMA 4 & Google Search for Real-Time Insights
Instantly deploy a smart AI assistant on WhatsApp, powered by Groq's lightning-fast LLaMA 4 model. This workflow enables real-time conversations, remembers context, and provides up-to-date answers by integrating live Google Search results.
AI-Powered On-Page SEO Audit & Report Automation
Instantly generate comprehensive on-page SEO technical and content audits for any website URL. This AI-powered workflow automates the entire process, from scraping the page to delivering a detailed report directly to your inbox, empowering you to optimize for better search rankings and user engagement.
Automated AI Motion Illustration Workflow with Midjourney and Kling
Unleash your creativity with this n8n workflow that automates the generation of stunning motion illustrations. It leverages the power of Midjourney for static image creation and Kling AI to transform them into dynamic videos, all managed through the PiAPI. Perfect for content creators, marketers, and social media professionals looking to produce engaging visuals at scale.