AI: conversational agent with custom tool written in JavaScript: n8n template
AI: conversational agent with custom tool written in JavaScript is a free n8n workflow template by n8n Team with 6 nodes. It starts with the Manual Trigger node ("When clicking ‘Test workflow’") and uses Chat Trigger, AI Agent, OpenAI Chat Model and Code Tool. You can paste it into your n8n editor in one click with FlowLume.
What this workflow does, step by step
- When clicking ‘Test workflow’ (Manual Trigger node)
- When chat message received (Chat Trigger node)
- Debug Input (Edit Fields (Set) node)
- AI Agent
- Code Tool
- OpenAI Chat Model
What you need before you paste it
Connect these accounts in n8n
- OpenAI · used by OpenAI Chat Model
Checked with FlowLume's setup checklist on 2026-11-25. In the extension, FlowLume Pro shows this checklist for any template before you paste.
Template facts
- Author
- n8n Team (verified n8n creator)
- Nodes
- 6
- Apps
- Chat Trigger, AI Agent, OpenAI Chat Model, Code Tool
- Uses AI
- Yes (n8n AI nodes)
- Categories
- Engineering, AI Chatbot
- Views on n8n.io
- 63,475
- Published
- 6 October 2023
- Price
- Free
How to paste it with FlowLume
- Install FlowLume. Add the free FlowLume extension to Google Chrome from the Chrome Web Store.
- Open n8n. Open a new or existing workflow in your n8n editor (n8n Cloud or self-hosted).
- Find the template. Click the FlowLume button at the bottom right and search for "AI: conversational agent with custom tool written in JavaScript".
- Paste it. Click Paste to n8n. All nodes and connections land on your canvas.
- Connect your accounts. Add your own credentials for OpenAI, then run the workflow.
Similar n8n templates
- AI agent chatChat Trigger · OpenAI Chat Model · Http Request Tool · AI Agent
- Chat with a database using AIChat Trigger · Postgres Tool · Memory Buffer Window · AI Agent
- AI agent that can scrape webpagesChat Trigger · AI Agent · OpenAI Chat Model · HTTP Request
- Create a branded AI-powered website chatbotOpenAI Chat Model · HTTP Request Tool · HTTP Request · Chat Trigger
- Build Your First AI Data Analyst ChatbotChat Trigger · AI Agent · OpenAI Chat Model · HTTP Request
- AI chatbot that can search the webChat Trigger · OpenAI Chat Model · Http Request Tool · Wikipedia
Template "AI: conversational agent with custom tool written in JavaScript" by n8n Team, published on n8n.io. The template and its description belong to its author; this page only summarises its structure. FlowLume is an independent tool by DrakenLume and is not affiliated with n8n GmbH. n8n is a trademark of n8n GmbH.