Skip to main content

Daily MLB pitcher vs. batter matchup analysis with Google Sheets and Telegram

Workflow preview

Workflow preview
100%
Daily MLB pitcher vs. batter matchup analysis with Google Sheets and Telegram preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

MLB "Hits" Workflow — Overview • Pulls today's MLB schedule incl. probablePitcher + lineups (statsapi.mlb.com) • Batches season stats for all involved players • Builds pitcher vs. batter matchup ro...

Best for

  • Miscellaneous automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.code, n8n-nodes-base.httprequest, n8n-nodes-base.stickynote, n8n-nodes-base.scheduletrigger, n8n-nodes-base.googlesheets, 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 TheStock.

Original n8n.io source

1.1 Workflow description

Title
Daily MLB pitcher vs. batter matchup analysis with Google Sheets and Telegram
Workflow name
Daily MLB pitcher vs. batter matchup analysis with Google Sheets and Telegram

MLB "Hits" Workflow — Overview • Pulls today's MLB schedule incl. probablePitcher + lineups (statsapi.mlb.com) • Batches season stats for all involved players • Builds pitcher vs. batter matchup rows

Setup Steps:

  1. Google Sheets OAuth2 → point to your Google Sheet → Tab name
  2. Create Telegram Bot cred + chatId
  3. Optional: tweak ERA/OPS thresholds or Top N in nodes 6 or 8.

Optional Setup:

  • Conditional Formatting in the Sheet for ColorScale on best stat in the column, as well as Lefty vs Right highlighting.

  • COMING SOON! Results Tracker tab and Apps Scripts and formulas.

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 - 3. Extract All Player IDs

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 2 - 4. Get Batched Player Stats

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 3 - 2. Get Daily Games

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.1

Block 4 - 5. Create Final Matchup Rows

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 5 - 6. Filter for Top Matchups

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 6 - Sticky Note

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

Block 7 - Column Order

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 8 - 9am Clear

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

Block 9 - 11:02 - 8:02

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

Block 10 - Notes: MLB Hits

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

Block 11 - 8. 21 Hitters

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 12 - Clear your Sheet

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.6

Block 13 - 7. Update Your Sheet

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4

Block 14 - 9. sendToTelegramChatbot

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

3. Summary Table

Workflow Daily MLB pitcher vs. batter matchup analysis with Google Sheets and Telegram
Complexity intermediate
Nodes 14
Categories Miscellaneous
Author TheStock
Published 11 Aug 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/7252/7252.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 Daily MLB pitcher vs. batter matchup analysis with Google Sheets and Telegram do?

MLB "Hits" Workflow — Overview • Pulls today's MLB schedule incl. probablePitcher + lineups (statsapi.mlb.com) • Batches season stats for all involved players • Builds pitcher vs. batter matchup ro...

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 Miscellaneous use case.