Skip to content

AlizKaz/tennis-booking-assistant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tennis Booking Assistant

Welcome to the Tennis Booking Assistant repository! This project is designed to help you book tennis courts at your 10XTO with ease and efficiency.

Features

  • Automates the process of booking tennis courts at 10XTO using OpenAI APIs.
  • Ensures you never miss an available slot.
  • Written in Python for simplicity and flexibility.

Prerequisites

Before you begin, ensure you have met the following requirements:

Installation

Follow these steps to set up your environment and get the code running:

  1. Clone the repository:

    $ git clone https://github.com/yourusername/tennis-booking-assistant.git
    $ cd tennis-booking-assistant
  2. Set up the environment variables:

    Create a .env file in the root directory of the project and add the following lines, replacing the placeholder values with your actual information:

    OPENAI_API_KEY_BOOKING_PROJECT=<YOUR_OPENAO_PROJECT_API_KEY_HERE>
    LOGIN_USERNAME=<YOUR_10XTO_USERNAME_HERE>
    LOGIN_PASSWORD=<YOUR_10XTO_PASSWORD_HERE>
    HOST_NAME=<YOUR_FIRST_AND_LAST_NAME_HERE>   
    
  3. Set pyenv

    $ pyenv local 3.11.0
  4. Install dependencies using Pipenv:

    $ pipenv install
  5. Activate the virtual environment:

    $ pipenv shell
  6. Usage:

    $ streamlit run src/ui.py
    
    You can now view your Streamlit app in your browser
    
    Local URL: http:https://localhost:8501
    Network URL: http:https://10.88.111.4:8501
    

This command will start the booking assistant, which will attempt to book available tennis courts based on your conversation with the assistant.

What to ask the assistant

Currently there are two services that the assistant can do for you

  1. Reserve a tennis court
  2. Check out the court availabilities

How to reserve a tennis court:

Ask the assistant to reserve a tennis court for you. You may use the following prompt or anything similar to this.

book a court for me and Alejandro for tomorrow at 7pm.

How to check out the available spots:

what are the available spots for next Friday?

Happy booking! 🏸

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages