This repository contains a basic AI-powered assistant agent built using n8n. The agent listens to chat messages, processes them using OpenAI's Chat Model, and enhances its responses with memory and tools like SerpAPI and Calculator.
- β Chat-based trigger input
- β Integrated with OpenAI Chat Model
- β Supports Simple Memory to maintain context
- β Uses SerpAPI for web search capabilities
- β Includes Calculator for math-related queries
- β Outputs direct responses to user input in chat
| Component | Role |
|---|---|
| n8n | Workflow automation platform |
| OpenAI | For generating chat-based intelligent responses |
| Simple Memory | To remember recent inputs in conversation |
| SerpAPI | For real-time search queries |
| Calculator | For arithmetic and logic operations |
- Trigger:
When chat message received - AI Agent: Connected to:
OpenAI Chat Model(Chat model)Simple Memory(Memory)SerpAPI(Tool)Calculator(Tool)
- Response Output: Returned directly in the same chat interface
Clone this repository or download the assistant-agent.json if exported.
git clone https://github.com/YOUR_USERNAME/n8n-personal-ai-agent.git
2. Import into n8n
Open your n8n cloud or self-hosted instance.
Click Import and select your .json workflow file if applicable.
Ensure credentials (OpenAI, SerpAPI) are added in n8n's credentials section.
3. Test the Agent
Open the Chat input box
Send a question like:
What's the capital of Canada?
or
Solve 18 * 9
Observe the response flow using OpenAI and tools.
π· Preview
π License
MIT License
β¨ Author
Manasa Vamsi