AutomationMart
Home/Browse/Automate GPT-4o fine-tuning with Google Sheets or Airtable data
n8n

Automate GPT-4o fine-tuning with Google Sheets or Airtable data

n8nn8n14 modulesv1.0
AirtableGoogle SheetsOpenAI

Who is this for? Anyone curating before/after text examples in a spreadsheet and wanting a push-button path to a fine-tuned GPT model—without touching curl. Works with Google Sheets or Airtable. --- What problem does it solve? Manually downloading CSVs, converting to JSONL, uploading, and polling OpenAI is a slog. This flow automates the whole loop: grab examples flagged Ready, build the JSONL file, start the fine-tune, then log the resulting model ID back to a registry sheet/table for reuse.

At a glance

Automate GPT-4o fine-tuning with Google Sheets or Airtable data is a ready-made n8n workflow you import as a workflow JSON file — no build required. It connects Airtable, Google Sheets, OpenAI. It's free to download. Follow the 5-step import below to go live in minutes.

Platform
n8n
Connects
Airtable, Google Sheets, OpenAI
Modules
14
Price
Free
Version
v1.0
Automate GPT-4o fine-tuning with Google Sheets or Airtable data workflow diagram

About this workflow

Who is this for? Anyone curating before/after text examples in a spreadsheet and wanting a push-button path to a fine-tuned GPT model—without touching curl. Works with Google Sheets or Airtable. --- What problem does it solve? Manually downloading CSVs, converting to JSONL, uploading, and polling OpenAI is a slog. This flow automates the whole loop: grab examples flagged Ready, build the JSONL file, start the fine-tune, then log the resulting model ID back to a registry sheet/table for reuse. --- How it works | # | Node | Purpose | |---|------|---------| | 1 | Schedule Trigger | Runs weekly by default (change as needed). | | 2a | Get Examples from Sheet | Pulls rows where Ready = TRUE from your Google Sheet. Uses the JSONL-Template Sheet as the expected column layout. | | 2b | Get Examples from Airtable (disabled) | Alternate source for Airtable users. | | 3 | Create JSONL File (Code) | Converts each example to chat-format JSONL and splits into train.jsonl / val.jsonl (80/20). | | 4 | Upload JSONL | Uploads the training file to OpenAI (purpose: fine-tune). | | 5 | Begin Fine-Tune | Starts a fine-tune job on gpt-4o (editable). | | 6 | Wait → Check Job → IF | Polls every minute until status = succeeded. | | 7a | Write Model to Sheet | Appends the new model ID + meta to your Model Registry sheet. | | 7b | Write Model to Airtable (disabled) | Equivalent logging step for Airtable. | --- Setup steps 1. Import & connect credentials Import the JSON flow into n8n. Add your OpenAI API key. Google Sheets: create an OAuth2 credential and link it to both Sheets nodes. Airtable (optional): create a Personal Access Token and attach it to the Airtable nodes. 2. Copy the template sheet Duplicate the JSONL-Template Sheet linked above into your own Drive. Required columns (exact names): | systemPrompt | userPrompt | assistantResponse | Ready | Tick Ready = TRUE for rows you want to include. 3. Create the registry sheet/table Google Sheet (or Airtable table) named Model Registry with columns: Model ID, Training Examples, Epochs, Batch Size, Learning Rate, Finished At. 4. Tweak model & schedule Change the base model in Begin Fine-Tune if desired. Adjust the Schedule Trigger for daily / on-demand runs. 5. Test it Mark a few examples Ready = TRUE. Run the flow manually. Check OpenAI for the new fine-tune job and confirm the model ID is logged in your registry. --- Resources n8n Docs – < OpenAI Fine-Tuning – < Google Sheets API – < Airtable API – < --- Extending the flow Webhook trigger – swap the schedule for a webhook to train on demand. Multi-source merge – enable both Sheets and Airtable nodes to combine datasets. Auto-deploy – save the new model name to an env-var or Secrets Manager for downstream generation workflows.

n8n

How to import this n8n workflow

  1. 1

    Download the workflow JSON file after purchase.

  2. 2

    Open n8n → click the menu → Import from File.

  3. 3

    Select the downloaded JSON and import.

  4. 4

    Set up credentials for each node that requires them.

  5. 5

    Click Execute Workflow to test, then activate.

