Skip to main content

OpenAI Assistant workflow: upload file, create an Assistant, chat with it!

Workflow preview

Workflow preview
100%
OpenAI Assistant workflow: upload file, create an Assistant, chat with it! preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

This is an end to end workflow for creating a simple OpenAI Assistant. The whole process is done with n8n nodes and do not require any programming experience. The workflow is divided into three mai...

Best for

  • Internal Wiki automation workflows
  • AI Chatbot automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.manualtrigger, n8n-nodes-base.stickynote, n8n-nodes-base.googledrive, @n8n/n8n-nodes-langchain.chattrigger, @n8n/n8n-nodes-langchain.openai

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Yulia.

Original n8n.io source

1.1 Workflow description

Title
OpenAI Assistant workflow: upload file, create an Assistant, chat with it!
Workflow name
OpenAI Assistant workflow: upload file, create an Assistant, chat with it!

This is an end-to-end workflow for creating a simple OpenAI Assistant. The whole process is done with n8n nodes and do not require any programming experience.

The workflow is divided into three main steps:

Step 1: Get a Google Drive File and Upload to OpenAI

  • The workflow starts by retrieving a file from Google Drive using the "Get File" node.
  • The example file used is a Music Festival document.
  • The retrieved file is then uploaded to OpenAI using the "Upload File to OpenAI" node.
  • Run this section only once. The file is stored persistently on the OpenAI side.

Step 2: Set Up a New Assistant

  • In this step, a new assistant is created using the "Create new Assistant" node.
  • The assistant is given a name, description, and system prompt.
  • The uploaded file from Step 1 is attached as a knowledge source for the assistant.
  • Same as for Step 1, run this section only once.

Step 3: Chat with the Assistant

  • The "Chat Trigger" node initiates the conversation with the assistant.
  • The "OpenAI Assistant" node handles the conversation, using the assistant created in Step 2.

Step 4: Expand the Assistant

By following this workflow, users can create their own AI-powered assistants using OpenAI's API and integrate them with various platforms like WhatsApp and Telegram.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - When clicking "Test workflow"

Type / Role
n8n-nodes-base.manualTrigger - manualTrigger
Config choices
Version 1

Block 2 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 3 - Get File

Type / Role
n8n-nodes-base.googleDrive - googleDrive
Config choices
Version 3

Block 4 - Chat Trigger

Type / Role
@n8n/n8n-nodes-langchain.chatTrigger - chatTrigger
Config choices
Version 1

Block 5 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 6 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 7 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 8 - OpenAI Assistant

Type / Role
@n8n/n8n-nodes-langchain.openAi - openAi
Config choices
Version 1

Block 9 - Upload File to OpenAI

Type / Role
@n8n/n8n-nodes-langchain.openAi - openAi
Config choices
Version 1

Block 10 - Create new Assistant

Type / Role
@n8n/n8n-nodes-langchain.openAi - openAi
Config choices
Version 1

3. Summary Table

Workflow OpenAI Assistant workflow: upload file, create an Assistant, chat with it!
Complexity intermediate
Nodes 10
Categories Internal Wiki, AI Chatbot
Author Yulia
Published 28 Mar 2024

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/2201/2201.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does OpenAI Assistant workflow: upload file, create an Assistant, chat with it! do?

This is an end to end workflow for creating a simple OpenAI Assistant. The whole process is done with n8n nodes and do not require any programming experience. The workflow is divided into three mai...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Internal Wiki, AI Chatbot use case.