Daily MLB Pitcher vs. Batter Matchup Analysis with Google Sheets and Telegram — n8n Workflow

Medium complexity Scheduled12 nodes🏷️ Miscellaneousby TheStock

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 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 Righ

Nodes used

Google SheetsHTTP RequestTelegramCode

Workflow Preview

Hits
MLB "Hits" Workflow — Overview
• Pulls today's MLB schedule incl. probablePitcher + li
• Batches season stats for all involved players
• Builds pitcher vs. batter matchup rows
3. Extract All Player IDs
4. Get Batched Player St…
2. Get Daily Games
5. Create Final Matchup …
6. Filter for Top Match…
Column Order
9
9am Clear
1
11:02 - 8:02
8. 21 Hitters
Clear your Sheet
7. Update Your Sheet
9. sendToTelegramChatbot
12 nodes10 edges

How it Works

  1. 1

    Trigger

    The workflow starts with a scheduled trigger, running on a defined schedule.

  2. 2

    Process

    Data flows through 12 nodes, connecting code, googlesheets, httprequest.

  3. 3

    Output

    The workflow completes its automation and delivers the result to the configured destination.

Node Details (12)

GO

Google Sheets

googleSheets

#1
HT

HTTP Request

httpRequest

#2
TE

Telegram

telegram

#3
CO

Code

code

#4

How to Import This Workflow

  1. 1Click Download JSON button on the right to save the workflow file.
  2. 2Open your n8n instance. Go to Workflows → New → Import from file.
  3. 3Select the downloaded daily-mlb-pitcher-vs-batter-matchup-analysis-with-google-sheets-and-telegram file and click Import.
  4. 4Set up credentials for each service node (API keys, OAuth, etc.).
  5. 5Click Test Workflow to verify everything works, then activate it.

Or paste directly in n8n → Import from JSON:

{ "name": "Daily MLB Pitcher vs. Batter Matchup Analysis with Google Sheets and Telegram", "nodes": [...], ...}

Integrations

codegooglesheetshttprequestscheduletriggertelegram

Get This Workflow

Download and import in one click

Download JSONView on n8n.io
Nodes12
Complexitymedium
Triggerscheduled

Created by

TheStock

TheStock

@thestock

Tags

codegooglesheetshttprequestscheduletriggertelegram

New to n8n?

n8n is a free, open-source workflow automation tool. Self-host it or use the cloud version.

Get n8n Free →

Related Miscellaneous Workflows