claude-booking-bot logo

Claude Booking Bot

by pixegami

2 forks
15 stars
Free

What is claude-booking-bot

claude-booking-bot is an innovative chat bot project by Pixegami designed to demonstrate the use of Claude 3.5's "tool use" functionality. This bot serves as a virtual assistant to aid users in checking availability and reserving tables at a restaurant. By utilizing custom functions, the bot can interact with a CSV file containing booking data and respond to user queries with relevant information. It exemplifies how AI can be integrated with external tools to perform practical tasks effectively.

How to Use claude-booking-bot

To use the claude-booking-bot, you need to set up a Python environment and install the necessary dependencies. Here’s a quick guide:

  1. Set Up Environment: Create a virtual environment in Python to manage dependencies.

    python -m venv venv
    source venv/bin/activate
    
  2. Install Dependencies: Use the provided requirements file to install all necessary packages.

    pip install -r requirements.txt
    
  3. API Key Setup: Obtain an API key from Anthropic's console. Once you have the key, set it as an environment variable.

    export ANTHROPIC_API_KEY="your_api_key_here"
    
  4. Run the Bot: Execute the booking_bot.py script to start interacting with the bot.

    python booking_bot.py
    

Once the bot is running, it will guide you through the process of checking table availability and making reservations by asking a series of questions about your preferences.

Key Features of claude-booking-bot

  • Interactive Booking: The bot provides a conversational interface for users to inquire about table availability and make reservations. It uses Claude's language capabilities to understand user requests and respond appropriately.

  • Tool Use Functionality: The bot employs custom Python functions to handle specific tasks such as querying available booking slots and booking tables. This highlights the capability of AI to integrate with external tools for enhanced functionality.

  • Data Management: Booking information is stored and accessed from a local CSV file, allowing the bot to check and update reservations in real-time.

  • User-Friendly Experience: The bot continuously interacts with the user, providing clear instructions and feedback throughout the booking process, ensuring a smooth user experience.

  • Flexible Options: If the desired reservation time is unavailable, the bot suggests alternative options, showing its adaptability in providing solutions.

Overall, claude-booking-bot is a practical example of how AI can be utilized to perform specific tasks through the integration of external tools and data sources, providing users with an efficient and interactive experience.

How to Use

To use the claude-booking-bot, follow these steps:

  1. Visit https://github.com/pixega...
  2. Follow the setup instructions to create an account (if required)
  3. Connect the MCP server to your Claude Desktop application
  4. Start using claude-booking-bot capabilities within your Claude conversations

Additional Information

Created

July 9, 2024

Company

pixegami

Start building your own MCP Server

Interested in creating your own MCP Server? Check out the official documentation and resources.

Learn More