Email weekly AI agent cost and token reports with Alephant and Gmail
UnknownWhat this workflow does
This workflow has 5 nodes and runs on a schedule (every week at 09:00). Along the way it connects Gmail and Alephant Analytics (community).
How it runs
Trigger: On a schedule (every week at 09:00).
- Fetch Alephant Usage Summary (Alephant Usage): uses Alephant Usage
- Set Email Recipient (Edit Fields (Set)): sets 1 field: recipient_email
- Format Usage Report (Code): runs custom JavaScript code
- Send Usage Summary Email (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 Usage Summary).
Nodes used (5)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Alephant Usage
@alephantai/n8n-nodes-alephant-analytics.alephantUsage - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - Gmail
n8n-nodes-base.gmail
From the author
Quick overview This workflow runs every Monday at 9 AM to pull a 7‑day usage summary from Alephant AI Gateway, calculates key metrics for AI Agents like total cost and tokens, and emails a formatted cost and usage report to a recipient via Gmail. How it works…