Send weekly Facebook Ads PDF reports with OpenAI, Orshot and Gmail
UnknownWhat this workflow does
This AI workflow has 17 nodes and runs on a schedule (every week at 08:00). Along the way it connects Google Sheets, Facebook Graph API, OpenAI and Gmail and 1 more.
How it runs
Trigger: On a schedule (every week at 08:00).
- Get client list (Google Sheets): uses Google Sheets
- Active clients only (Filter): keeps only the items that match a condition
- This week by campaign (Facebook Graph API): uses Facebook Graph API
- Previous week totals (Facebook Graph API): uses Facebook Graph API
- Build report data (Code): runs custom JavaScript code
- Report data ready? (If): checks a condition and branches into true / false
- Write summary and plan (OpenAI): uses OpenAI
- Render report PDF (Orshot): https://api.orshot.com/v1/studio/render
- Log report (Google Sheets): append
- Get PDF link (Code): runs custom JavaScript code
…plus 4 more steps. See the full node list below.
Services it uses
Other Google Sheets + Gmail templates (2,102) · Other OpenAI + Google Sheets templates (2,011) · Other OpenAI + Gmail templates (1,623)
Before you upgrade to n8n 3.0
We can't fully verify this one: it relies on 1 community package, and n8n 3.0 turns unverified community packages off by default (N8N_UNVERIFIED_PACKAGES_ENABLED=false).
- Check that @thelifeofrishi/n8n-nodes-orshot is verified or supports 3.0 (used in Render report PDF).
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (11)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Google Sheets
n8n-nodes-base.googleSheets - Filter
n8n-nodes-base.filter - Facebook Graph API
n8n-nodes-base.facebookGraphApi - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - OpenAI
@n8n/n8n-nodes-langchain.openAi - Orshot
@thelifeofrishi/n8n-nodes-orshot.orshot - HTTP Request
n8n-nodes-base.httpRequest - Gmail
n8n-nodes-base.gmail - No Operation, do nothing
n8n-nodes-base.noOp
From the author
Quick overview This workflow runs every Monday, pulls each active client’s weekly Meta Ads performance via the Facebook Graph API, uses OpenAI to write a short summary and next steps, renders a branded PDF report with Orshot, emails it via Gmail, and logs the…