Daily MLB Pitcher vs. Batter Matchup Analysis with Google Sheets and Telegram — n8n 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 rows
Setup Steps:
- Google Sheets OAuth2 → point to your Google Sheet → Tab name
- Create Telegram Bot cred + chatId
- 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
Workflow Preview
How it Works
- 1
Trigger
The workflow starts with a scheduled trigger, running on a defined schedule.
- 2
Process
Data flows through 12 nodes, connecting code, googlesheets, httprequest.
- 3
Output
The workflow completes its automation and delivers the result to the configured destination.
Node Details (12)
Google Sheets
googleSheets
HTTP Request
httpRequest
Telegram
telegram
Code
code
How to Import This Workflow
- 1Click Download JSON button on the right to save the workflow file.
- 2Open your n8n instance. Go to Workflows → New → Import from file.
- 3Select the downloaded
daily-mlb-pitcher-vs-batter-matchup-analysis-with-google-sheets-and-telegramfile and click Import. - 4Set up credentials for each service node (API keys, OAuth, etc.).
- 5Click Test Workflow to verify everything works, then activate it.
Or paste directly in n8n → Import from JSON:
Integrations
Created by
TheStock
@thestock
Tags
New to n8n?
n8n is a free, open-source workflow automation tool. Self-host it or use the cloud version.
Get n8n Free →