OpenAI assistant with custom tools

Go to Workflow
12,568 views
Built by David Roberts David Roberts
Created on June 05, 2026

Description

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.

Nodes Used (3)

Call n8n Workflow Tool
@n8n/n8n-nodes-langchain.toolWorkflow
Code
n8n-nodes-base.code
Code Tool
@n8n/n8n-nodes-langchain.toolCode