Daily MLB Pitcher vs. Batter Matchup Analysis with Google Sheets and Telegram — n8n ワークフロー
概要
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
使用ノード
Google SheetsHTTP RequestTelegramCode
ワークフロープレビュー
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
トリガー
このワークフローは スケジュール トリガーで開始します、定義されたスケジュールで実行。
- 2
処理
データは 12 個のノードを流れます, connecting code, googlesheets, httprequest。
- 3
出力
ワークフローは自動化を完了し、設定された宛先に結果を配信します。
ノード詳細 (12)
GO#1
Google Sheets
googleSheets
HT#2
HTTP Request
httpRequest
TE#3
Telegram
telegram
CO#4
Code
code
このワークフローのインポート方法
- 1右側の JSONをダウンロード ボタンをクリックしてワークフローファイルを保存します。
- 2n8nインスタンスを開き、ワークフロー → 新規 → ファイルからインポート に進みます。
- 3ダウンロードした
daily-mlb-pitcher-vs-batter-matchup-analysis-with-google-sheets-and-telegramファイルを選択し、インポートをクリックします。 - 4各サービスノードの 認証情報(APIキー、OAuthなど)を設定します。
- 5ワークフローをテスト をクリックして動作確認し、有効化します。
またはn8nの JSONからインポート に直接貼り付け:
{ "name": "Daily MLB Pitcher vs. Batter Matchup Analysis with Google Sheets and Telegram", "nodes": [...], ...}
インテグレーション
codegooglesheetshttprequestscheduletriggertelegram
作成者
TheStock
@thestock
タグ
codegooglesheetshttprequestscheduletriggertelegram