AI-powered hotel receptionist voice bot using OpenAI Realtime API for multilingual customer service.
![]()
This project implements an intelligent voice assistant designed specifically for hotel reception services. The bot leverages OpenAI's Realtime API to provide seamless, multilingual customer interactions, handling common hotel inquiries, bookings, and guest services with natural voice conversations.
- Multilingual Support: Handles customer inquiries in multiple languages
- Real-time Voice Processing: Uses OpenAI Realtime API for natural conversations
- Automatic Translation: Transcripts are automatically translated to English for staff review while preserving original text
- Hotel-specific Knowledge: Trained on common hotel services and procedures
- 24/7 Availability: Provides round-the-clock customer service
- Integration Ready: Designed to integrate with existing hotel management systems
flowchart TD
%% Nodes
A(("Customer<br/>calls"))
B["Greet and ask: Date,<br/>time, number of<br/>guests. Carry on<br/>conversation<br/>(OpenAI Realtime GPT)"]
C("Transcript text")
T["Optional:<br/>Translate to<br/>English"]
D{"can data for<br/>reservation be<br/>extracted?"}
E("Fill Pydantic schema<br/>and create a Json<br/>object<br/>(Pydantic AI)")
F[("DB record")]
G["Message to human<br/>receptionist with number and<br/>call transcript to eventually<br/>call back"]
%% Edges
A ==>|MCP WhatsApp connection| B
B --> C
C --> D
C -.-> T
D -->|Yes| E
D -->|NO| G
E --> F
F ==>|MCP DB connection| B
%% Colors
classDef blueFill fill:#1E88E5,stroke:#fff,stroke-width:2px,color:#fff
classDef blackFill fill:#1a1a1a,stroke:#fff,stroke-width:2px,color:#fff
classDef grayFill fill:#757575,stroke:#fff,stroke-width:2px,color:#fff
class B,G blueFill
class A,C,D,E,F blackFill
class T grayFill
%% Edge Colors
%% 0: A->B
%% 3: C->T
%% 4: D->E (Yes)
%% 5: D->G (NO)
%% 7: F->B
linkStyle 0 stroke:#FFD700,stroke-width:2px;
linkStyle 3 stroke:#BDBDBD,stroke-width:2px,stroke-dasharray: 5 5;
linkStyle 4 stroke:#00E676,stroke-width:2px;
linkStyle 5 stroke:#FF5252,stroke-width:2px;
linkStyle 7 stroke:#FFD700,stroke-width:2px;
Key Capabilities:
Real-Time Multilingual Support: Utilizing OpenAI’s Realtime GPT infrastructure, the bot automatically detects and engages with guests in their preferred language (such as English, Spanish, French, German, Italian, etc.), enabling smooth communication regardless of guest origin.
Conversational Automation: Capable of answering common questions (room availability, amenities, booking status), making and modifying reservations, offering local recommendations, and processing service requests via phone calls or smart device interfaces.
Personalization & Context Retention: Remembers guest preferences, understands hotel-specific terminology, and adapts its style to maintain a warm, “human-like” engagement. Guest profiles and conversational context are retained across multiple interactions.
Continuous Quality Assurance: Logs all dialogues, analyzes guest satisfaction sentiment in real time, and flags interactions for review if issues arise, enabling continuous service improvement and staff training.
Seamless Human Handover: The bot automatically transfers complex, highly emotional, or sensitive guest requests to human receptionists when needed, ensuring no scenario is left unresolved.
Cost Savings: Reduces front desk staffing costs by up to 49%, with many hotels reporting breaking even on their initial AI investment within 4–8 months.
Productivity: Handles >80% of routine calls and queries, cutting average wait times by 31% and freeing staff for more valuable, high-touch interactions.
Revenue Generation: Immediate response rates boost booking conversion by 15–25%, while personalized upselling (spa packages, room upgrades, tours) can yield thousands in extra monthly profit.
Guest Satisfaction: 24/7 instant support and multilingual service raise guest satisfaction scores by 5–10 points, improving reviews and loyalty.
Quality Assurance: Automated call logging and sentiment tracking enable continuous optimization; prompt engineering and seasonal content updates boost both ROI and guest engagement.
Scalability: The solution easily supports hotels of any size, handling high call volumes and fluctuating demand without additional hiring.
49% reduction in staffing costs (e.g., from $215,000 to $110,000 annually for a boutique hotel)
Booking conversion rate increase: 62% → 78%
Cut in average response/wait time: 31%
Satisfaction boost: +5–10 points in guest CSAT scores
Multilingual support: 6+ languages handled natively in real-time
- OpenAI Realtime API: For voice processing and natural language understanding
- Python: Core application development
- WebSocket: Real-time communication
- Python 3.11+
- OpenAI API key
- Audio input/output capabilities
git clone https://github.com/opsabarsec/hotel-receptionist-voice-bot.git
cd hotel-receptionist-voice-bot
pip install -r requirements.txt- Set your OpenAI API key in environment variables:
export OPENAI_API_KEY='your-api-key-here'- Run the bot:
python bot_main.pyAfter each conversation, the bot automatically generates three transcript files:
- Original transcript (
hotel_conversation_TIMESTAMP.txt): Conversation in the original language(s) - Bilingual transcript (
hotel_conversation_TIMESTAMP_bilingual.txt): Side-by-side original and English translation - JSON transcript (
hotel_conversation_TIMESTAMP.json): Structured data with all metadata including detected languages
To disable automatic translation, modify bot_main.py:
logger = TranscriptLogger(enable_translation=False)MIT License - see LICENSE file for details.
Contributions are welcome! Please feel free to submit a Pull Request.