Submitted:
10 July 2026
Posted:
14 July 2026
You are already at the latest version
Abstract
Keywords:
1. Introduction
2. Materials and Methods
2.1. System Architecture

2.1.1. Backend Layer
2.1.2. AI Model Integration
- Gemini 2.0 Flash (data parsing agent): Specialized in multimodal extraction, processing visual layouts of images and PDFs into structured JSON schemas [26].
- GPT-4o-mini (semantic evaluator agent): Utilized as a high-speed filter to classify and validate the relevance of visual assets based on semantic clusters [27].
- Runway Gen-3 Alpha Turbo (generative synthesis agent): Dedicated to the creative task of hallucinating cinematic motion from static images [28].
- Gemini 2.5 Flash (orchestrator agent): Acts as the system’s "brain", maintaining the conversation state and managing the global execution flow [26].
- 1.
- Flight Processor: Processes flight information.
- 2.
- Hotels Processor: Extracts hotel booking details.
- 3.
- Activities Processor: Registers tourist activities and events.
- 4.
- Rental Car Processor: Processes vehicle rental information.
- 5.
- Components Delete: Removes one or more components from the itinerary.
- 6.
- Itinerary Generator: Produces the itinerary formatted as PDF and initiates video generation.
- 7.
- Video Player: Displays the video to the user once synthesis is complete.
- 8.
- Itinerary Sender: Dispatches the generated PDF to the user via email.
2.2. Data Processing Pipeline
2.2.1. Natural Language Understanding
- Identify the primary intent (e.g., add flight, modify itinerary, generate deliverable)
- Extract relevant entities (destinations, dates, passenger counts, prices)
- Determine which tool(s) should be invoked
- Maintain conversation context across multiple turns
2.2.2. Multimodal Data Extraction
- Image processing: A two-stage extraction process is employed. First, Tesseract OCR extracts raw text from the uploaded image. Second, the extracted text is passed to the Data Parsing Agent with a specialized prompt designed to identify, correct, and structure travel-related information. This approach combines the robustness of traditional OCR with the semantic understanding capabilities of LLMs [5].
- PDF parsing: Document processing follows a similar pattern, using PyMuPDF4LLM [33] to extract text while preserving the structure of the document. The extracted content is then processed by the VLM to identify booking details, accommodation information, and pricing structures.
2.2.3. Itinerary Construction
2.3. Generative Video Synthesis Workflow
- 1.
- Semantic location extraction: The process begins by analyzing the itinerary structure to identify key geographic entities. A priority-based algorithm extracts locations hierarchically: first favoring accommodation locations (which typically represent the main hubs of the trip), followed by activity sites, and finally flight connections. This ensures the visual narrative focuses on the destination’s appeal rather than logistical transit points.
- 2.
-
Hybrid asset acquisition strategy: To construct the visual timeline, the system employs a dual-source retrieval strategy:
- Internal repository: The system queries a DynamoDB index to retrieve assets from an internal AWS S3 bucket, including curated content and previously generated synthetic clips.
- External sourcing: If internal assets are insufficient, the system dynamically scrapes external repositories (Pixabay, Shutterstock, Google Images) using the extracted location keywords to gather fresh candidate imagery.
- 3.
-
Intelligent filtering and quality gate: Content retrieved from external sources undergoes a rigorous two-step validation process:
- Deduplication: A SHA-256 hash check prevents the accumulation of duplicate assets in the database.
- Semantic quality analysis: A Vision-Language Model (VLM), specifically GPT-4o-mini, acts as a semantic filter. The model analyzes each candidate image to detect visual imperfections (e.g., watermarks, text overlays, low resolution) and categorizes the content into thematic clusters (e.g., urban, nature, beach). Only assets that pass this “Quality Gate” are retained for the final cut.
- 4.
- Latent diffusion synthesis (Image-to-Video): To transform static assets into dynamic cinematic footage, the pipeline integrates Runway Gen-3 Alpha Turbo. Selected high-quality static images undergo an Image-to-Video transformation process. The system utilizes specific prompt engineering strategies (e.g., requesting “drone-view perspectives” and “cinematic pans”) to hallucinate realistic motion from static inputs, leveraging the capabilities of latent diffusion models for video.
- 5.
-
Programmatic narrative assembly: The final stage stitches the curated and synthesized assets into a cohesive narrative using MoviePy. This library allows for precise, programmatic control over the rendering process, executing the following operations:
- Timeline sequencing: Ordering clips chronologically according to the itinerary flow.
- Visual processing: Applying zooms, pans, and cross-fade transitions to unify disparate media sources.
- Audio-visual synchronization: Overlaying dynamic text (locations, dates) and integrating background music.
The output is a rendered MP4 file (15–30 seconds) that is asynchronously delivered to the user via the conversational interface.
2.4. Experimental Protocol
2.4.1. Test Environment
- Runtime: Python 3.11.5
- Validation period: January 2025
- Backend framework: FastAPI 0.104.1
- Orchestration: LangChain 0.1.0 with Gemini API integration
- OCR engine: Tesseract 5.3.0 (for raw text extraction)
- Semantic extraction: Google Gemini 2.0 Flash (for layout analysis and structured data parsing)
- Containerization: Docker 24.0.6
2.4.2. Test Case Design
2.4.3. Evaluation Metrics
- Intent recognition accuracy: Proportion of queries where the system correctly identified user intent and invoked appropriate tools.
- Data extraction precision: Percentage of correctly extracted fields from images and PDFs compared to ground truth annotations.
- Processing latency: Time required for video generation and PDF rendering.
- Format consistency: Manual assessment of PDF and video output quality on a 5-point scale.
3. Results
3.1. Conversational Intelligence and Intent Recognition (TP-AVI-1)
3.2. Multimodal Data Extraction Performance
3.2.1. Image-Based Flight Extraction (TP-AVI-2)


