AI travel copilot
An intelligent travel agent system that helps users find flights and hotels, and automatically sends detailed travel options via email. The system leverages LangChain, OpenAI's GPT-4, and SendGrid for a seamless travel planning experience.

Overview
This system processes travel requests by:
- Understanding user travel requirements
- Finding suitable flights using flight search tools
- Locating appropriate hotels based on criteria
- Generating detailed HTML emails with travel options
- Automatically sending formatted emails through SendGrid
Features
- Smart Travel Search: AI-powered search for flights and hotels
- Multi-Tool Integration: Combines flight and hotel search capabilities
- HTML Email Generation: Creates beautifully formatted travel option emails
- Automated Communication: SendGrid integration for reliable email delivery
- State Management: Uses LangGraph for maintaining conversation state
- Visual Output: Includes airline and hotel logos in email content
- Price Transparency: Clearly displays flight and hotel prices with currency
Tech Stack
- Core Framework: Python 3.x
- AI/ML: OpenAI GPT-4LangChainLangGraph
- OpenAI GPT-4
- LangChain
- LangGraph
- Email Service: SendGrid
- Key Libraries: langchain-openailanggraphpython-dotenvsendgrid
- langchain-openai
- langgraph
- python-dotenv
- sendgrid
Prerequisites
- Python 3.x installed
- OpenAI API access
- SendGrid API access
- Environment variables configured
Github Project
You can find my code here