Skip to content
FlowHubFluxonLab
Call n8n Workflow Tool
AI Automationfree

OpenAI assistant with custom tools

by David Robertsadapted from n8n official workflow galleryUpdated Aug 2026
RequiresCall n8n Workflow ToolCall n8n Workflow ToolCCodeCode ToolCode Tool
Share Post Share
ChWhen chat message receivedWhen chat messa…OpenAIMBSimple MemoryEWWhen Executed by Another WorkflowWhen Executed b…TWTool to call the workflow belowTool to call th…TCTool: Get current date and timeTool: Get curre…IfList countries?CoMapping dataSuConcatenate country namesConcatenate cou…SeReturn country listReturn country …CoMapping data1MeGet the matching country's detailsGet the matchin…SeReturn specific capitalReturn specific…1234
1/5
FLOWS
STEPS · 4
Starts from a chat message

This 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.

Tags

n8nreference-onlytool-codetool-workflow
Connects
calln8nworkflowtoolCall n8n Workflow ToolCCodecodetoolCode Tool
CategoryAI Automation
Triggermanual
Complexitycomplex
Nodes13
AddedDec 15, 2023

Related workflows

See all AI Automation
Acodetoollangchaincodeopenaichatmodel
free

Custom LangChain agent written in JavaScript

This workflow has multiple functionalities. It starts with a manual trigger, "When clicking 'Execute Workflow'", that activates two separate paths. The first path takes a preset string "Tell me a joke" and processes it through a custom Language Learning Model (LLM) chain node. This node interacts with an OpenAI node for query processing. The second path takes another preset string "What year was Einstein born?" and passes it to an "Agent" node. This agent further interacts with a Chat OpenAI node and a custom Wikipedia node to produce the required information. The workflow uses both built-in and custom nodes, and integrates with OpenAI for both paths. It's built for experimenting with language models, specifically in the context of conversational agents and information retrieval. Note that to use this template, you need to be on n8n version 1.19.4 or later.

by n8n Team
Acodetoolopenaichatmodel
free

AI: Conversational agent with custom tool written in JavaScript

This workflow implements a custom tool via JavaScript code which returns a random color to users and excludes the given colors. Note that to use this template, you need to be on n8n version 1.19.4 or later.

by n8n Team
ACDgmail
free

AI: Summarize podcast episode and enhance using Wikipedia

The workflow automates the process of creating a summarized and enriched podcast digest, which is then sent via email. Note that to use this template, you need to be on n8n version 1.19.4 or later.

by n8n Team