๐ Automated business KPI insights with GPT-4, MSSQL, analytics & multi-channel alerts
โก 730 views ยท ๐ Market Research & Insights
Description
WORKFLOW OVERVIEW
This workflow is an AI-powered business intelligence agent designed for founders and business owners. It automatically collects key business metrics, calculates performance KPIs, applies decision logic, uses AI reasoning, and sends clear, actionable notifications โ without dashboards or manual reports.
Key Features:
โ Aggregates multiple data sources (MSSQL, Google Analytics, Google Sheets) โ Calculates critical KPIs: ROAS, CAC, Revenue & User Growth โ Applies rule-based decision logic for business risk and opportunity detection โ AI-powered reasoning: summarizes insights and recommends actions โ Multi-channel notifications: Email, WhatsApp, Slack, Telegram โ Fully automated daily execution via Cron trigger โ Enterprise-ready: error handling, structured data, KPI validation
Setup & Requirements:
- API access to data sources (MSSQL, Google Analytics, Google Sheets)
- OpenAI or Google Gemini API for AI reasoning
- Messaging integration: Gmail, Twilio (WhatsApp), Slack, Telegram
Workflow Flow:
- Cron Trigger โ runs daily at a chosen time
- Data Collection โ revenue, users, marketing spend, website analytics
- Merge Node โ combines all data sources
- Function Node โ consolidates into a single JSON object
- KPI Calculation โ calculates ROAS, CAC, growth rates
- Business Logic Engine โ identifies risks and opportunities
- AI Reasoning Agent โ summarizes insights, suggests actions
- Notification Formatter โ builds founder-friendly message
- Notification Delivery โ sends via WhatsApp, Email, Slack, or Telegram
Example Data Formation
These data below Getting from all different channels.
{ "revenue": 4290, "registeredUsers": 20, "totalUsers": 3, "adSpend": 800 }
Applies rule-based logic to detect potential risks or opportunities
{ "ROAS": 5.36, "CAC": 40, "agentStatus": "normal", "agentPriority": "low", "insights": ["Marketing campaigns are performing very well"] }
Workflow Highlights
Fully automated, runs daily without human intervention Integrates multiple business data sources Converts raw data into KPIs for actionable insight Applies both rule-based logic and AI reasoning Generates concise, human-friendly notifications Sending notification to different channels.
๐ Nodes Used
Send Email, Google Sheets, Microsoft SQL, Google Analytics, WhatsApp Business Cloud, Schedule Trigger
๐ฅ Import
Download workflow.json and import into n8n:
Workflow menu โ Import from File