Send weekly Facebook and Instagram PDF performance reports with Gemini and Gmail
Ready for 3.0What this workflow does
This AI workflow has 20 nodes and runs on a schedule (every week at 08:00). Along the way it connects OpenAI, Google Gemini and Gmail. It also calls api.pdfshift.io over HTTP.
How it runs
Trigger: On a schedule (every week at 08:00).
- Config: Credentials & IDs (Edit Fields (Set)): sets 5 fields: Facebook_Page_ID, IG_Business_Account_ID, Meta_Access_Token…
- Calculate Dates and Wrap Data (Code): runs custom JavaScript code
- Get Facebook Feed (HTTP Request): calls an HTTP API
- Get Instagram Activity (HTTP Request): calls an HTTP API
- Get Facebook Page Insights (HTTP Request): calls an HTTP API
- Views (HTTP Request): calls an HTTP API
- Get Facebook Content Views (HTTP Request): calls an HTTP API
- Get Instagram Insights (Code): runs custom JavaScript code
- Organize Facebook Data (Code): runs custom JavaScript code
- Get Instagram Follows and Unfollows (Code): runs custom JavaScript code
…plus 9 more steps. See the full node list below.
Services it uses
Other OpenAI + Gmail templates (1,623) · Other Google Gemini + Gmail templates (518) · Other OpenAI + Google Gemini templates (249)
HTTP calls to: api.pdfshift.io
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (8)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - HTTP Request
n8n-nodes-base.httpRequest - OpenAI
@n8n/n8n-nodes-langchain.openAi - Google Gemini
@n8n/n8n-nodes-langchain.googleGemini - Gmail
n8n-nodes-base.gmail - Merge
n8n-nodes-base.merge
From the author
Quick Overview This workflow runs every Monday morning, pulls last week’s Facebook Page and Instagram Business metrics from the Meta Graph API, generates chart images, asks Google Gemini to write a narrative analysis, converts a branded HTML report to PDF via…