Skip to main content

Generate weekly Brevo campaign analytics reports with Groq and Google Sheets

Workflow preview

Workflow preview
100%
Generate weekly Brevo campaign analytics reports with Groq and Google Sheets preview
Open on n8n.io

1. Workflow Overview

How it works: This workflow fetches sent campaign data from Brevo on a schedule, calculates key metrics (open rate, click rate, bounce rate), and stores results in Google Sheets. It then filters to...

Best for

  • Social Media automation workflows
  • AI Summarization automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.httprequest, n8n-nodes-base.googlesheets, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.lmchatgroq, n8n-nodes-base.set, n8n-nodes-base.gmail, n8n-nodes-base.aggregate, n8n-nodes-base.code

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Generate weekly Brevo campaign analytics reports with Groq and Google Sheets
Workflow name
Generate weekly Brevo campaign analytics reports with Groq and Google Sheets

How it works:

This workflow fetches sent campaign data from Brevo on a schedule, calculates key metrics (open rate, click rate, bounce rate), and stores results in Google Sheets. It then filters to a rolling 7-day window, runs an AI analysis to generate an executive summary with performance highlights and recommendations, and delivers a structured HTML report by email to stakeholders.

Step-by-step:

  • Data collection

  • Schedule Trigger – Fires the workflow on your chosen day and time.

  • HTTP Request (Brevo) – Fetches sent campaign data via the Brevo API.

  • Transform Data – Calculates open rate, click rate, and bounce rate per campaign.

  • Write to Google Sheets – Appends processed results to the historical database.

  • Data preparation

  • Read from Google Sheets – Retrieves the latest stored campaign records.

  • Filter to 7-day window – Narrows data to the last 7 days for trend analysis.

  • Aggregate Results – Summarises campaign performance across the window.

  • AI analysis

  • AI Summary Engine – Evaluates trends and generates an executive summary.

  • LLM (Groq or alternative) – Provides the AI model for analysis.

  • Format AI Output – Structures the summary for use in the report.

  • Report delivery

  • Build HTML Report – Compiles metrics, highlights, and recommendations into a styled email.

  • Send via Gmail – Delivers the final report to stakeholder recipients.

Why use this?

  • Automates the full reporting lifecycle from data pull to inbox delivery.
  • Surfaces top-performing campaigns and list health issues without manual review.
  • Keeps a growing historical database for long-term trend tracking.
  • Easily adjustable reporting window, thresholds, and notification channels.
  • Works with any AI provider — swap Groq for any compatible LLM.

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 - HTTP Request

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

Block 2 - Append row in sheet

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.7

Block 3 - AI Agent

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

Block 4 - Groq Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatGroq - lmChatGroq
Config choices
Version 1

Block 5 - Edit Fields

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

Block 6 - Send a message

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

Block 7 - Get row(s) in sheet

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.7

Block 8 - Aggregate

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

Block 9 - Filtered 7 days data

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

Block 10 - Aggregate weekly data

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

Block 11 - Data Cleaning1

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

Block 12 - Schedule Trigger

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

Block 13 - Sticky Note

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

Block 14 - Sticky Note1

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

Block 15 - Sticky Note3

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

Block 16 - Sticky Note2

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

Block 17 - Sticky Note4

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

Block 18 - Sticky Note5

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

3. Summary Table

Workflow Generate weekly Brevo campaign analytics reports with Groq and Google Sheets
Complexity advanced
Nodes 18
Categories Social Media, AI Summarization
Author Avkash Kakdiya
Published 03 Apr 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/14671/14671.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 Generate weekly Brevo campaign analytics reports with Groq and Google Sheets do?

How it works: This workflow fetches sent campaign data from Brevo on a schedule, calculates key metrics (open rate, click rate, bounce rate), and stores results in Google Sheets. It then filters to...

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 Social Media, AI Summarization use case.