OpenAI assistant with custom tools
n8n template #2025Summary
Use templateThis workflow shows how you can get your OpenAI assistant to call an n8n workflow as a tool. Since you can put almost any functionality in an n8n workflow, this means you can give your assistant access to almost any data source. Note that to use this template, you need to be on n8n version 1.19.4 or later.
How to set it up
- Open template #2025 on n8n.io and click Use for free, or copy the template JSON and paste it onto an empty canvas in n8n.
- No app accounts to connect: every node is built into n8n.
- Click Execute workflow and step through each node's output to confirm the data looks right.
- Toggle the workflow to Active so its trigger runs on its own.
Hand off to your agent
Prompt
Help me set up the n8n workflow "OpenAI assistant with custom tools" (https://n8n.io/workflows/2025). It uses: Code, Code Tool, Call n8n Workflow Tool. Import the template JSON into my n8n instance, list every credential I need to create, and walk me through testing it.
Paste into Claude Code and it will do the rest.
Apps and nodes
Questions
Yes. David Roberts published it free on n8n.io as a verified creator, and it has 13K views. It runs on n8n Cloud or a self-hosted n8n instance.
None. All 3 nodes are built into n8n.
Similar workflows
NameViews
- Explore n8n Nodes in a Visual Reference Library5,197
- Build Your First AI Data Analyst Chatbot134K
- Create a Branded AI-Powered Website Chatbot88K
- ✨🩷Automated Social Media Content Publishing Factory + System Prompt Composition55K
- AI Youtube Trend Finder Based On Niche55K
- Chat with a Google Sheet using AI50K
- AI chat with any data source (using the n8n workflow tool)42K
- Automated Stock Analysis Reports with Technical & News Sentiment using GPT-4o37K