> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dappier.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 🧱 Build a Dynamic Travel Planner Using Replit and Dappier Real-Time Data Model

## **Introduction**

In this step-by-step guide, we will walk you through building a **Dynamic Travel Planner** using **Replit** and **Dappier's Real-Time Data Model API**. This app will generate a **customized travel itinerary** based on the **user's chosen destination** and **number of days**, providing **real-time weather updates, hotel deals, and local attractions**. By leveraging **OpenAI's LLMs** and **Dappier’s enriched real-time data**, users can generate **AI-powered travel plans** within minutes.

***

## **Dappier Python Real Time Data**

This template demonstrates how to Build a Dynamic Travel Planner Using Replit and Dappier Real-Time Data Model. You can check out the app on Replit here:

[Check out the app on Replit](https://replit.com/@dappier/Dappier-Dynamic-Travel-Planner)

## Watch the Video Guide

If you prefer a visual walkthrough, check out the accompanying video guide below:

<iframe width="560" height="315" src="https://www.youtube.com/embed/vxtzI9lu0h4?si=EfRXoZjZa3E0aIkN" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen />

***

## **Dappier Real-Time Data Model API**

The **Dappier Real-Time Data Model API** enables applications to retrieve **verified and up-to-date** information from trusted sources across multiple domains, including **weather, finance, and news**. It allows seamless integration of real-time data into AI-powered applications.

### **Usage in Python**

The API can be used to fetch real-time data with a simple function call:

```python theme={null}
response = app.search_real_time_data(
   query="What is the stock price of Apple?",
   ai_model_id="am_01j06ytn18ejftedz6dyhz2b15"
)
```

### **Parameters**

* **query (str)**: The user-provided search query. Example queries include:

  * `"How is the weather today in Austin, TX?"`
  * `"What is the latest news for Meta?"`
  * `"What is the stock price for AAPL?"`

* **ai\_model\_id (str)**: The AI model ID to use for the query.
  * AI model IDs always start with the prefix `"am_"`.
  * Multiple AI model IDs are available at the **Dappier Marketplace**.

In our **Dynamic Travel Planner**, we will use this API to fetch **weather updates and hotel deals** dynamically.

***

## **Prerequisites**

Before you begin, ensure you have:

* A **Dappier account** ([Sign up here](https://platform.dappier.com))
* An **OpenAI account** ([Sign up here](https://platform.openai.com))
* A **Replit account** ([Sign up here](https://replit.com))

***

## **Step 1: Fork the Dappier Python Real-Time Data App**

1. Visit the **[Dappier Replit Integration Documentation](https://docs.dappier.com/integrations/replit-integration)**.
2. Click on the **Dappier Python Real-Time Data** link inside the page to open the template in **Replit**.
3. **Fork** the app to create your own version.
4. Rename the app to **Dappier Dynamic Travel Planner**.
5. Add a detailed description such as:
   > "A Dynamic Travel Planner that generates personalized itineraries based on user-inputted destinations and trip durations. It provides real-time weather updates, hotel deals, and attraction recommendations, powered by **Dappier** and **OpenAI**."

***

## **Step 2: Set Up API Keys**

### **1. Add the Dappier API Key**

1. Go to [Dappier API Keys](https://platform.dappier.com/profile/api-keys).
2. Generate an API key.
3. In **Replit**, open the **Secrets Manager**.
4. Add a new secret:
   * **Key:** `DAPPIER_API_KEY`
   * **Value:** *(Paste your Dappier API Key here)*
5. Click **Save**.

### **2. Add the OpenAI API Key**

1. Go to [OpenAI API Keys](https://platform.openai.com/api-keys).
2. Generate an API key.
3. In **Replit**, open the **Secrets Manager**.
4. Add a new secret:
   * **Key:** `OPENAI_API_KEY`
   * **Value:** *(Paste your OpenAI API Key here)*
5. Click **Save**.

***

## **Step 3: Run the App**

1. Click **"Run"** in Replit to check if everything is working correctly.
2. The system will automatically install dependencies and generate necessary code for you.
3. Accept any suggested changes by Replit.

***

## **Step 4: Generate the Travel Planner Using Replit’s AI Assistant**

Instead of writing the code manually, **Replit’s AI Assistant** can generate the entire app for you by following these simple instructions:

1. Open the **Assistants App** in Replit.
2. Enter the following instructions:
   > **"Create a travel planner app that asks the user for their destination city and the number of days for the trip. Fetch real-time weather updates and hotel deals for the given destination using Dappier's Real-Time Data API. Use OpenAI to generate a structured, well-balanced itinerary that includes local attractions, sightseeing options, and relaxation spots. The app should be interactive and provide users with dynamic travel recommendations."**
3. Replit’s AI will automatically generate the code for your app.
4. Accept the code suggestions and let Replit set up everything for you.
5. Run the app to verify it works as expected.

By using **Replit’s AI Assistant**, you can build your **Dynamic Travel Planner** **without writing a single line of code manually**.

***

## **Step 5: Verify and Deploy**

1. Run the app again to verify that the itinerary is generated correctly.
2. If everything looks good, **deploy the app**.

***

## **Conclusion**

Congratulations! 🎉 You have successfully built a **Dynamic Travel Planner** using **Replit’s AI Assistant** and **Dappier’s Real-Time Data Model API**. Your app can now generate **customized itineraries** based on **real-time weather updates and hotel deals**, ensuring users get the most relevant travel information instantly.

With **Dappier and Replit**, you can build **any real-life use case** within minutes using **low-code development**. Whether it's **finance dashboards**, **news aggregators**, or **AI-powered assistants**, the possibilities are endless.

🚀 **Get started today!**
