Automate Google Sheets Data Analysis with AI Intelligence
Workflow Description
Scheduled automation that extracts data from Google Sheets, analyzes it using Gemini's AI capabilities, structures the insights intelligently, and publishes formatted results to Facebook automatically without manual intervention.
How it works
- 1.Trigger automation on a recurring schedule
- 2.Retrieve rows and data from your designated Google Sheets
- 3.Send data to Gemini for intelligent analysis and insights
- 4.Parse and structure the AI responses into formatted output
- 5.Publish analyzed results to your Facebook page
Use cases
- Generate daily analytical reports on Facebook from spreadsheet metrics
- Automatically summarize sales performance and statistics for social sharing
Requirements
- Authorized Google Sheets connection with appropriate read access
- Facebook app setup with Graph API credentials for posting
- Active API key for Gemini language model access
Service Value
Ideal as a smart automation service combining integrations and AI to produce ready-to-use results.
Apps Used
Details
How to Use
- 1.Click "Download Template"
- 2.Open your n8n dashboard
- 3.Go to Workflows > Import from File
- 4.Select downloaded file and configure credentials
Nodes Used (26)
Scheduled Start: Check for New Posts
Schedule Trigger
1. Get Next Post Idea from Sheet
Google Sheets
2. Prepare Input Variables (Topic, Audience, etc.)
Set
3a. Generate Content Concept (Gemini)
LLM Chain
(LLM Model for Concept)
Gemini Model
(Parse Concept JSON)
Output Parser Structured
3b. Generate Image Prompt Options (Gemini)
LLM Chain
(LLM Model for Prompts)
Gemini Model
(Parse Prompts JSON)
Output Parser Structured
3c. Generate Post Caption (Gemini)
LLM Chain
(LLM Model for Caption)
Gemini Model
(Parse Caption JSON)
Output Parser Structured
4. Generate Image using Prompt 1 (Replicate Flux)
HTTP Request
5. Prepare Data for Instagram API
Set
6a. Create Instagram Media Container
Facebook Graph Api
6b. Wait for Container Processing
Wait
6c. Publish Post to Instagram
Facebook Graph Api
7. Update Post Status in Sheet
Google Sheets
Sticky Note
Sticky Note
Sticky Note1
Sticky Note
Sticky Note2
Sticky Note
Sticky Note3
Sticky Note
Sticky Note4
Sticky Note
Sticky Note5
Sticky Note
Sticky Note6
Sticky Note
Sticky Note7
Sticky Note