Send AI budget overspend alerts with Alephant AI Gateway and Gmail
UnknownWhat this workflow does
This workflow has 6 nodes and runs on a schedule (every hour). Along the way it connects Gmail and Alephant Analytics (community).
How it runs
Trigger: On a schedule (every hour).
- Fetch Alephant Budget Status (Alephant Usage): budget status
- Check Budget Over Threshold (If): checks a condition and branches into true / false
- Set Alert Recipient (Edit Fields (Set)): sets 1 field: recipient_email
- Build Alert Message (Code): runs custom JavaScript code
- Send Alert Email via Gmail (Gmail): uses Gmail
Services it uses
Before you upgrade to n8n 3.0
We can't fully verify this one: it relies on 1 community package, and n8n 3.0 turns unverified community packages off by default (N8N_UNVERIFIED_PACKAGES_ENABLED=false).
- Check that @alephantai/n8n-nodes-alephant-analytics is verified or supports 3.0 (used in Fetch Alephant Budget Status).
Nodes used (6)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - If
n8n-nodes-base.if - Code
n8n-nodes-base.code - Edit Fields (Set)
n8n-nodes-base.set - Gmail
n8n-nodes-base.gmail - Alephant Usage
@alephantai/n8n-nodes-alephant-analytics.alephantUsage
From the author
Quick overview This workflow runs every 6 hours to check an Alephant AI Gateway virtual key’s budget usage and, when live usage meets or exceeds the threshold, sends a detailed overspend alert email via Gmail. How it works 1. Runs every 6 hours on a schedule.…