⚡ View fantasy football roster details with Sleeper API and Telegram chatbot

228 views · ⚡ Personal Productivity

Description

Sleeper NFL Team Chatbot Starter

A Telegram chatbot built to look up your fantasy football team in the Sleeper app and return your roster details, player names, positions, and team info.

This starter workflow is perfect for users who want a simple, conversational way to view their Sleeper team in-season or pre-draft.


What It Does

When a user types their Sleeper username into Telegram, this workflow:

  1. Extracts the username from Telegram
  2. Pulls their Sleeper User ID
  3. Retrieves their Leagues and selects the first one (by default)
  4. Pulls the full league Rosters
  5. Finds the matching roster owned by that user
  6. Uses player_ids to look up full player info from a connected database (e.g. Airtable or Google Sheets)
  7. Returns a clean list of player names, positions, and teams via Telegram

Requirements

To get this running, you’ll need:


Setup Instructions

  1. Import the workflow into your n8n instance
  2. Add the required credentials:
    • Telegram (API Key from BotFather)
    • Airtable (or replace with another database method like Google Sheets or HTTP request to a hosted JSON file)
  3. Trigger the workflow by sending your exact Sleeper username to the bot
  4. Your full team roster will return as a formatted message

> If the user is in multiple Sleeper leagues, the current logic returns the first league found.


Example Output

You have 19 players on your roster:
Cam Akers (RB - NO), Jared Goff (QB - DET), ...

Customization Notes



Difficulty Rating & Comment (from the author)


🔗 Nodes Used

Airtable, HTTP Request, Telegram, Telegram Trigger

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup