- Dappier: A platform that connects LLMs and agentic AI agents to real-time, rights-cleared data from trusted sources. It delivers verified, prompt-ready information across domains like web search, finance, news, and more.
- LlamaIndex: A data framework that allows seamless integration of external tools with LLMs. It enables structured workflows for tool use, reasoning, and response generation.
- OpenAI: An advanced AI model provider used here to power the assistantβs reasoning, planning, and response generation.
Watch the Video Guide
If you prefer a visual walkthrough, check out the accompanying video guide below:Installation
To get started with the dynamic travel planner, install the required packages:Setup API Keys
To authenticate and use Dappier and OpenAI, youβll need valid API keys. You can generate one for free from your Dappier API dashboard.Python
Python
Dappier Real Time Search Tool
TheDappierRealTimeSearchToolSpec enables LLMs to access real-time data across the web, including the latest news, weather updates, and financial information. This tool is ideal for applications requiring up-to-date, context-rich data.
Initialize the Tool
To utilize the real-time search tool, initialize it as follows:Python
Real-Time Web Search
Retrieve current web content such as news or weather updates using thesearch_real_time_data method:
Python
Stock Market Data
Access up-to-date financial insights or company-specific news with thesearch_stock_market_data method:
Python
Build a Dynamic Travel Planner Agent
Now that your API keys are set and packages are installed, youβre ready to build the dynamic travel planner. Start by importing the required modules:Python
Python
Python
Python
Python
Python
Python
Conclusion
This notebook has guided you how to build a real-time, LLM-powered travel assistant by combining LlamaIndex with Dappier. It walks through creating a dynamic 2-day itinerary for New York City based on current news, weather conditions, and hotel availability. In this notebook, explored:- Dappier: A platform that connects LLMs and agentic AI agents to real-time, rights-cleared data from trusted sources. It delivers verified, prompt-ready information across domains like web search, finance, news, and more.
- LlamaIndex: A data framework that allows seamless integration of external tools with LLMs. It enables structured workflows for tool use, reasoning, and response generation.
- OpenAI: An advanced AI model provider used here to power the assistantβs reasoning, planning, and response generation.

