A conversational travel-planning chatbot built with Streamlit and the OpenAI API. It asks follow-up questions to gather trip details (destination, duration, interests, constraints), asks for clarification when the user's input is contradictory or ambiguous, and generates a full itinerary once it has enough information.
- Multi-turn conversation with retained history (each request re-sends prior context, since the model itself is stateless)
- Follow-up questioning until destination, duration, and interests are known
- Contradiction/ambiguity detection before generating a plan
- Generated itinerary includes: trip title, summary, day-by-day plan, practical tips, and an estimated budget
- Live token usage and estimated cost tracking (gpt-4o-mini pricing) in the sidebar
Python, Streamlit, OpenAI API (gpt-4o-mini)
pip install -r requirements.txt
# add your OPENAI_API_KEY to a .env file
streamlit run app.py