Generate IPL post‑match and weekly email analyses with GPT‑4o, CricAPI and Gmail
Ready for 3.0What this workflow does
This AI workflow has 19 nodes and runs on a schedule (every 30 minutes) (plus 1 other trigger). Along the way it connects Google Sheets, OpenAI and Gmail. It also calls api.cricapi.com over HTTP.
How it runs
Trigger: On a schedule (every 30 minutes) (plus 1 other trigger).
- Fetch Recent Matches (HTTP Request): calls api.cricapi.com
- Read Analysis Log (Google Sheets): uses Google Sheets
- Read Match Log (Google Sheets): uses Google Sheets
- Build Weekly Digest Prompt (Code): runs custom JavaScript code
- Find New Completed IPL Match (Code): runs custom JavaScript code
- If: checks a condition and branches into true / false
- If: checks a condition and branches into true / false
- Build Analysis Prompt (Code): runs custom JavaScript code
- Weekly Journalist (OpenAI): uses OpenAI
- Save to Match Log (Google Sheets): append
…plus 7 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)
HTTP calls to: api.cricapi.com
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 (7)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Google Sheets
n8n-nodes-base.googleSheets - Code
n8n-nodes-base.code - HTTP Request
n8n-nodes-base.httpRequest - OpenAI
@n8n/n8n-nodes-langchain.openAi - Gmail
n8n-nodes-base.gmail - If
n8n-nodes-base.if
From the author
📊 Description The scoreboard shows you what happened. This workflow tells you why it happened. Every time an IPL match ends this automation detects the completed result, fetches the full scorecard, and sends it to GPT-4o which produces a detailed…