# AI agent in chat with memory, search, and calculations using n8n and LangChain
This automation template creates an intelligent assistant capable of contextual chat conversations, performing calculations, searching the web, and logical reasoning. Built on n8n and LangChain with Groq, SerpAPI, and a built-in calculator.
## Who it´s for
- Automation specialists building personal AI assistants
- Marketers needing fast access to data and analysis
- Analysts solving numerical and logical tasks via chat
- Business owners wanting to deploy smart bots without coding
- Freelancers automating routine client requests
## What the automation does
- Receives a message from chat and passes it to the AI agent
- The agent uses the Groq model with short-term memory (last 5 interactions)
- Dynamically selects one of three tools: reasoning (Think), calculator, or SerpAPI
- Answers queries like ´What is 15% of 2500?´ or ´Who won the 2022 FIFA World Cup?´
- Maintains conversation context for natural dialogue flow
## What´s included
- Ready-to-use n8n workflow
- Trigger and handler logic based on chat_message
- Integrations with Groq API, SerpAPI, and internal calculator
- Basic text instructions for launch and adaptation
## Requirements for setup
- n8n instance (cloud or self-hosted)
- Groq API key
- SerpAPI API key
- Access to a chat system accepting incoming messages (e.g., Telegram, Slack, web form)
## Benefits and outcomes
- Automated task resolution without manual search or calculation
- Context retention for more natural user interaction
- Instant access to up-to-date information via web search
- Reduced response time for client and team queries
- Scalable assistant adaptable to various use cases without coding
## Important: template only
Important: you are purchasing a ready-made automation workflow template only. Rollout into your infrastructure, connecting specific accounts and services, 1:1 setup help, custom adjustments for non-standard stacks and any consulting support are provided as a separate paid service at an individual rate. To discuss custom work or 1:1 help, contact via chat
AI agent in chat
chatbot with memory
n8n and LangChain bot
artificial intelligence assistant
step-by-step reasoning AI
calculator in chatbot
web search via AI
SerpAPI integration
task solving in chat
no-code AI assistant
math query processing
logical reasoning AI
contextual conversation agent
Groq and n8n integration
LangChain automation
No feedback yet