Daily MLB Pitcher vs. Batter Matchup Analysis with Google Sheets and Telegram — n8n 工作流

复杂度 定时12 个节点🏷️ Miscellaneous作者:TheStock

概览

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

使用的节点

Google SheetsHTTP RequestTelegramCode

工作流预览

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

工作原理

  1. 1

    触发器

    工作流由 定时 触发器启动,按预定计划运行。

  2. 2

    处理

    数据流经 12 个节点, connecting code, googlesheets, httprequest。

  3. 3

    输出

    工作流完成自动化并将结果发送到配置的目标。

节点详情 (12)

GO

Google Sheets

googleSheets

#1
HT

HTTP Request

httpRequest

#2
TE

Telegram

telegram

#3
CO

Code

code

#4

如何导入此工作流

  1. 1点击右侧 下载 JSON 按钮保存工作流文件。
  2. 2打开你的 n8n 实例,依次点击 工作流 → 新建 → 从文件导入
  3. 3选择下载的 daily-mlb-pitcher-vs-batter-matchup-analysis-with-google-sheets-and-telegram 文件并点击导入。
  4. 4为每个服务节点配置 凭证(API 密钥、OAuth 等)。
  5. 5点击 测试工作流 验证一切正常,然后激活它。

或直接在 n8n → 从 JSON 导入 中粘贴:

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

集成

codegooglesheetshttprequestscheduletriggertelegram

获取此工作流

一键下载并导入

下载 JSON在 n8n.io 上查看
节点12
复杂度medium
触发器scheduled

创建者

TheStock

TheStock

@thestock

标签

codegooglesheetshttprequestscheduletriggertelegram

n8n 新手?

n8n 是一款免费开源的工作流自动化工具,支持自托管或使用云版本。

免费获取 n8n →

Related Miscellaneous Workflows