Skip to main content

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

Workflow preview

Workflow preview
100%
Generate live cricket score commentary using SerpAPI, GPT-4o-mini, and Telegram preview
Open on n8n.io

1. Workflow Overview

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 s...

Best for

  • Social Media automation workflows
  • Multimodal AI automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.scheduletrigger, n8n-nodes-serpapi.serpapi, n8n-nodes-base.function, n8n-nodes-base.if, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.lmchatopenai, n8n-nodes-base.telegram

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Rahul Joshi.

Original n8n.io source

1.1 Workflow description

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

📘 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
  1. Skip If No Match Result (IF Node)
  2. Prevents unnecessary processing when no valid match data is available.
  3. Generate AI Match Commentary (OpenAI GPT-4o-mini)
  4. Transforms raw match data into structured insights:
  • Match summary
  • Key turning point
  • Best performance
  • Tactical insight
  • Maintains expert tone and concise commentary style.
  1. Send Commentary to Telegram (Telegram Node)
  2. Delivers formatted commentary instantly to a Telegram chat using Markdown.
  3. Email Alert on AI Failure (Gmail Node)
  4. If AI generation fails:
  • Sends an email alert
  • Ensures manual follow-up
  1. Error Trigger → Slack Alert
  2. 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

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Overview

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 2 - Section: Trigger & Fetch

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 3 - Section: Extract & Validate

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 4 - Section: AI Agent

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 5 - Section: Deliver & Alert

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 6 - Section: Security

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 7 - Every 10 Seconds Trigger

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1.1

Block 8 - Fetch Live Cricket Score

Type / Role
n8n-nodes-serpapi.serpApi - serpApi
Config choices
Version 1

Block 9 - Extract Latest Match Data

Type / Role
n8n-nodes-base.function - function
Config choices
Version 1

Block 10 - Skip If No Match Result

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.3

Block 11 - Generate AI Match Commentary

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 3

Block 12 - OpenAI GPT-4o-mini Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.3

Block 13 - Send Commentary to Telegram

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.1

Block 14 - Email Alert on AI Failure

Type / Role
n8n-nodes-base.gmail - gmail
Config choices
Version 2.2

Block 15 - Sticky Note6

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 16 - Error Trigger

Type / Role
n8n-nodes-base.errorTrigger - errorTrigger
Config choices
Version 1

Block 17 - Alert on Workflow Failure

Type / Role
n8n-nodes-base.slack - slack
Config choices
Version 2.4

3. Summary Table

Workflow Generate live cricket score commentary using SerpAPI, GPT-4o-mini, and Telegram
Complexity advanced
Nodes 17
Categories Social Media, Multimodal AI
Author Rahul Joshi
Published 26 Mar 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/14361/14361.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Generate live cricket score commentary using SerpAPI, GPT-4o-mini, and Telegram do?

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 s...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Social Media, Multimodal AI use case.