3.2.2. PDF Hotel Confirmation Parsing (TP-AVI-3)
3.3. Itinerary Management and Modification (TP-AVI-4)
3.4. Deliverable Generation and Data Collection (TP-AVI-6 & TP-AVI-7)

3.5. Generative Video Synthesis (TP-AVI-5)
- Generation latency: The average processing time was minutes. While this exceeds the ideal real-time interaction threshold, the asynchronous delivery mechanism allowed the conversation to continue uninterrupted.
- Visual coherence: Expert review rated the narrative coherence at 4.0/5. The "Programmatic Assembly" approach successfully stitched together second clips.
- Hallucination rate: The semantic filtering gate (GPT-4o-mini) successfully rejected 85% of low-quality or irrelevant retrieved assets, significantly reducing visual inconsistencies compared to raw retrieval baselines.

3.6. Summary of Validation
4. Discussion
4.1. Interpretation of Results
4.1.1. Natural Language Understanding and Intent Recognition
4.1.2. Multimodal Data Extraction
4.1.3. Multimedia Generation Performance
- 1.
- Asynchronous processing: The implemented solution of decoupling video generation from the main conversation flow allows users to continue interacting while generation proceeds in the background, minimizing the perception of latency [42].
- 2.
- Parallelization: Executing the "Image-to-Video" diffusion tasks for multiple assets simultaneously rather than sequentially could significantly reduce total rendering time.
- 3.
- Hybrid caching: expanding the internal library of pre-generated synthetic clips for popular destinations would reduce the need for real-time generation on every request.
4.1.4. Document Generation and Formatting
- Dynamic template selection based on itinerary complexity.
- Enhanced CSS stylesheets with better overflow handling in WeasyPrint.
- Pre-rendering validation to detect and correct layout issues before delivery.
4.2. Comparison with Existing Approaches
4.3. Limitations and Future Work
4.4. Practical Implications
4.5. Theoretical Contributions
5. Conclusions
- Operational Integration: Replacing simulated data handling with live connections to Global Distribution Systems (GDS) and booking APIs (e.g., Amadeus, Sabre) to guarantee real-time availability and pricing.
- Pipeline Optimization: Reducing the video generation latency through parallel processing of diffusion tasks and implementing a hybrid caching strategy for popular destination assets.
- Personalization & Memory: Implementing a vector-based long-term memory to allow the agent to learn from user preferences over time, enabling proactive recommendations based on historical interactions.
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
References
- Buhalis, D.; Leung, D. Technology in tourism-from information communication technologies to eTourism and smart tourism towards ambient intelligence tourism: a perspective article. Tour. Rev. 2020, 75, 267–272. [Google Scholar]
- Borràs, J.; Moreno, A.; Valls, A. Intelligent tourism recommender systems: A survey. Expert Syst. With Appl. 2014, 41, 7370–7389. [Google Scholar] [CrossRef]
- Xiang, Z.; Schwartz, Z.; Gerdes, J.H., Jr.; Uysal, M. What can big data and text analytics tell us about hotel guest experience and satisfaction? Int. J. Hosp. Manag. 2015, 44, 120–130. [Google Scholar] [CrossRef]
- Smith, R. An overview of the Tesseract OCR engine. In Proceedings of the Ninth International Conference on Document Analysis and Recognition (ICDAR 2007); IEEE: Piscataway, NJ, USA, 2007; Volume 2, pp. 629–633. [Google Scholar]
- Kim, G.; Hong, T.; Yim, M.; Nam, J.; Park, J.; Yim, J.; Hwang, W.; Yun, S.; Han, D.; Park, S. OCR-free document understanding transformer. In Proceedings of the European Conference on Computer Vision (ECCV); Springer: Cham, Switzerland, 2022; pp. 498–517. [Google Scholar]
- Gretzel, U.; Sigala, M.; Xiang, Z.; Koo, C. Smart tourism: foundations and developments. Electron. Mark. 2015, 25, 179–188. [Google Scholar] [CrossRef]
- Brown, T.; Mann, B.; Ryder, N.; Subbiah, M.; Kaplan, J.D.; Dhariwal, P.; Neelakantan, A.; Shyam, P.; Sastry, G.; Askell, A.; et al. Language models are few-shot learners. Adv. Neural Inf. Process. Syst. 2020, 33, 1877–1901. [Google Scholar]
- Zhao, W.X.; Zhou, K.; Li, J.; Tang, T.; Wang, X.; Hou, Y.; Min, Y.; Zhang, B.; Zhang, J.; Dong, Z.; et al. A survey of large language models. arXiv 2023, arXiv:2303.18223. [Google Scholar]
- Xi, Z.; et al. The Rise and Potential of Large Language Model Based Agents: A Survey. arXiv 2023, arXiv:2309.07864. [Google Scholar]
- Gao, C.; et al. Collaborative Large Language Models: A Multi-Agent System Perspective. arXiv 2024, arXiv:2402.04834. [Google Scholar]
- Ramesh, A.; Pavlov, M.; Goh, G.; Gray, S.; Voss, C.; Radford, A.; Chen, M.; Sutskever, I. Zero-shot text-to-image generation. In Proceedings of the International Conference on Machine Learning; PMLR: New York, NY, USA, 2021; pp. 8821–8831. [Google Scholar]
- Ho, J.; Saharia, C.; Chan, W.; Fleet, D.J.; Norouzi, M.; Salimans, T. Imagen video: High definition video generation with diffusion models. arXiv 2022, arXiv:2210.02303. [Google Scholar]
- Blattmann, A.; Dockhorn, T.; Kulal, S.; Mendelevitch, D.; Kilian, M.; Lorenz, D.; Levi, Y.; English, Z.; Voleti, V.; Letts, A.; et al. Stable video diffusion: Scaling latent video diffusion models to large datasets. arXiv 2023, arXiv:2311.15127. [Google Scholar]
- Hong, W.; Ding, M.; Zheng, W.; Liu, X.; Tang, J. CogVideo: Large-scale pretraining for text-to-video generation via transformers. arXiv 2022, arXiv:2205.15868. [Google Scholar]
- Melián-González, S.; Gutiérrez-Taño, D.; Bulchand-Gidumal, J. Chatbots in tourism: A natural language processing approach. Int. J. Contemp. Hosp. Manag. 2021, 33, 3850–3882. [Google Scholar]
- Ribeiro, M.T.; Wu, T.; Guestrin, C.; Singh, S. Beyond accuracy: Behavioral testing of NLP models with CheckList. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics; Association for Computational Linguistics: Online, 2020; pp. 4902–4912. [Google Scholar]
- Ouyang, L.; Wu, J.; Jiang, X.; Almeida, D.; Wainwright, C.L.; Mishkin, P.; Zhang, C.; Agarwal, S.; Slama, K.; Ray, A.; et al. Training language models to follow instructions with human feedback. Adv. Neural Inf. Process. Syst. 2022, 35, 27730–27744. [Google Scholar] [CrossRef]
- Ivanov, S.; Webster, C.; Berezina, K. Adoption of robots and service automation by tourism and hospitality companies. Rev. Tur. Desenvolv. 2020, 27/28, 1501–1517. [Google Scholar]
- Meta Open Source. React: A JavaScript library for building user interfaces. Available online: https://react.dev/ (accessed on 15 January 2025).
- Tailwind Labs. Tailwind CSS: A utility-first CSS framework. Available online: https://tailwindcss.com/ (accessed on 15 January 2025).
- Chainlit. Build production-ready conversational AI applications. Available online: https://chainlit.io/ (accessed on 15 January 2025).
- Ramírez, S. FastAPI: Modern, fast (high-performance) web framework for building APIs with Python. Available online: https://fastapi.tiangolo.com/ (accessed on 15 January 2025).
- Colvin, S. Pydantic: Data validation using Python type hints. Available online: https://docs.pydantic.dev/ (accessed on 15 January 2025).
- Docker, Inc. Docker: Accelerate how you build, share, and run applications. Available online: https://www.docker.com/ (accessed on 15 January 2025).
- Mialon, G.; et al. Augmented Language Models: a Survey. arXiv 2023, arXiv:2302.07842. [Google Scholar]
- Google DeepMind. Gemini: A family of highly capable multimodal models. Available online: https://deepmind.google/technologies/gemini/ (accessed on 15 January 2025).
- OpenAI. GPT-4V(ision) system card. Available online: https://openai.com/research/gpt-4v-system-card (accessed on 15 January 2025).
- Runway Research. Gen-2: A multimodal AI system for generating videos. Available online: https://research.runwayml.com/gen2 (accessed on 15 January 2025).
- Chase, H. LangChain: Building applications with LLMs through composability. Available online: https://python.langchain.com/ (accessed on 15 January 2025).
- Schick, T.; Dwivedi-Yu, J.; Dessì, R.; Raileanu, R.; Lomeli, M.; Zettlemoyer, L.; Cancedda, N.; Scialom, T. Toolformer: Language models can teach themselves to use tools. Adv. Neural Inf. Process. Syst. 2024, 36. [Google Scholar]
- Qin, Y.; et al. ToolLLM: Facilitating Large Language Models to Master 16000+ Real-world APIs. arXiv 2023, arXiv:2307.16789. [Google Scholar]
- Hsu, Q.; et al. ToolGen: Unified Tool Retrieval and Calling via Generative Language Models. arXiv 2023, arXiv:2310.05155. [Google Scholar]
- Software, Artifex. PyMuPDF: Python bindings for MuPDF. Available online: https://pymupdf.readthedocs.io/ (accessed on 15 January 2025).
- Markdown2 Contributors. Markdown2: A fast and complete implementation of Markdown in Python. Available online: https://github.com/trentm/python-markdown2 (accessed on 15 January 2025).
- Kozea. WeasyPrint: The Awesome Document Factory. Available online: https://weasyprint.org/ (accessed on 15 January 2025).
- Wei, J.; Wang, X.; Schuurmans, D.; Bosma, M.; Ichter, B.; Xia, F.; Chi, E.; Le, Q.; Zhou, D. Chain-of-thought prompting elicits reasoning in large language models. Adv. Neural Inf. Process. Syst. 2022, 35, 24824–24837. [Google Scholar] [CrossRef]
- White, J.; Fu, Q.; Hays, S.; Sandborn, M.; Olea, C.; Gilbert, H.; Elnashar, A.; Spencer-Smith, J.; Schmidt, D.C. A prompt pattern catalog to enhance prompt engineering with ChatGPT. arXiv 2023, arXiv:2302.11382. [Google Scholar]
- Casanueva, I.; Temčinas, T.; Gerz, D.; Henderson, M.; Vulić, I. Efficient intent detection with dual sentence encoders. In Proceedings of the 2nd Workshop on Natural Language Processing for Conversational AI; Association for Computational Linguistics: Online, 2020; pp. 38–45. [Google Scholar]
- Li, Y.; Su, H.; Shen, X.; Li, W.; Cao, Z.; Niu, S. DailyDialog: A manually labelled multi-turn dialogue dataset. In Proceedings of the Eighth International Joint Conference on Natural Language Processing; Asian Federation of Natural Language Processing: Taipei, Taiwan, 2020; pp. 986–995. [Google Scholar]
- Young, S.; Gašić, M.; Thomson, B.; Williams, J.D. POMDP-based statistical spoken dialog systems: A review. Proc. IEEE 2013, 101, 1160–1179. [Google Scholar] [CrossRef]
- Zhang, C.; Zhang, C.; Li, C.; Qiao, Y.; Zheng, S.; Dam, S.K.; Zhang, M.; Kim, J.U.; Kim, S.T.; Choi, J.; et al. One small step for generative AI, one giant leap for AGI: A complete survey on ChatGPT in AIGC era. arXiv 2023, arXiv:2304.06488. [Google Scholar]
- Fielding, R.T.; Taylor, R.N. Architectural styles and the design of network-based software architectures. Doctoral Dissertation, University of California, Irvine, CA, USA, 2000. [Google Scholar]
- Walsh, N.; Muellner, L. DocBook: The Definitive Guide; O’Reilly Media: Sebastopol, CA, USA, 2010. [Google Scholar]
- Law, R.; Leung, D.; Au, N.; Lee, H.A. Progress and development of information technology in the hospitality industry: Evidence from Cornell Hospitality Quarterly. Cornell Hosp. Q. 2018, 54, 10–24. [Google Scholar]
- Sismanidou, A.; Palacios, M.; Tafur, J. Progress in airline distribution systems: The threat of new entrants to incumbent players. J. Ind. Eng. Manag. 2009, 2, 251–272. [Google Scholar] [CrossRef]
- Venkatesh, V.; Morris, M.G.; Davis, G.B.; Davis, F.D. User acceptance of information technology: Toward a unified view. MIS Q. 2003, 27, 425–478. [Google Scholar] [CrossRef]



