AI assistant
AI assistant

Ask pitchtracker

Ask any question about MLB pitchers, batters, at-bats, or specific games. The AI translates your natural-language query — typed or spoken — into the right 3D pitch view on pitchtracker.

Open the floating sparkle icon in the bottom-left corner of any page to start a conversation. Voice input works on Android Chrome and iOS Safari.

Sample queries

  • Show me Paul Skenes's curveballs in 2025
    Filters his pitcher page to a single pitch type for a season.
  • What's Dylan Cease's average fastball speed?
    Looks up aggregate stats and answers in chat — no navigation.
  • Show me all the strikeouts from Sandy Alcantara's last game
    Finds his most recent appearance, jumps straight to the first K replay with the sidebar filtered to all his Ks that game.
  • Show me pitches over 95 mph
    Adds a velocity filter to whatever pitcher page you're on.
  • Compare Skubal and Skenes
    Loads the /compare view with both arsenals overlaid.
  • Show me Sandy Alcantara's tunneling
    Turns on the pitch-tunneling envelope on his pitcher page.

FAQ

  • What can the pitchtracker AI assistant do?
    It translates natural-language questions about MLB pitchers, batters, and at-bats into the right page on pitchtracker. Ask for a pitcher's arsenal, a specific game's strikeouts, a matchup between two players, a velocity range, or aggregate stats. It either navigates you to the answer or replies with the number in chat for stat questions.
  • How do I open the AI chat?
    Tap the colorful sparkle icon in the bottom-left corner of any page. The chat panel opens with sample queries to get you started. You can type or use the mic icon for voice input.
  • Does the AI cost anything to use?
    No, it's free. Each anonymous IP is rate-limited to 10 requests per minute and 100 per day to keep usage costs bounded.
  • What MLB seasons does the AI know about?
    Current and previous season are cached for fast lookups. Older seasons are fetched on-demand from Baseball Savant when you navigate to them.
  • Can the AI answer questions about specific at-bats?
    Yes. Ask for 'the strikeouts in this game' / 'every home run in this game' / 'walks Skenes gave up in his last start' and it navigates to the first matching at-bat's 3D replay with the sidebar pre-filtered to siblings.
  • Does voice input work on mobile?
    Yes, on Android Chrome and iOS Safari (Firefox doesn't support the underlying Web Speech API). Tap the mic, say your query, the engine auto-stops when you pause and submits.
  • What if I misspell a player's name?
    The name resolver uses phonetic matching (Postgres dmetaphone). Speech-to-text errors like 'McClain' for 'McLean' or typos like 'Skeenz' for 'Skenes' resolve to the right player automatically.

What it's built on

The chat uses Anthropic's Claude (Haiku 4.5) through the Vercel AI Gateway, paired with custom tools that query our cached MLB pitch dataset. Pitch trajectories come from Baseball Savant's Statcast measurements. Names and aggregate stats are resolved against our Supabase Postgres cache with phonetic fallback so misspellings don't dead-end.