Generate real-time IPL commentary from CricAPI data with GPT-4o
Ready for 3.0What this workflow does
This AI workflow has 9 nodes and runs on a schedule (cron */6 14-23 * * *) (plus 1 other trigger). Along the way it connects OpenAI and Google Sheets. It also calls api.cricapi.com over HTTP.
How it runs
Trigger: On a schedule (cron */6 14-23 * * *) (plus 1 other trigger).
- Fetch live match list (HTTP Request): calls api.cricapi.com
- Compute Match Indicators (Code): runs custom JavaScript code
- Is Live Match ? (If): checks a condition and branches into true / false
- Narrative Generator (OpenAI): uses OpenAI
- Parse Narrative (Code): runs custom JavaScript code
- Log to IPL Win Probability Log (Google Sheets): append
- Respond to Webhook: sends the response back to the webhook caller
Services it uses
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.
Nodes used (8)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Webhook
n8n-nodes-base.webhook - HTTP Request
n8n-nodes-base.httpRequest - OpenAI
@n8n/n8n-nodes-langchain.openAi - Code
n8n-nodes-base.code - Respond to Webhook
n8n-nodes-base.respondToWebhook - Google Sheets
n8n-nodes-base.googleSheets - If
n8n-nodes-base.if
From the author
📊 Description IPL fans expect more than a scoreboard. They want to know what the score means — is the batting team ahead of the game, is the chase getting away from them, who has the pressure right now. This workflow answers all of that automatically by…