Templates / Generate live cricket score commentary using SerpAPI, GPT-4o-mini, and Telegram

Generate live cricket score commentary using SerpAPI, GPT-4o-mini, and Telegram

Needs changes

by Rahul Joshi βœ“ Β· 134 views Β· created 2026-03-26 Β· Social Media, Multimodal AI

Needs changes. This template uses 1 thing(s) that n8n 3.0 removes: Function (legacy). 1 breaking item(s) found. Static check, last run 2026-10-19.

What to replace before upgrading

Removed in 3.0Replace with
Function (legacy)
Extract Latest Match Data
Code node, mode 'Run Once for All Items'

Community nodes

These come from third-party npm packages. In n8n 3.0 unverified community packages are off by default (N8N_UNVERIFIED_PACKAGES_ENABLED=false).

Nodes used (10)

AI AgentOpenAI Chat ModelTelegramGmailSlack

What it does

πŸ“˜ Description This workflow is a real-time AI-powered cricket commentary bot that continuously monitors live match data and converts it into short, expert-style insights. It fetches live cricket scores every few seconds, extracts key match details, generates commentary using AI, and delivers updates instantly to Telegram. It also includes fail-safe mechanisms via email and Slack alerts to ensure reliability. βš™οΈ Step-by-Step Flow 1. Every 10 Seconds Trigger (Schedule) 2. Runs continuously at a 10-second interval to keep match updates near real-time. 3. Fetch Live Cricket Score (SerpAPI Node) 4. Queries Google for live India cricket match data using SerpAPI. 5. Extract Latest Match Data (Function Node) 6. Pulls structured match details: - Team names - Scores - Match result/status - Tournament 7. Skip If No Match Result (IF Node) 8. Prevents unnecessary processing when no valid match data is available. 9. Generate AI Match Commentary (OpenAI GPT-4o-mini) 10. Transforms raw match data into structured insights: - Match summary - Key turning point - Best performance - Tactical insight - Maintains expert tone and concise commentary style. 11. Send Commentary to Telegram (Telegram Node) 12. Delivers formatted commentary instantly to a Telegram chat using Markdown. 13. Email Alert on AI Failure (Gmail Node) 14. If AI generation fails: - Sends an email alert - Ensures manual follow-up 15. Error Trigger β†’ Slack Alert 16. Catches any workflow-level failures and sends alerts to a Slack channel for monitoring. 🧩 Prerequisites β€’ SerpAPI credential (for live scores) β€’ OpenAI API (GPT-4o-mini) β€’ Telegram Bot + chat ID β€’ Gmail OAuth2 (for failure alerts) β€’ Slack API (optional for error monitoring) πŸ’‘ Key Benefits βœ” Near real-time cricket updates (10s interval) βœ” AI-generated expert commentary (not raw scores) βœ” Automated delivery to Telegram βœ” Failure-safe alerts via email + Slack βœ” Fully hands-off live match tracking πŸ‘₯ Perfect For - Cricket Telegram channels and communities - Sports commentary automation systems - Live score notification bots - Fan engagement platforms for real-time updates

View the original on n8n.io β†’ Check your own copy

Get the weekly β€œwhat broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.