AI Agents

Automate Google Sheets

26 nodes 237 127 Scheduled trigger
Download

Workflow Description

An automation template that extracts data from Google Sheets, processes it through AI-powered language models (Gemini), and automatically publishes analyzed results to Facebook on a scheduled basis.

How it works

  1. 1.Trigger automation at specified time intervals
  2. 2.Extract data from Google Sheets tables
  3. 3.Process data through LLM Chain with Gemini AI
  4. 4.Structure and validate output using parser
  5. 5.Publish formatted results to Facebook pages automatically

Use cases

  • Generate and share weekly sales summaries on Facebook
  • Automate monthly report generation from spreadsheets to social media
  • Process customer feedback from surveys and rewrite responses using AI

Requirements

  • Active Google Workspace account with spreadsheet editing permissions
  • Valid API credentials for Gemini or active subscription
  • Facebook Business account with connected app and valid access tokens

Service Value

Ideal as a smart automation service combining integrations and AI to produce ready-to-use results.

Apps Used

Google Sheets LLM Chain Gemini Output Parser Facebook

Details

Trigger Scheduled trigger
Nodes 26
Apps 5
Views 237
Downloads 127

How to Use

  1. 1.Click "Download Template"
  2. 2.Open your n8n dashboard
  3. 3.Go to Workflows > Import from File
  4. 4.Select downloaded file and configure credentials

Nodes Used (26)

/

Scheduled Start: Check for New Posts

Schedule Trigger

#1

1. Get Next Post Idea from Sheet

Google Sheets

#2

2. Prepare Input Variables (Topic, Audience, etc.)

Set

#3

3a. Generate Content Concept (Gemini)

LLM Chain

#4

(LLM Model for Concept)

Gemini Model

#5

(Parse Concept JSON)

Output Parser Structured

#6

3b. Generate Image Prompt Options (Gemini)

LLM Chain

#7

(LLM Model for Prompts)

Gemini Model

#8

(Parse Prompts JSON)

Output Parser Structured

#9

3c. Generate Post Caption (Gemini)

LLM Chain

#10

(LLM Model for Caption)

Gemini Model

#11

(Parse Caption JSON)

Output Parser Structured

#12

4. Generate Image using Prompt 1 (Replicate Flux)

HTTP Request

#13

5. Prepare Data for Instagram API

Set

#14

6a. Create Instagram Media Container

Facebook Graph Api

#15

6b. Wait for Container Processing

Wait

#16

6c. Publish Post to Instagram

Facebook Graph Api

#17

7. Update Post Status in Sheet

Google Sheets

#18

Sticky Note

Sticky Note

#19

Sticky Note1

Sticky Note

#20

Sticky Note2

Sticky Note

#21

Sticky Note3

Sticky Note

#22

Sticky Note4

Sticky Note

#23

Sticky Note5

Sticky Note

#24

Sticky Note6

Sticky Note

#25

Sticky Note7

Sticky Note

#26