Setup guide

Setup guide included

Purchase to unlock the full step-by-step guide

Related N8n workflows

Send a Telegram message for new rows in Google Sheets using ChatGPT completion

This template sends a Telegram message when new rows are added in Google Sheets, using ChatGPT to generate personalized content.

Free

Create new Cloze companies from new Google Sheets spreadsheet rows

Every time a new row is added to a Google Sheets spreadsheet, Make will automatically create a new company in Cloze. The template uses this [example spreadsheet](https://docs.google.com/spreadsheets/d/1qZAEEBW9QN4O8XZfrvX0pW0MFips9AKOWNEJ6Kr4oDM/edit?usp=sharing).

Free

Automatically sync Google Calendar events to Google Sheets tracker

How it works - Listens for new or updated events in your chosen Google Calendar. - Extracts key details like event name, date, time, description, and attendees. - Adds each event as a new row in your connected Google Sheet. - Prevents duplicates by checking for existing Event IDs before inserting. ✨ Open your spreadsheet to instantly see a clean, structured list of all scheduled events—perfect for reports, planning, or sharing with others who don’t use Google Calendar. Set up steps 1. Connect yo

Free

Send custom email notifications and messages to Slack using ChatGPT completions

Instantly receive emails with a Custom Mailhook and send Slack messages using ChatGPT completions. Enhance communication by integrating Custom Mailhook, OpenAI, and Slack for tailored messaging.

Free

Unit conversion: Convert values listed in a Google Sheets spreadsheet to a specified unit

This scenario automatically converts values listed in a Google Sheets spreadsheet to a specified unit. The template uses this [example spreadsheet](https://goo.gl/23Sk3b).

Free

Google Sheets MCP - AI-powered spreadsheet management

Google Sheets MCP Workflow – AI Meets Spreadsheets! 😄 ✨ What It Does This n8n workflow lets you chat with your spreadsheets using AI + MCP! From reading and updating data to creating sheets, it’s your smart assistant for Google Sheets 📈🤖 🚀 Cool Features 💬 Natural language commands (e.g. "Add a new lead: John Doe") ✏️ Full CRUD (Create, Read, Update, Delete) 🧠 AI-powered analysis & smart workflows 🗂️ Multi-sheet support 🔗 Works with ChatGPT, Claude, and more (via MCP) 💡 Use Cas

Free

Convert PDF to PNG with PDF.co API (multi-page support)

Page2Image: Convert PDF to PNG Workflow (Multi-Page Support) How It Works This workflow automatically converts each page of a multi-page PDF into high-quality PNG images. It uses the PDF.co API in the background to process the PDF and generate individual images for every page. The entire process is streamlined, making it ideal for converting documents quickly and efficiently. Set Up Steps 1. Create a PDF.co Account: Sign up for a PDF.co account and get your API Key. This will be required for aut

Free

Smart lead outreach with Explorium MCP using Google Sheets and Telegram

Smart Outreach: Auto-Personalized Lead Sequences 🧠 What It Does This n8n workflow turns your Telegram bot into an AI-powered B2B lead enrichment and outreach engine. It uses Explorium MCP's premium business data, combined with GPT-4 intelligence, to deliver: Enriched lead profiles (person or company) AI-personalized 4-step cold email sequences Real-time interaction via Telegram Google Sheets logging for CRM or follow-up 🖥️ Demo: 🔄 How It Works 1. Telegram Input Users message a company or person

Free

Reviews

No reviews yet

Be the first to buy and share your experience.

Leave a review

Sign in to share your experience with this workflow.

Log in to review
Free
No ratings yet

Create a free account to purchase workflows.

  • JSON blueprint — instant download
  • Setup guide PDF included
  • 5 downloads · valid 30 days
  • Works with n8n

Need help setting this up?

Book a 3-hour live setup session with an Agility consultant.

₹2,499/ session
3 hrs · video call
  • Configure live on Google Meet / Zoom
  • Free follow-up if workflow has defects
  • Platform expert assigned to you
Book installation session
Free