Skip to main content

Weekly Facebook ads performance reports with AI-powered analysis & Gmail delivery

Workflow preview

Workflow preview
100%
Weekly Facebook ads performance reports with AI-powered analysis & Gmail delivery preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

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...

Best for

  • Document Extraction automation workflows
  • AI Summarization automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.code, n8n-nodes-base.httprequest, n8n-nodes-base.scheduletrigger, n8n-nodes-base.aggregate, n8n-nodes-base.gmail, @n8n/n8n-nodes-langchain.openai, n8n-nodes-base.set, @n8n/n8n-nodes-langchain.lmchatopenai

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Muhammad Ali.

Original n8n.io source

1.1 Workflow description

Title
Weekly Facebook ads performance reports with AI-powered analysis & Gmail delivery
Workflow name
Weekly Facebook ads performance reports with AI-powered analysis & Gmail delivery

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 Monday, the workflow:

  1. Fetches the previous week’s campaign metrics from the Facebook Graph API.
  2. Formats and summarizes each campaign’s performance using OpenAI.
  3. Merges all summaries into one comprehensive report with insights and next-week suggestions.
  4. Converts the report into a polished PDF using any PDF generation API.
  5. Sends the final PDF report automatically to the client via Gmail.

How to set up

  1. Connect your Facebook, OpenAI, and Gmail accounts in n8n.
  2. Add credentials for your preferred PDF generator (e.g., PDFCrowd, Placid, etc.).
  3. Open the “Set Node” to customize recipient email, date range, or report text.

Requirements

  • Facebook Graph API access token
  • OpenAI API key
  • Gmail credentials
  • API key for your PDF generation service

How to customize

You can modify the trigger day, personalize the report design, or include additional analytics such as ROAS, CPC, or conversion data for deeper insights.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Format Data

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 2 - Fetch FB Data

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 3 - Weekly Trigger

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1.2

Block 4 - Merge Reports

Type / Role
n8n-nodes-base.aggregate - aggregate
Config choices
Version 1

Block 5 - Generate PDF

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 6 - Send Email

Type / Role
n8n-nodes-base.gmail - gmail
Config choices
Version 2.1

Block 7 - AI Report Writer

Type / Role
@n8n/n8n-nodes-langchain.openAi - openAi
Config choices
Version 1.8

Block 8 - Set Node

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 9 - OpenAI

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 10 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 11 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 12 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 13 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 14 - AI Summarizer

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 2.2

Block 15 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 16 - Sticky Note5

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Weekly Facebook ads performance reports with AI-powered analysis & Gmail delivery
Complexity advanced
Nodes 16
Categories Document Extraction, AI Summarization
Author Muhammad Ali
Published 02 Nov 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/10441/10441.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Weekly Facebook ads performance reports with AI-powered analysis & Gmail delivery do?

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...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Document Extraction, AI Summarization use case.