How to ask an AI agent to generate a day’s content and import it
Ask an AI agent for one day of the guide in the panel’s format and import it into the open day without touching the rest of the guide.
If you use an AI agent (ChatGPT, Antigravity, Claude…) to write a day, you do not have to copy its text field by field: ask it to write in a specific format and import it into the day you have open. The rest of the guide is not touched.
Import a day
- On the Itinerary tab, open the day you want to generate.
- Press Import a day.
- Choose the file (
.mdxor.json) or paste the text into the box. - Look at the summary: title, place, how many rows the timetable has, how many carry their own detail, how many day notes there are, and any warnings.
- Press Put it in the day.
The import replaces the open day, whatever number the file says (if it differs, you are told). If the day already had content, the box says so first. The audio and map the day already had are kept.
Nothing is saved yet: the day is left as an unsaved change. Check it and press Save. When you save, the panel keeps a version of the guide first, so you can always go back with Versions.
Import an alternative plan
An alternative plan has the same content as a day, so it is imported the same way: in the Alternative plans tab, open the plan (or add one and choose its type), press Import a plan and paste the file. It replaces the open plan and keeps its type, audio and map. The day number the file gives does not count: a plan has none.
To ask for one, use the same text below and change its first line, for example: “Write a rain plan for [DESTINATION]: what to do indoors if it rains all day”.
Export a day to ask for changes
To improve a day you have already written, the agent does not have to start from scratch: give it the day as it is.
- Open the day (or the plan) and press Export the day (Export the plan in the Alternative plans tab).
- Press Copy (or Download the .mdx file). The text is the day as you have it in the editor, unsaved changes included.
- Paste it into the agent and say what you want changed, for example: “Here is a day of my guide. Add an afternoon snack stop and shorten the introduction. Reply ONLY with the complete file, in the same format.”
- Paste the answer into Import a day, as above.
The file carries text only. Images and files you had already uploaded appear as https links and come back as they were when you import it; the audio and the map are not included, and the day keeps them.
What is not imported
- Images, maps, audio and documents. A day file carries text only. If the text mentions some (for example
), the summary warns you and they will not show until you upload them from the editor. Anhttpslink does work. - Other parts of the guide: one day (or one plan) at a time. The questions, costs and food have imports of their own.
Each activity’s detail and the day notes
A day has two places for longer text:
- An activity’s detail goes in its timetable row (in the editor, the row’s “Detail”). In the guide it shows under the row, folded until the reader opens it: where to eat, how to get there, the tickets…
- The day notes are what applies to the whole day rather than one activity: tips, what to bring, a plan B…
The file writes it all as sections under “📂 Detall del dia”, and the header (detailLinks) says which section is the detail of which row. On import, each of those sections moves into its row (the section’s title is not kept: the row already says it) and the ones left are the day notes. The text below already asks the agent to do it this way.
How to tell an AI agent to generate the day’s content
Copy this text, change what is in square brackets and add what you want it to write. Then paste the answer (the file only) into Import a day.
Write day [NUMBER] of my travel guide to [DESTINATION], in [LANGUAGE].
What I want to do: [WHAT YOU LIKE, TIMES, CHILDREN, PACE…].
Reply ONLY with the content of an .mdx file, with no explanations or code blocks around it, with EXACTLY this structure:
- A header between --- with dayNumber, title, location, emoji, description, tags (a list in square brackets), audioScript (the script of the audio guide, about 60 seconds, plain text on a single line between double quotes, with \n for line breaks; only the names that need it between [[it:…]], at most 6 markers) and geolocations (an object with the name of each place in the table and its "lat,lon" coordinates).
- A heading "## emoji Dia N: title" and an introduction paragraph.
- "### ⏱️ Cop d'ull ràpid al dia" with a table of four columns: start time in bold, activity (with an emoji), end time in bold and place. The place name must match the one in geolocations.
- "### 📂 Detall del dia" with sections <details><summary>emoji title</summary> text </details>: first one for each activity in the table that needs explaining (where to eat, how to get there, the tickets…), then the notes for the whole day (tips, what to bring…).
- In the header, detailLinks says which section explains which activity: an object that gives, for each row that has its own section (its position in the table, starting at 0), the number of that section (starting at 0). The sections it does not name are the day notes.
Do not add images, maps or links to files. Coordinates must be real; if you do not know them, leave the place out of geolocations.
This is an example of the format:
---
dayNumber: 2
title: "Colosseu i Fòrum"
location: "Roma, Itàlia"
emoji: "🏛️"
description: "Un matí d’història antiga i una tarda tranquil·la entre plaques i fonts."
tags: ["Roma", "història"]
audioScript: "Dia 2. Colosseu i Fòrum.\n\nAvui toca l’antiga Roma. Visitem el [[it:Colosseo]] i passegem pel [[it:Foro Romano]]. [[pause:600ms]]\n\nDinem a la [[it:Trattoria da Enzo]]. Bon dia!"
geolocations: {
"Colosseu": "41.8902,12.4922",
"Trattoria da Enzo": "41.8886,12.4698"
}
detailLinks: {"0":0,"1":1}
---
## 🏛️ Dia 2: Colosseu i Fòrum
Avui toca l’antiga Roma. Sortim d’hora per evitar la cua i deixem la tarda lliure.
### ⏱️ Cop d'ull ràpid al dia
| Hora | Activitat / Logística | Hora | Lloc |
|------|:----------------------|:-----|------|
| **09:00** | 🏛️ Visita al Colosseu | **11:00** | Colosseu |
| **13:00** | 🍝 Dinar | **14:30** | Trattoria da Enzo |
### 📂 Detall del dia
<details>
<summary>🎟️ Entrades del Colosseu</summary>
Compreu l’entrada en línia amb hora: inclou el Fòrum i el Palatí el mateix dia.
</details>
<details>
<summary>🍝 On dinar</summary>
Demaneu els *carciofi alla giudia* si és temporada. Reserveu amb antelació.
</details>
<details>
<summary>👟 Consells</summary>
Calçat còmode: els carrers són de llambordes.
</details>
Before saving the day, check the times and the coordinates: an AI agent can be wrong.
Possible errors
- “There is nothing to import” or “no day content was found”: what was pasted is not the file (maybe with an explanation in front). Paste only from the first
---line. - Warnings in the summary: the import did what it could, but something in the text does not follow the format; the note says what.
- No times in the timetable: the table rows need the time in bold (
**09:00**). - When you save, if the server does not accept the day (too many sections, text too long…) the editor takes you there and says why.
See also The audio guide: script, markers and voice and Days and the timetable.