# Using IA/ChatGPT to write intervals.icu workouts

**URL:** <https://forum.intervals.icu/t/using-ia-chatgpt-to-write-intervals-icu-workouts/85094>\
**Category:** Uncategorized\
**Created:** [27 December 2024 13:01 UTC](https://forum.intervals.icu/t/using-ia-chatgpt-to-write-intervals-icu-workouts/85094 "2024-12-27T13:01:28Z")\
**Posts on this page:** 1\
**Showing post:** 28

<div class="post-metadata">

**Author:** ![Filippo](https://forum.intervals.icu/user_avatar/forum.intervals.icu/filippo/32/30791_2.png) [@Filippo](https://forum.intervals.icu/u/Filippo)\
**Post date:** [14 February 2025 11:21 UTC](https://forum.intervals.icu/t/using-ia-chatgpt-to-write-intervals-icu-workouts/85094/28 "2025-02-14T11:21:41Z")

</div>

> [@gurling](#):
>
> This is a great tool - thanks! I’ve created a training plan and saved it as a JSON format but I’m struggling to find how to import the training plan into my Intervals.icu library. Could you possibly help instruct me how?

> [@ohmax](#):
>
> Interested about the same. I’d like to use GPT to create a macro cycle of running workouts for example a block of 3 weeks and then import it into Intervals. If someone could make a short video to go through the steps this would be helpful.

to send the “AI plan” to your **calendar** :

1. make sure the json is correct, I had to ask AI to fix it a couple of times.  
sould be an array similar to this:

```auto
[
       {
           "start_date_local": "2025-03-04T09:00:00",
           "category": "WORKOUT",
           "type": "Ride",
           "name": "Sweet Spot Intervals",
           "description": "Warmup\n- 10m 50%-65% 90rpm\n\nMain Set\n- 3x 12m 88%-92% 85rpm\n- 5m Z2 85rpm\n\nCooldown\n- 10m 50%-40% 80rpm"
       },
               {
           "start_date_local": "2025-03-07T09:00:00",
           "category": "WORKOUT",
           "type": "Ride",
           "name": "Recovery Spin",
           "description": "Warmup\n- 10m ramp 50%-65% 85rpm\n\nMain Set\n- 45m Z1-Z2 90rpm\n\nCooldown\n- 10m 50%-40% 80rpm"
       },
       {
           "start_date_local": "2025-03-09T09:00:00",
           "category": "WORKOUT",
           "type": "Ride",
           "name": "Endurance Ride",
           "description": "Warmup\n- 10m ramp 50%-70% 85rpm\n\nMain Set\n- 1.5h Z2 90rpm\n\nCooldown\n- 10m 50%-40% 80rpm"
       }
   ]

```

1. download and install [Postman](https://www.postman.com/)
2. left panel, “My Workspace”, create a new Collection (+ button)
3. select your new collection and in the authorization tab select “Basic auth”, then insert “API\_KEY” as username and your api key (found in your intervals.icu setting page)  
 ![Screenshot 2025-02-14 alle 12.12.13](https://forum.intervals.icu/uploads/default/original/3X/4/4/4460664d87e6588e39ee71bc6f0de086504f401c.png)
4. in this newly create collection add a new Request  
URL: [https://intervals.icu/api/v1/athlete/0/events/bulk](https://intervals.icu/api/v1/athlete/0/events/bulk)  
change type (left to URL) to POST  
in the “Body” section select Raw and paste your json  
 ![Screenshot 2025-02-14 alle 12.16.39](https://forum.intervals.icu/uploads/default/original/3X/7/0/703adc7f31efd3824f68ddd65c1eacf0529d6723.png)
5. Click “Send”

do a test with couple of workouts otherwise if something is wrong manually delete all the calendar entries could take some times

If you want to do more things or need more explanations with API and to check for JSON format:

- [Uploading planned workouts to Intervals.icu](https://forum.intervals.icu/t/uploading-planned-workouts-to-intervals-icu/63624)
- [Intervals.icu API docs](https://intervals.icu/api-docs.html#post-/api/v1/athlete/-id-/events/bulk)
- [Intervals.icu API Integration Cookbook](https://forum.intervals.icu/t/intervals-icu-api-integration-cookbook/80090)

---

_[View the full topic](https://forum.intervals.icu/t/using-ia-chatgpt-to-write-intervals-icu-workouts/85094)._
