OpenAI Assistant with custom n8n tools
Triggered manually or by an app event. Connects Code, Condition, Stop And Error, Summarize. Sub-workflow: Return the capitals of fictional countries It can either list the countries it knows about or return the capital of a specific country Main workflow: Chat with OpenAI Assistant Click the 'Chat' button at the bottom of the screen to try
Front matter
name: OpenAI Assistant with custom n8n tools
description: Triggered manually or by an app event. Connects Code, Condition, Stop And Error, Summarize. ## Sub-workflow: Return the capitals of fictional countries It can either list the countries it knows about or return the capital of a specific country ## Main workflow: Chat with OpenAI Assistant Click the 'Chat' button at the bottom of the screen to try
category: Automation
kind: Workflow
software: Code|Condition|Stop And Error|SummarizeOpenAI Assistant with custom n8n tools
Triggered manually or by an app event. Connects Code, Condition, Stop And Error, Summarize. ## Sub-workflow: Return the capitals of fictional countries It can either list the countries it knows about or return the capital of a specific country ## Main workflow: Chat with OpenAI Assistant Click the 'Chat' button at the bottom of the screen to try
Steps
- On new manual Chat Message (noOp)
- OpenAI Assistant (noOp)
- Execute Workflow Trigger (executeWorkflowTrigger)
- Mapping data (code)
- List countries? (if)
- Mapping data1 (code)
- Sticky Note (stickyNote)
- Return country list (set)
- Return specific capital (set)
- Tool to call the workflow below (noOp)
- Concatenate country names (summarize)
- Get the matching country's details (merge)
- Sticky Note1 (stickyNote)
- Tool: Get current date and time (noOp)
- Error Handler (stopAndError)
Import
Download the JSON from the GitHub source and import it in n8n (Workflows, Import from file).
Author: Zie619, n8n workflow collection. License: MIT.
Shown here with formatting for the web. Keep the author and license notice when you reuse it.
Related entries
There are more like this in the members library
The n8n workflow library holds 1,814 entries. Members can search all of them by meaning and read every one in full.