# Route Editing & Itinerary Generation

After completing the gap analysis, the system enters the "High-Level Route Planning" phase. This is your primary and most important point of manual intervention before generating the final detailed itinerary.

## 1. Route Editor

On this screen, you will see the initial "daily macro-directions and target cities" planned by the AI based on the requirements.

* **Drag & Drop**: If you are unsatisfied with the AI's order, you can grab the handle on the left side of a node and drag it up or down to change the day sequence.
* **Check Actual Dates**: Beneath each day node (e.g., Day 1), the actual calendar date (e.g., 2026-05-01) is displayed to help you cross-reference flights or hotel bookings.
* **Add Nodes**: If the client wants to stay an extra day, click "Add New Route" (加入新路線) at the bottom to manually input a city name and brief description.
* **Delete Nodes**: Hover over a node and click the trash can icon that appears on the right to delete it.

## 2. Generate Detailed Itinerary

Once you are satisfied with the macro route, click **"Confirm and Generate Detailed Itinerary"** (確認並生成詳細行程) at the bottom. This is a time-consuming AI operation (usually taking 10-30 seconds). A full-screen loading overlay will appear; please be patient.

## 3. Itinerary Editor

Upon completion, you will enter the final itinerary editor screen. This lists specific activities and meals for every morning, afternoon, and evening.

* **Left Editing Area**:
  * Click any activity card to directly modify the title, time, or description.
  * Click the "+" button at the top right of each day to add extra activities.
* **Right Recommendation Sheet**:
  * If you feel an AI-scheduled spot isn't good enough, open the right panel. The system will list locations from your "Favorites" that match the city.
  * You can directly **Drag and Drop** items from the right panel onto the left timeline to replace or add activities!
* **Generate Presentation Prompt**:
  * Click "Generate Presentation Prompt" (產生簡報提示詞) at the top. The system will extract key landmarks from the current itinerary and write a prompt you can copy-paste directly into Gemini Canvas or Gamma.app to generate a beautiful proposal presentation instantly.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://letztek.gitbook.io/travelagent/docs/en/manual/route-and-itinerary.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
