{"id":50338262,"url":"https://github.com/busrarafa/ai-travel-planner","last_synced_at":"2026-05-29T15:00:52.732Z","repository":{"id":358181052,"uuid":"1240378875","full_name":"BusraRafa/AI-Travel-Planner","owner":"BusraRafa","description":"A conversational AI travel assistant that collects trip preferences through natural multilingual dialogue (English \u0026 Chinese) and generates a structured trip profile — integration-ready for itinerary and booking APIs.","archived":false,"fork":false,"pushed_at":"2026-05-16T04:33:48.000Z","size":24,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-16T06:39:08.858Z","etag":null,"topics":["gpt4-turbo","json","language-model","llm","multi-turn-conversations","natural-language-processing","openai-api","prompt-engineering","python3","text-generation"],"latest_commit_sha":null,"homepage":"https://mtravel.ai/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BusraRafa.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-16T04:20:27.000Z","updated_at":"2026-05-16T06:05:43.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/BusraRafa/AI-Travel-Planner","commit_stats":null,"previous_names":["busrarafa/ai-travel-planner"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/BusraRafa/AI-Travel-Planner","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BusraRafa%2FAI-Travel-Planner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BusraRafa%2FAI-Travel-Planner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BusraRafa%2FAI-Travel-Planner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BusraRafa%2FAI-Travel-Planner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BusraRafa","download_url":"https://codeload.github.com/BusraRafa/AI-Travel-Planner/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BusraRafa%2FAI-Travel-Planner/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33657690,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-29T02:00:06.066Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gpt4-turbo","json","language-model","llm","multi-turn-conversations","natural-language-processing","openai-api","prompt-engineering","python3","text-generation"],"created_at":"2026-05-29T15:00:49.758Z","updated_at":"2026-05-29T15:00:52.715Z","avatar_url":"https://github.com/BusraRafa.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ✈️ AI-Travel-Planer\n\nAn AI-powered multilingual travel assistant that collects trip preferences through natural conversation and generates a complete, personalized travel itinerary. Supports both **English** and **Chinese (中文)**.\n\n---\n\n## Overview\n\nAI-Travel-Planer is a conversational travel planning system where an AI assistant named **Martin** guides users through a friendly, natural dialogue to understand their travel needs — then compiles everything into a structured trip plan ready for itinerary generation.\n\nThe assistant intelligently collects trip details step by step, handles mid-conversation changes, confirms all details before finalizing, and outputs a clean summary of the trip profile.\n\n---\n\n## How It Works\n\nThe assistant follows a two-phase flow:\n\n**Phase 1 — Preference Collection**\n\nMartin engages the user in conversation and progressively collects the following:\n\n| Field | Description |\n|---|---|\n| **Destination** | Where the user is traveling to |\n| **Origin** | Where they are departing from |\n| **Traveling With** | Who is joining and total traveler count |\n| **Travel Dates** | When the trip starts |\n| **Duration** | How many days the trip lasts |\n| **Purpose** | Type of trip — leisure, business, cultural, foodie, etc. |\n| **Transportation** | Preferred mode of travel within the destination |\n\n**Phase 2 — Confirmation \u0026 Finalization**\n\nOnce all fields are collected, Martin presents a full summary for user confirmation. Users can make natural language edits (e.g. \"change the duration to 10 days\") and the assistant updates accordingly — then re-confirms before generating the final trip profile.\n\nA trip description is automatically generated from the full conversation to capture motivations, preferences, and experience goals for downstream itinerary planning.\n\n---\n\n## Key Features\n\n- Conversational AI assistant with distinct personality and tone (Martin from Travel Labs)\n- Multilingual support — English and Chinese, selectable at initialization\n- Smart information extraction from natural language using LLMs\n- Handles mid-conversation corrections and field updates gracefully\n- Confirms all details before finalizing — users can edit anything before locking in\n- Auto-generates a rich trip description from conversation context\n- Fuzzy date parsing — understands inputs like \"second week of next month\"\n- Outputs a clean JSON trip profile on confirmation\n\n---\n\n## Tech Stack\n\n- **Language:** Python 3.8+\n- **AI:** OpenAI GPT-4 Turbo\n- **Language Support:** English, Chinese (via GPT multilingual understanding)\n- **APIs:** Booking.com (integration-ready), Google Places\n- **Date Parsing:** `python-dateutil`\n- **Interface:** CLI (web/app integration-ready via modular `TravelChatbot` class)\n\n---\n\n## Project Structure\n\n```\nAI-Travel-Planer/\n├── main.py          # Core chatbot logic — TravelChatbot class and CLI runner\n├── booking.py       # Booking.com API integration\n├── opentest.py      # OpenAI connection testing\n├── test.py          # General test scripts\n├── .gitignore\n└── LICENSE\n```\n\n---\n\n## Getting Started\n\n### 1. Clone the repository\n\n```bash\ngit clone https://github.com/your-username/AI-Travel-Planer.git\ncd AI-Travel-Planer\n```\n\n### 2. Install dependencies\n\n```bash\npip install -r requirements.txt\n```\n\n### 3. Set up your `.env` file\n\n```\nOPENAI_API_KEY=your_openai_api_key\nTRAVEL_API_KEY=your_booking_api_key\n```\n\n### 4. Run the assistant\n\n```bash\npython main.py\n```\n\n---\n\n## Sample Output (Trip Profile JSON)\n\n```json\n{\n  \"travel_info\": {\n    \"from\": \"Dhaka, Bangladesh\",\n    \"to\": \"Tokyo, Japan\",\n    \"traveling_with\": \"2 people (couple)\",\n    \"when\": \"second week of June (2025-06-08)\",\n    \"duration\": \"10 days\",\n    \"purpose\": \"sightseeing and cultural exploration\",\n    \"transportation\": \"trains and public transit\",\n    \"descriptions of the trip\": \"A couple seeking an immersive cultural experience...\"\n  },\n  \"status\": \"complete\",\n  \"missing_info\": [],\n  \"confirmed\": true\n}\n```\n\n---\n\n## Supported Travel Purposes\n\nThe `purpose` field accepts any free-text description. Common examples include:\n\n| Category | Examples |\n|---|---|\n| **Leisure** | Sightseeing, beach holiday, relaxation, honeymoon |\n| **Cultural** | Heritage tours, museum visits, local cuisine exploration |\n| **Adventure** | Hiking, trekking, outdoor activities |\n| **Business** | Conferences, corporate travel, networking |\n| **Family** | Family vacation, theme parks, kid-friendly activities |\n| **Solo** | Backpacking, self-discovery, solo exploration |\n\n---\n\n## Future Roadmap\n\n- Real-time hotel and flight price fetching\n- Full Booking.com and Skyscanner integration\n- Day-by-day itinerary generation from the trip profile\n- Map view of the planned itinerary\n- Save and share travel plans\n- Mobile app and web interface support\n- Personal travel dashboard\n\n---\n\n## License\n\nLicensed under the [MIT License](https://github.com/BusraRafa/AI-Travel-Planner/blob/main/LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbusrarafa%2Fai-travel-planner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbusrarafa%2Fai-travel-planner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbusrarafa%2Fai-travel-planner/lists"}