Skip to main content

Auto-generate Instagram content schedule with GPT-4, Apify, and Google Sheets

Workflow preview

Workflow preview
100%
Auto-generate Instagram content schedule with GPT-4, Apify, and Google Sheets preview
Open on n8n.io

Important notice

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

1. Workflow Overview

Try It Out! This n8n template creates a fully automated Instagram content schedule using AI and Google Sheets. It is perfect for content creators, marketing teams, or local businesses looking to or...

Best for

  • Content Creation automation workflows
  • Multimodal AI automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.manualtrigger, @n8n/n8n-nodes-langchain.agent, n8n-nodes-base.splitinbatches, n8n-nodes-base.noop, n8n-nodes-base.wait, n8n-nodes-base.merge, @n8n/n8n-nodes-langchain.toolcode, n8n-nodes-base.code

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Auto-generate Instagram content schedule with GPT-4, Apify, and Google Sheets
Workflow name
Auto-generate Instagram content schedule with GPT-4, Apify, and Google Sheets

Try It Out!

This n8n template creates a fully automated Instagram content schedule using AI and Google Sheets. It is perfect for content creators, marketing teams, or local businesses looking to organize and scale their social media posting.

How it works

The workflow starts by reading two sets of inputs from a Google Sheet:

  • Your content strategy inputs (Pillar, Objective, Frequency, Format, Structure, Examples).
  • A list of scraped blog posts with title, URL, and description (fetched from your website).
  • Blog posts are scraped using Apify and parsed to extract key fields, which are stored in a tab labeled "Input (blog month)".
  • You can assign a preferred posting month for each blog (e.g. fall blog posts get tagged for September).
  • The workflow then merges both inputs and extracts the relevant information for further information added by ChatGPT.

AI Scheduling & Personalization

Once merged, the workflow loops through each content item and:

  • Identifies if the scheduled post falls on or near a holiday (like Mother’s Day) and adjusts the content accordingly.
  • A reference tool is attached to guide structure and tone, based on a library of post examples.
  • Sends the content to an AI Agent (using GPT-4, but customizable) that generates:
  1. A compelling Instagram caption
  2. A visual description
  3. Hashtags
  4. Suggested post date, day, content pillar, and format (carousel, reel, image, etc.)

Output

  • All generated content including captions, structure, dates, hashtags, and pillar is exported into a tab titled Output in your Google Sheet.
  • The final schedule is ready for manual review, editing, or publishing to social media.

How to use

  • The workflow uses a manual trigger to start, but you can replace it with a Webhook, cron job, or form submission.
  • Add/edit your content strategy in Google Sheets.

How to Set-Up

Initial Input Tab

  • Define your content pillars and structure
  • Create a tab named "Input" or "Strategy" Include these columns:
  • Pillar: e.g., Family images
  • Objective: e.g., Showcase images
  • Frequency: e.g., Bi-weekly
  • Content Form: e.g., Images, Reels
  • Structure: brief description of expected layout (e.g., carousel Q&A, singular photo)
  • Examples: prompts or questions to guide AI (e.g., Why do you think families should do a session?)

Input (blog month) Tab – Store scraped blog content

Include these columns:

  • URL: direct link to blog post
  • Title: blog post title
  • Description: short summary of the post
  • Preferred Month: month you want it posted (e.g., August, September)
  • This sheet is partially auto-filled by the workflow (except for Preferred Month)

Output Tab – Final scheduled content

Include these columns:

  • Date: scheduled posting date (YYYY-MM-DD)
  • Day: day of the week
  • Pillar: content category assigned
  • Format: e.g., Images, Reels, Carousel
  • Description: visual summary
  • Caption: Instagram-ready caption
  • Hashtags: complete hashtag block

To use the Apify HTTP Request node:

  1. Drag in an HTTP Request node into your n8n workflow.
  2. Set the Method and URL based on how you're using Apify:
  • Use POST if you want to run an actor live with dynamic input (e.g. scrape blog posts in real time).
  • Use GET if you want to retrieve results from a completed or static dataset run (faster and cheaper if you're reusing previous data).
  1. Configure query or body parameters:
  2. Include your Apify API token for authentication (e.g. token=YOUR_API_KEY)
  • For POST: include an input object with any required actor settings (e.g., blog URL to scrape).
  • For GET: specify the dataset ID in the URL
  1. Test the node to ensure you're retrieving the blog titles, descriptions, and URLs as expected.

Requirements

  • Apify account for scraping blog posts
  • OpenAI key (e.g. GPT-4) or another model of your choice
  • Google Sheets Credentials

Example Use Cases

  • A photographer repurposing blogs into Instagram carousels
  • A nonprofit automatically generating seasonal posts
  • A small team managing multi-pillar content across weeks or months

Need Help?

Join the n8n Discord or ask in the n8n Forum! Happy Content Making ! 📅✨

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 - AI Agent - content schedule

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 1.8

Block 3 - Loop Over Items

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

Block 4 - No Operation, do nothing

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

Block 5 - Wait

Type / Role
n8n-nodes-base.wait - wait
Config choices
Version 1.1

Block 6 - Merge

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3.1

Block 7 - reference

Type / Role
@n8n/n8n-nodes-langchain.toolCode - toolCode
Config choices
Version 1.1

Block 8 - Extract title, description, url

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 9 - Input preferred blog month

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.5

Block 10 - Scrape blog posts

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 11 - Wait to prevent request limit

Type / Role
n8n-nodes-base.wait - wait
Config choices
Version 1.1

Block 12 - Read preferred blog month

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.5

Block 13 - Read data

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.5

Block 14 - Extract Information

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 15 - Identify holiday

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 16 - Caption, Description, Hashtags

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 17 - Rename Fields

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 18 - Export Data

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.5

Block 19 - Sticky Note

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

Block 20 - Sticky Note6

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

Block 21 - Sticky Note7

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

Block 22 - Sticky Note1

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

Block 23 - Sticky Note2

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

Block 24 - Sticky Note3

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

3. Summary Table

Workflow Auto-generate Instagram content schedule with GPT-4, Apify, and Google Sheets
Complexity advanced
Nodes 24
Categories Content Creation, Multimodal AI
Author keisha kalra
Published 04 Aug 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/6977/6977.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 Auto-generate Instagram content schedule with GPT-4, Apify, and Google Sheets do?

Try It Out! This n8n template creates a fully automated Instagram content schedule using AI and Google Sheets. It is perfect for content creators, marketing teams, or local businesses looking to or...

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 Content Creation, Multimodal AI use case.