Fine-tuning with OpenAI models

Step 2 Once the .jsonl file for training is uploaded (See the entire process here.: https://platform.openai.com/finetune/), a "new model" will be created and made available via your API. OpenAI will automatically train it based on the uploaded .jsonl file. If the training is successful, the new model will be accessible via API. eg. ft:gpt-4o-mini-2024-07-18:n3w-italia::XXXXX7B

Workflow Structure (7 nodes)
100%
Manual Trigger
When clicking ‘Test workflow’
Google Drive
Google Drive
Langchain.open Ai
Upload File
Http Request
Create Fine-tuning Job
Langchain.chat Trigger
When chat message received
Langchain.lm Chat Open Ai
OpenAI Chat Model
Langchain.agent
AI Agent
Node Types:
trigger
action
default
http
Requires credentials

Prerequisites

Required Credentials (3)

Google Drive

Used by: Google Drive

Docs

HTTP Header Auth

Used by: Create Fine-tuning Job

Docs

OpenAI

Used by: OpenAI Chat Model, Upload File

Docs

Multiple services required

This workflow needs 3 different credentials. Make sure you have accounts for all services before importing.

Complexity

Complex

Advanced features used. Requires n8n experience.

Setup time: ~40 min
Score: 36/100

When to Use This Workflow

Real-time Response

React instantly when events happen - new orders, form submissions, or API calls.

Zero delay between trigger and action for time-sensitive workflows.

Time Savings

Replace repetitive manual tasks with reliable automation.

Reclaim hours every week for higher-value work.

Error Reduction

Eliminate human error from routine processes with consistent automation.

Improve accuracy and reliability across your workflows.

workflow.json
{
  "id": "gAzsjTGbfWuvAObi",
  "meta": {
    "instanceId": "a4bfc93e975ca233ac45ed7c9227d84cf5a2329310525917adaf3312e10d5462",
    "templateCredsSetupCompleted": true
  },
  "name": "Fine-tuning with OpenAI models",
  "tags": [
    {
      "id": "2VG6RbmUdJ2VZbrj",
      "name": "Google Drive",
      "createdAt": "2024-12-04T16:50:56.177Z",
      "updatedAt": "2024-12-04T16:50:56.177Z"
    },
    {
      "id": "paTcf5QZDJsC2vKY",
      "name": "OpenAI",
      "createdAt": "2024-12-04T16:52:10.768Z",
      "updatedAt": "2024-12-04T16:52:10.768Z"
    }
...

Workflow Details

Nodes
9
Trigger
Event
Source
awesome
Added
Dec 4, 2025

Need Help?

Check out the official n8n documentation for detailed guides.

Related Workflows

AI Agent to chat with Airtable and analyze data

Replace Mapbox public key - <yourpublickey> in code

Lmchatopenai
Agent
Memorybufferwindow
Chat
41 nodesEvent
Curated

Extract insights & analyse YouTube comments via AI Agent chat

... or watch set up video [13 min] [![Youtube Thumbnail](https://cflobdhpqwnoisuctsoc.supabase.co/storage/v1/object/publ...

Lmchatopenai
Toolworkflow
Memorypostgreschat
Agent
29 nodesEvent
Curated

OpenAI Personal Shopper with RAG and WooCommerce

Replace the URL and Collection name with your own

Chat
Memorybufferwindow
Toolcalculator
Lmchatopenai
25 nodesEvent
Curated

RAG & GenAI App With WordPress Content

Workflow 1 : Initial Embedding Use this workflow to create the initial embedding for your WordPress website content

Embeddingsopenai
Documentdefaultdataloader
Textsplittertokensplitter
Lmchatopenai
53 nodesWebhook
Curated

Hacker News to Video Template - AlexK1919

Choose your data source This can be swapped for any other data source of your choosing.

Hackernews
Lmchatopenai
Toolhttprequest
Outputparserstructured
48 nodesManual
Curated

AI Agent for project management and meetings with Airtable and Fireflies

Replace API key for Fireflies

Agent
Lmchatopenai
Toolworkflow
Gmailtool
18 nodesEvent
Curated