Monitor WhatsApp template health with OpenAI, Gmail and Slack alerts
Ready for 3.0What this workflow does
This AI workflow has 38 nodes and runs on a schedule (every day at 08:00) (plus 2 other triggers). Along the way it connects Google Sheets, OpenAI Chat Model, HTTP Request and Slack and 1 more.
How it runs
Trigger: On a schedule (every day at 08:00) (plus 2 other triggers).
- Set Health Check Settings (Edit Fields (Set)): sets 15 fields: business_name, phone_number_ids, waba_id…
- Fetch Phone Number Status (HTTP Request): calls an HTTP API
- If: checks a condition and branches into true / false
- Shape Number Result (Code): runs custom JavaScript code
- Describe Phone API Error (Code): runs custom JavaScript code
- List Phone Numbers (Code): runs custom JavaScript code
- Stop Until Settings Filled (Stop and Error): stops the run with an error
- Check Each Number (Execute Sub-workflow): calls another n8n workflow
- Fetch Message Templates (HTTP Request): calls an HTTP API
- Build Health Snapshot (Code): runs custom JavaScript code
…plus 21 more steps. See the full node list below.
Services it uses
Other Google Sheets + Gmail templates (2,102) · Other OpenAI + Google Sheets templates (2,011) · Other OpenAI + Gmail templates (1,623)
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.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (18)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Manual Trigger
n8n-nodes-base.manualTrigger - Edit Fields (Set)
n8n-nodes-base.set - If
n8n-nodes-base.if - Stop and Error
n8n-nodes-base.stopAndError - Code
n8n-nodes-base.code - Execute Sub-workflow
n8n-nodes-base.executeWorkflow - HTTP Request
n8n-nodes-base.httpRequest - Google Sheets
n8n-nodes-base.googleSheets - No Operation, do nothing
n8n-nodes-base.noOp - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Http Request Tool
n8n-nodes-base.httpRequestTool - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Switch
n8n-nodes-base.switch - Slack
n8n-nodes-base.slack - Gmail
n8n-nodes-base.gmail - Execute Workflow Trigger
n8n-nodes-base.executeWorkflowTrigger
From the author
Quick overview This workflow runs daily to check WhatsApp Cloud API phone number health and message template status via the Meta Graph API, compares results with the previous run, optionally generates OpenAI rewrite suggestions for newly rejected templates,…