Make Interval Timer Programs with ChatGPT or Claude
How to let ChatGPT, Claude or another AI assistant build interval timer programs: copy a program as text, use the prompt below, then paste the result in.
By Simon Schoen ·
You can have ChatGPT, Claude or any other AI assistant build interval timer programs for Intervals. In the app, copy one of your programs as text (⋯ → Share → Copy as Text), paste it into the chat with a description of the program you want, then copy the assistant’s answer and import it under Settings → Paste Program. Below is an example program, and further down you’ll find the same program as text.
Why programs as text
Every program in Intervals can be shared as a short code or a QR code, which is what the guides on this site use. Those codes are compressed, so they’re great for sharing but unreadable for people and for AI tools. That’s why the app can also copy a program as plain text: readable JSON with each block’s name, length and colour.
That text format is also what makes AI tools useful here. Describing a workout in a sentence (“a 30-minute kettlebell session with a ladder in the middle”) and getting a finished program back is much faster than tapping in thirty blocks by hand, and it’s handy for changing an existing program too (“make every rest 10 seconds longer”).
Step by step
- Copy a program as text. On the home screen, tap ⋯ on any program, then Share → Copy as Text. It doesn’t matter which program: it shows the assistant the format.
- Paste it into the chat with your request. The prompt below works well.
- Copy the answer. Use the copy button on the code block in the reply, so you get only the program and none of the text around it.
- Import it. In Intervals, go to Settings → Paste Program. The program appears on the home screen, where you can adjust anything in the builder.
Here’s a prompt to start from. Replace the last line with your own program:
This is an interval timer program from the Intervals app, as JSON.
Make a new program in exactly the same format. Rules:
- Durations are in seconds (durationSeconds).
- Use only the colorValue numbers that appear in my example.
- Groups can contain blocks, but not other groups.
- Give blocks short names I could say out loud, like "Squats" or "Rest".
- Reply with only the JSON in one code block, no comments.
[paste your copied program here]
New program: a 25-minute HIIT session for beginners, 40/20,
five exercises, no jumping, with a warm-up and cool-down. What the format looks like
This is the example program from the top of this page as text. You can paste it into Intervals as it is, or use it as the example in your prompt if you don’t have a program in the app yet:
{
"version": 2,
"programs": [
{
"name": "Desk Stretch Break",
"programRepeatCount": 1,
"items": [
{
"type": "block",
"block": { "name": "Neck rolls", "durationSeconds": 45, "colorValue": 4283354564 }
},
{
"type": "block",
"block": { "name": "Shoulder circles", "durationSeconds": 45, "colorValue": 4283354564 }
},
{
"type": "group",
"name": "Stretches",
"colorValue": 4286345215,
"repeatCount": 2,
"blocks": [
{ "name": "Hip flexor stretch", "durationSeconds": 40, "colorValue": 4286345215 },
{ "name": "Chest stretch", "durationSeconds": 30, "colorValue": 4284190191 }
]
},
{
"type": "block",
"block": { "name": "Forward fold", "durationSeconds": 60, "colorValue": 4281257073 }
}
]
}
]
} A program is a list of items. Each item is either a single block or a group of blocks with a repeat count. The colour numbers are the app’s colours written as numbers: in this example, teal, purple, blue and green. Copying them from an existing program is easier than working them out.
Tips for better programs
Describe the session, not the blocks. “A 25-minute HIIT session for beginners, 40/20, five exercises, no jumping” gives the assistant enough to make sensible choices. You can always ask for changes afterwards.
Check the total time. AI assistants are good at structure and not always at arithmetic. The builder shows the total length, so check it before you start, and ask for a fix if it’s off.
Use colours with meaning. Ask for one colour for work and another for rest, as in the Tabata timer program. It makes the session much easier to follow from a distance.
Edit existing programs the same way. Copy a program as text and ask for a variation: “make a version with 30-second rests”, “turn this into three rounds”, “rename the blocks in German”. Then paste the result back in as a new program.
Check the advice, not just the format. An assistant can produce a program that imports fine but doesn’t make sense for you, like too many hard intervals for a first session. For workouts, the interval training overview explains the common formats and what’s typical for each.
When the import fails
If Paste Program says it can’t find a program, the copied text usually isn’t pure JSON. The most common reasons:
- Text around the code. Some answers include a sentence before or after the code. Copy only the code block.
- Comments in the JSON. Lines starting with
//aren’t valid JSON. Ask the assistant to remove them. - A different format. If the assistant invented its own structure, paste your example again and ask it to follow it exactly.
- The free limit. The app is free for up to three programs. If you already have that many, the import stops with a message. Delete one or upgrade to Pro.
In Intervals
Imported programs work like any other: they appear on the home screen, and you can rename, reorder and change blocks in the builder. Programs you made with AI can be shared like any other program too, as a code or a QR code. The Intervals app page has the download links.
Related guides
- Minimalist Timer Apps: What Makes a Timer Calm to Use What a minimalist timer app should show, what it should leave out, and how to tell a calm, well-designed timer from a cluttered one, from the developer of Intervals.
- Simple Interval Timer App Without Ads or an Account What a simple interval timer needs, why ads and accounts get in the way, how timer apps are priced, and what to check before you pick one for yourself.
- Interval Training Timers: Every Format Explained Tabata, HIIT, EMOM, AMRAP, circuits, the Norwegian 4x4 and interval walking compared: how each clock works, who it suits, and ready-made timer programs.
- Study Timers: Pomodoro, 50/10, 52/17 and 90-Minute Blocks How the main study timer methods work, which kind of task each one suits, and ready-made 50/10, 52/17 and 90-minute programs you can paste into a timer.