๐ฑ Generate weekly Brevo campaign analytics reports with Groq and Google Sheets
โก 45 views ยท ๐ฑ Social Media & Email Marketing
Description
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.
- AI Summary Engine โ Evaluates trends and generates an executive summary.
-
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.
๐ Nodes Used
Google Sheets, HTTP Request, Gmail, Schedule Trigger, AI Agent, Groq Chat Model
๐ฅ Import
Download workflow.json and import into n8n:
Workflow menu โ Import from File