
langchain appointment booking demo
A demo project showcasing how to build an appointment booking chatbot using Python, LangChain, MCP, the Google Gemini, Gradio, Pipedream, and Google Calendar.
Repository Info
About This Server
A demo project showcasing how to build an appointment booking chatbot using Python, LangChain, MCP, the Google Gemini, Gradio, Pipedream, and Google Calendar.
Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.
Documentation
LangChain Appointment Booking Chatbot
A demo project showcasing how to build an appointment booking chatbot using Python, LangChain, MCP, the Google Gemini API, Gradio, Pipedream, and Google Calendar.
Prerequisites
Before you begin, ensure you have the following:
- Python 3.8 or higher
Setting Up the Google API Key for Gemini
For detailed instructions on obtaining a Google API key to use Gemini in this demo, please refer to Google's official documentation:
- Getting Started with Gemini API
Enabling the Google Calendar API
To use the Google Calendar API, you will need to enable it. For detailed instructions on how to do this, please refer to the Google Calendar API Quickstart Guide.
Setting Up Pipedream
For this example, you will need to sign up for a free Pipedream account and connect your Google Calendar to it. Please follow the instructions below to get your Pipedream URL:
-
Sign up for a Pipedream account Sign up for a free account on Pipedream.
-
Connect Google Calendar to Pipedream Follow the instructions on Pipedream's Google Calendar MCP page to connect your Google Calendar to Pipedream.
-
Get your Pipedream URL After connecting your Google Calendar to Pipedream copy the MCP server URL under Configuration: Pipedream's Google Calendar MCP page
Running the Demo
-
Clone the repository
git clone <repository-url> cd langchain-appointment-booking-demo -
Create and activate a virtual environment (recommended)
python -m venv .venv source .venv/bin/activate -
Install dependencies
pip install -r requirements.txt -
Set up environment variables Copy the
.env.examplefile to a.envfile in the project root and replace the placeholders with your actual Google API key and Pipedream URL.
Running the Application
-
Start the chatbot
python app.py -
Access the web interface Open your web browser and navigate to the URL shown in the terminal (typically http://localhost:7860)
How to Use
Sample conversation starters:
- "Hi, I'd like to book a dental appointment"
- "When is my next appointment?"
- "Can you reschedule my upcoming appointment?"
- "Let's cancel my appointment"
Customization
Modifying the Prompt
You can customize the chatbot's behavior by editing the prompt variable in app.py. The current prompt includes instructions for handling appointments, but you can modify it to suit your specific needs.
Changing the AI Model
To use a different model from Google's Gemini API, modify the model name in the ChatGoogleGenerativeAI initialization in app.py.
Quick Start
Clone the repository
git clone https://github.com/davidkiss/langchain-appointment-booking-demoInstall dependencies
cd langchain-appointment-booking-demo
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.