Weekly Facebook ads performance reports with AI-powered analysis & Gmail delivery
Ready for 3.0What this workflow does
This AI workflow has 10 nodes and runs on a schedule (every week at 08:00). Along the way it connects Gmail, OpenAI and OpenAI Chat Model. It also calls api.pdfcrowd.com over HTTP.
How it runs
Trigger: On a schedule (every week at 08:00).
- Fetch FB Data (HTTP Request): calls an HTTP API
- Format Data (Code): runs custom JavaScript code
- AI Summarizer (AI Agent): runs an AI agent, with model: OpenAI
- Merge Reports (Aggregate): combines items into one
- AI Report Writer (OpenAI): uses OpenAI
- Set Node (Edit Fields (Set)): sets 1 field: html
- Generate PDF (HTTP Request): calls api.pdfcrowd.com (POST)
- Send Email (Gmail): uses Gmail
Services it uses
Other OpenAI + Gmail templates (1,623) · Other OpenAI + Facebook templates (107) · Other Gmail + Facebook templates (43)
HTTP calls to: api.pdfcrowd.com
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.
Nodes used (9)
- Code
n8n-nodes-base.code - HTTP Request
n8n-nodes-base.httpRequest - Schedule Trigger
n8n-nodes-base.scheduleTrigger - Aggregate
n8n-nodes-base.aggregate - Gmail
n8n-nodes-base.gmail - OpenAI
@n8n/n8n-nodes-langchain.openAi - Edit Fields (Set)
n8n-nodes-base.set - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - AI Agent
@n8n/n8n-nodes-langchain.agent
From the author
Who’s it for Perfect for marketing agencies that manage multiple Facebook ad accounts and want to automate their weekly reporting. It eliminates manual data collection, analysis, and client updates by delivering a ready-to-share PDF report. How it works Every…