Smart Conversational AI Assistant with Ollama and Tools
detail.loadingPreview
Deploy a powerful, context-aware AI assistant leveraging local Ollama LLMs and external tools. This workflow enables intelligent conversations, fetching real-time weather data and general knowledge from Wikipedia, all while remembering past interactions.
About This Workflow
Unlock the potential of local AI with this n8n workflow designed to create a sophisticated conversational agent. Powered by your self-hosted Ollama model (like Llama 3.2), this assistant goes beyond simple chat. It's equipped with a 'brain' to recall the last 20 messages, ensuring coherent and context-rich dialogues. More impressively, it acts as a smart agent, intelligently deciding when to use specialized tools – an Open-Meteo weather API for precise forecasts based on location, and Wikipedia for a vast array of general information – to provide accurate and comprehensive answers to user queries.
Key Features
- Context-Aware Conversations: Utilizes a window buffer memory to recall the last 20 messages, enabling natural and coherent dialogue flow.
- Intelligent Tool Utilization: The AI agent autonomously decides to use external tools like a weather API for forecasts or Wikipedia for general knowledge.
- Local LLM Integration: Leverages self-hosted Large Language Models via Ollama (e.g., Llama 3.2), ensuring privacy and cost-efficiency.
- Customizable AI Persona: Easily define the agent's behavior and capabilities through a system message, tailoring it to specific needs.
- Interactive Chat Trigger: Start conversations manually, making it ideal for testing, demonstrations, or personal assistant use.
How To Use
- Start a Chat: Initiate the workflow by sending a message to the "On new manual Chat Message" node.
- Configure Ollama: Ensure your "Ollama Chat Model" node has valid credentials connected to your local Ollama service. The current setup points to "Local Ollama service."
- Customize AI Agent: Review the "AI Agent" node's
System Messageparameter. You can adjust the assistant's persona or add more tools as needed. - Engage and Observe: Ask the agent questions about current weather in specific locations (e.g., "What's the weather like in Paris?") or general information (e.g., "Tell me about the Eiffel Tower?").
- Expand Tools (Optional): Add more Langchain tools or custom HTTP request nodes to extend your agent's capabilities further.
Apps Used
Workflow JSON
{
"id": "eb1bbe44-2e2d-44ef-bf17-1ef0544b4a78",
"name": "Smart Conversational AI Assistant with Ollama and Tools",
"nodes": 11,
"category": "Operations",
"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: eb1bbe44-2e2d...
About the Author
Crypto_Watcher
Web3 Developer
Automated trading bots and blockchain monitoring workflows.
Statistics
Related Workflows
Discover more workflows you might like
Google Sheets to Icypeas: Automated Bulk Domain Scanning
This workflow streamlines the process of performing bulk domain scans by integrating your Google Sheets data directly with the Icypeas platform. Automate the submission of company names from your spreadsheet to Icypeas for comprehensive domain information, saving valuable time and effort.
Instant WooCommerce Order Notifications via Telegram
When a new order is placed on your WooCommerce store, instantly receive detailed notifications directly to your Telegram chat. Stay on top of your e-commerce operations with real-time alerts, including order specifics and a direct link to view the order.
On-Demand Microsoft SQL Query Execution
This workflow allows you to manually trigger and execute any SQL query against your Microsoft SQL Server database. Perfect for ad-hoc data lookups, administrative tasks, or quick tests, giving you direct control over your database operations.