| Test ID | Description | Success Criteria |
|---|---|---|
| TP-AVI-1 | Intent recognition: Identification of basic travel actions (add flight, hotel, activity, car). | Correctly identify intent from varied phrasings and trigger the corresponding tool (≥90% accuracy). |
| TP-AVI-2 | Image extraction & addition: Processing flight search screenshots (PNG/JPG) to add a new component. | Accurately extract fields (origin, destination, price, airline) and generate the corresponding UI card in the dashboard. |
| TP-AVI-3 | PDF extraction & addition: Processing hotel reservation documents (PDF) to add a new component. | Accurately extract structured data (hotel name, dates, amenities) and populate the itinerary state. |
| TP-AVI-4 | Component modification: Natural language requests to change fields, add details, or delete components. | Correctly update the specific component ID in the state (e.g., changing car model) or remove it entirely without affecting others. |
| TP-AVI-5 | Video generation & visualization: Creation of the promotional video and frontend rendering. | Successfully generate the MP4 file via the hybrid pipeline and render the video player directly within the conversational interface. |
| TP-AVI-6 | PDF itinerary delivery: Generation of the final branded document. | Produce a correctly formatted, downloadable PDF file containing all itinerary details and corporate branding. |
| TP-AVI-7 | User data collection: Gathering client details for delivery. | Correctly extract and store user contact information (name, email) for the simulated dispatch of the itinerary. |
| Action Category | Test Inputs | Successful Invocations | Accuracy (%) |
|---|---|---|---|
| Add Flight | 15 | 14 | 93.3 |
| Add Hotel | 10 | 10 | 100.0 |
| Add Activity | 10 | 9 | 90.0 |
| Add Rental Car | 5 | 4 | 80.0 |
| Generate Itinerary | 10 | 9 | 90.0 |
| Total | 50 | 46 | 92.0 |
| Test Case | Success Criterion | Achieved Result | Status |
|---|---|---|---|
| Intent Recognition | ≥90% accuracy | 92.0% | Pass |
| Image Extraction | Field accuracy | 89.4% | Pass |
| PDF Extraction | Field accuracy | 96.7% | Pass |
| Video Generation | Latency ≤3 min | 4.2 min | Deviation |
| PDF Delivery | 100% valid file | 100% | Pass |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).