Plan your workouts with AI.
Copy our prompt into your favorite AI, answer a few questions, and get a full workout plan that you can drop into Treadmatic.
Heads upTreadmatic has no AI built in and doesn't connect to any AI. You copy the prompt, and you move the files yourself.
Four steps to a plan
Copy the prompt
Tap Copy prompt below. It explains Treadmatic's file formats to the AI.
Paste it and fill in your goal
Paste it into your favorite AI. Fill in your goal, current fitness, and running days.
Save the files in one folder
Keep
plan.jsonand the workout files together, with the folder layout the AI used.Put the folder in Treadmatic
Save it to your linked iCloud Drive folder or one of the other ways in. The plan shows up in Today and Plan.
What you get back
A plan file, plan.json, that lists each training day, plus the workout files it points to. The AI sorts the workouts into month folders and names each file after its date, week and session.
Copy, paste, fill in
Works as plain text in any chat. Fill in the "About me" lines, or let the AI ask you.
You are helping me build a treadmill training plan for Treadmatic, an iPhone app. Treadmatic reads a plan file (plan.json) and one workout file per training day (QZ XML), then sets my treadmill's speed and incline for every step.
Before you write any files, ask me for anything below that I left blank. Then show me a short week-by-week summary and wait for my OK.
ABOUT ME
- Goal (a race and target time, a distance, or "get fitter"):
- Race or goal date:
- First day of the plan:
- Current fitness (weekly distance, longest recent run, a recent race time):
- Days per week I can run, and which days:
- Anything else (injuries, my easy pace, longest session I have time for):
- The iCloud Drive folder I linked in Treadmatic (optional, its name or path; leave empty if I don't have one yet):
UNITS
- Talk to me in the units I already use: km or miles, km/h or mph, pace per km or per mile. If you already know which I use, don't ask. Otherwise, ask me before anything else.
- The files are always metric, whatever I use: speed in km/h, distance in km, incline in %, time as hh:mm:ss. Convert my numbers when you write the files.
WHAT TO MAKE
- One plan file named plan.json.
- One workout file per training day, ending in .xml. Every training day gets its own file, even if two days have the same workout.
- Everything goes in one folder. Put workout files in month subfolders (for example 2026-10/) or next to plan.json.
PLAN FILE (plan.json)
Valid JSON. Put "format" first. Example:
{
"format": "treadmatic-plan",
"version": 1,
"name": "Spring 10k",
"entries": [
{ "date": "2026-10-13", "workout": "2026-10/2026-10-13_Tue_W01_Easy_06k.xml" },
{ "date": "2026-10-15", "workout": "2026-10/2026-10-15_Thu_W01_Easy_05k_4Strides.xml" }
]
}
Rules:
- "format" is always "treadmatic-plan" and "version" is always 1. "name" is the plan's name.
- "date" is an absolute calendar date, YYYY-MM-DD. Never "week 3, day 2".
- "workout" is the path to that day's workout file, relative to the folder plan.json is in. Use forward slashes. No leading "/", no "~", no "..", no backslashes.
- One entry per training day. Rest days get no entry.
- Every path must match a file you give me exactly, letter for letter.
WORKOUT FILE (QZ XML)
The file starts with <rows> and ends with </rows>. Each <row> is one step. Example:
<rows>
<row duration="00:02:00" speed="7.5" inclination="1"/>
<row duration="00:27:26" speed="8.2" inclination="1"/>
<repeat times="4">
<row duration="00:00:25" speed="11.5" inclination="1"/>
<row duration="00:01:00" speed="5.5" inclination="1"/>
</repeat>
<row duration="00:05:00" speed="7.5" inclination="1"/>
</rows>
Rules:
- Each row has exactly one of duration or distance, never both. duration is hh:mm:ss. distance is in km, for example distance="0.8" for 800 m.
- Each row has speed in km/h, above 0.
- inclination is the incline in %. Leave it out for a flat step.
- Use only these attributes: duration or distance, speed, inclination.
- <repeat times="N"> runs the rows inside it N times. Only one level: never put a <repeat> inside another <repeat>.
- Put nothing before <rows> and nothing after </rows>.
- Start every workout with an easy warm-up step and end it with an easy cool-down step.
FILE NAMES
Name workout files YYYY-MM-DD_Ddd_WNN_Description.xml, for example 2026-10-13_Tue_W01_Easy_06k.xml, where Ddd is the weekday and WNN the plan week. Treadmatic shows the part after the week as the workout's name ("Easy 06k"). Use only letters, digits and underscores in the description.
HOW TO GIVE ME THE FILES
- Best: if you can write files on my computer (for example you run on my Mac with file access), save the plan folder straight into the iCloud Drive folder I linked in Treadmatic. On a Mac, iCloud Drive is at ~/Library/Mobile Documents/com~apple~CloudDocs/. If I didn't name a folder, create one called Treadmatic at the top of iCloud Drive (or use it if it already exists) and save the plan folder inside it. Tell me where you saved it. iCloud then syncs it to my iPhone. If you created the folder, tell me to link it once: in Treadmatic, Settings › Link a folder…, then pick iCloud Drive › Treadmatic.
- Otherwise, if you can create files, give me one zip file (or a downloadable folder) with plan.json and the workout files in their folders.
- If you can't, put each file in its own code block, with its full path (for example 2026-10/2026-10-13_Tue_W01_Easy_06k.xml) on the line just above the block.
- If the plan is too long for one reply, send a few weeks at a time and send the complete plan.json last.
- When in doubt about my fitness, start easier rather than harder.
Four ways in
A linked iCloud Drive folder (easiest)Make a folder in iCloud Drive (an AI that can write files on your Mac makes one called Treadmatic for you), then in Treadmatic go to Settings › Link a folder… and pick it. Save the AI's files there from your Mac or your iPhone; iCloud syncs them and Treadmatic picks them up the next time you open it.
Treadmatic's folder in FilesIn the Files app, open On My iPhone › Treadmatic and move the plan folder in. Keep plan.json and the month folders together.
The + button in the LibraryPick the plan folder (or single files) and Treadmatic copies it into its own folder.
Open in TreadmaticFrom the share sheet, for one workout file at a time. A plan needs its whole folder, so use one of the other ways for that.
Changed your mind? Ask the AI for new files and replace the old ones in the same folder. The Library shows "name changed — Update / Ignore"; Update applies to future runs only, and your past runs stay as they were.
A few tips
Check the speeds firstOpen a few workouts in Treadmatic and read the speeds and inclines. If they don't suit you, ask the AI to change them before you run.
Start conservativelyThe first weeks should feel easy. You can always ask for more later.
Regenerate a week that feels wrongAsk the AI to redo that week and replace those files. Treadmatic notices changed files and offers to update them in the Library.
The console and safety key come firstAn AI can write a bad workout. Keep the safety key clipped on and use the console to slow down or stop at any time. How Treadmatic handles safety