Skip to main content

Schedule social media posts from Google Sheets to Twitter & Instagram

Workflow preview

Workflow preview
100%
Schedule social media posts from Google Sheets to Twitter & Instagram preview
Open on n8n.io

Important notice

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

1. Workflow Overview

Social Media Auto Poster (Google Sheets → Twitter & Instagram) This workflow automatically: 1. Pulls rows marked as from a Google Sheet. 2. Generates a formatted Instagram caption and HTML preview....

Best for

  • Social Media automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.scheduletrigger, n8n-nodes-base.googlesheets, n8n-nodes-base.set, n8n-nodes-base.httprequest, n8n-nodes-base.facebookgraphapi, n8n-nodes-base.stickynote

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Schedule social media posts from Google Sheets to Twitter & Instagram
Workflow name
Schedule social media posts from Google Sheets to Twitter & Instagram

Social Media Auto-Poster (Google Sheets → Twitter & Instagram)

This workflow automatically:

  1. Pulls rows marked as Pending from a Google Sheet.
  2. Generates a formatted Instagram caption and HTML preview.
  3. Converts the HTML into an image via HCTI.io.
  4. Posts the content:
    • As a tweet (text only) to Twitter (X).
    • As a post (image + caption) to Instagram via the Facebook Graph API.
  5. Marks the row in Google Sheets as Posted with a timestamp.

It runs every 5 hours (configurable via the Schedule Trigger).


Requirements

  • Google Sheets API Credentials connected in n8n.
  • HCTI.io account (HTML → Image API).
  • Twitter (X) OAuth1 credentials.
  • Facebook/Instagram Graph API access token (for the business account/page).
  • A Google Sheet with at least these columns:
    • RowID
    • Caption
    • Desc
    • Hashtags
    • Status

Set Status to Pending for any row you want posted.


Setup

  1. Import the JSON workflow (My_workflow.json) into your n8n instance.
  2. Link all credentials (replace placeholders with your own API keys and tokens).
  3. Update the Google Sheet ID and Sheet Name inside the Get row(s) in sheet and Update Status Posted nodes.
  4. (Optional) Adjust the posting interval in the Schedule Trigger node.

How It Works

  1. Trigger: Runs every 5 hours.
  2. Fetch Rows: Reads Google Sheets for rows with Status = Pending.
  3. Caption Generation: Combines Desc + Hashtags into final_caption.
  4. HTML → Image: Converts caption to a styled 1080x1080 post.
  5. Social Posting:
    • Posts the caption to Twitter (text only).
    • Uploads the image + caption to Instagram.
  6. Update Status: Marks the row as Posted on [timestamp].

Notes

  • Facebook/Instagram tokens expire; refresh or use long-lived tokens.
  • HCTI.io may require a paid plan for high volumes.
  • Works best with a business Instagram account linked to a Facebook Page.

License

This workflow can be reused and adapted freely under the MIT license.

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 - Schedule Trigger

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1.2

Block 2 - Get row(s) in sheet

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

Block 3 - Insta post caption

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

Block 4 - HCTI Image

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

Block 5 - Post on Twitter

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

Block 6 - Create Insta post

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

Block 7 - Post On Instagram

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

Block 8 - Update Status Posted

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

Block 9 - Sticky Note

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

Block 10 - Sticky Note1

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

Block 11 - Sticky Note2

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

Block 12 - Sticky Note3

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

Block 13 - Sticky Note4

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

Block 14 - Sticky Note5

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

Block 15 - Sticky Note6

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

Block 16 - Sticky Note7

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

3. Summary Table

Workflow Schedule social media posts from Google Sheets to Twitter & Instagram
Complexity advanced
Nodes 16
Categories Social Media
Author Parag Javale
Published 23 Jul 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/6342/6342.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 Schedule social media posts from Google Sheets to Twitter & Instagram do?

Social Media Auto Poster (Google Sheets → Twitter & Instagram) This workflow automatically: 1. Pulls rows marked as from a Google Sheet. 2. Generates a formatted Instagram caption and HTML preview....

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 Social Media use case.