This device is not compatible.
PROJECT
Building AI Features for a Hotel Booking App
In this project, we'll add AI features to a Flask/Pydantic hotel booking backend using an LLM (Claude, Gemini, or GPT) to confirm bookings, route support tickets, analyze reviews, and power search, with database-backed results and automated emails.
You will learn to:
Validate booking request, draft a confirmation via an LLM, persist it, and email a styled receipt over SMTP.
Set up a Gmail SMTP connection and build the email-sending logic for bookings and tickets.
Route and categorize guest support messages, then email a ticket confirmation back to the guest.
Turn a plain-language search query into structured preferences and ranked hotel results.
Turn a raw guest review into a sentiment score, flagged issues, and a drafted reply.
Validate LLM output with Pydantic schemas and persist it through Flask and SQLAlchemy.
Skills
Backend Development
API Integration
Generative AI
Web Development
Prerequisites
Basic understanding of API integration
Intermediate knowledge of Flask and Pydantic
Intermediate knowledge of Python
An LLM provider API key (Claude, Gemini, or OpenAI)
A Gmail account (for SMTP email delivery)
Technologies
Flask
OpenAI
Gemini
Anthropic
Backend Development
Project Description
In this project, we'll build a full stack AI-powered hotel booking platform using Python, Flask, React, and large language models (LLMs). We'll implement four practical AI features: intelligent hotel search, guest review analysis, AI-powered support ticketing, and automated booking confirmations. To support these features, we'll build a provider-agnostic LLM integration that works with Gemini, OpenAI, or Claude through a single configuration and transforms natural language input into reliable, structured, and application-ready output.
We'll start by creating reusable LLM utility functions for generating conversational responses across multiple AI providers. We'll then implement structured JSON outputs with predefined schemas, enabling the application to reliably extract hotel preferences, analyze guest sentiment, identify review issues, categorize support requests, and process booking information. We'll use Pydantic for data validation and SQLAlchemy for database operations, connecting LLM-generated data with real backend workflows.
By the end of this project, we'll have hands-on experience building a full stack generative AI application, integrating multiple LLM providers, validating structured AI outputs, and using them to power real-world hotel search, review analysis, customer support, and booking automation workflows.
Project Tasks
1
Introduction
Task 0 : Get Started
Task 1: Set Up the Environment
Task 2: Understand the Database and Schemas
2
Implement Booking Confirmation
Task 3: Implement Booking Data Validation
Task 4 : Implement LLM Reply Draft and Storage
Task 5: Configure SMTP
Task 6: Implement Confirmation Email Delivery
3
Implement Guest Review Analysis
Task 7: Implement Review Analysis and Storage
4
Implement Hotel Search
Task 8: Implement Structured LLM Search Extraction
5
Implement Support Ticketing
Task 9: Implement Support Ticket Routing and Storage
Task 10: Implement Ticket Confirmation Email Delivery
6
Conclusion
Congratulations!
Subscribe to project updates
Atabek BEKENOV
Senior Software Engineer
Pradip Pariyar
Senior Software Engineer
Renzo Scriber
Senior Software Engineer
Vasiliki Nikolaidi
Senior Software Engineer
Juan Carlos Valerio Arrieta
Senior Software Engineer
Relevant Courses
Use the following content to review prerequisites or explore specific concepts in detail.