A streamlined, AI-powered chatbot that leverages Google’s Gemini LLM and the official Esports Earnings API to provide real-time esports data. Ask questions about players, teams, tournaments, or specific games, and EsportsBot AI will fetch relevant data and summarize it in clear, conversational responses.
-
esports.ipynb- A Jupyter Notebook demonstrating end-to-end usage of the Esports Earnings API and Gemini LLM.
- Showcases how to make direct API requests, integrate the LLM for summarization, and prototype queries.
-
esports_app.py- A Streamlit-based web application that provides a user-friendly chatbot interface.
- Leverages Google’s Gemini 2.0 Flash model to interpret user queries, choose the right Esports Earnings API endpoint, fetch data, and summarize responses.
- Usage:
streamlit run esports_app.py
- Make sure to install the required dependencies (see Installation) and set your environment variables/keys.
-
esports_games.csv- A CSV containing scraped game IDs and names from Esports Earnings.
- The chatbot reads from this file to dynamically map textual game names (like
"Valorant") to numeric IDs (e.g.,646), avoiding hardcoding. - If the user references a game name in their query, the app checks this file to find the correct ID.
- Clone or Download this repository.
- Install dependencies:
pip install -r requirements.txt