Use this page
Log or plan workout
Logs a workout you did, or plans one for later.
WRITEcreate_workout
Your assistant uses it when you tell it what you trained, or ask it to plan a session. It finds each exercise with Search exercises first. A plan shows in your journal with its targets, ready to start in the app. Weights are saved in kilograms and shown in your own units.
Inputs
Section titled “Inputs”| Input | Type | Description |
|---|---|---|
title | string | Required. What the session is called, such as Push day or Legs. Up to 200 characters. |
startsAt | date-time | Required. When it started, or for a plan when it will, with its UTC offset. |
timezone | string | Required. The IANA timezone where the workout is done, such as America/New_York. Up to 100 characters. |
exercises | array | Required. The exercises in the order they are done. 1 to 100 items. |
state | string | logged for a workout done; planned only for a plan the person asked to save. One of planned or logged. Defaults to logged. |
note | string or null | For a plan, guidance to train by, shown while training and credited to you; for a logged workout, what the person wants kept about it. Up to 10,000 characters. |
endsAt | date-time or null | When it ended, with its UTC offset, so its duration reads; leave out when not known, and for a plan. |
supersets | array | Names and rests for supersets; one an exercise points at without listing it here is made with neither. Up to 50 items. |
place | string | Where it is done: a place id from list_places; leave out when not known. Up to 100 characters. |
requestId | string | A short id of your own for this save, different for every save, such as dinner-2026-11-22. Send the same one again when trying after an error or a timeout: Splot returns what it already saved rather than saving it twice. |
Exercises
Section titled “Exercises”| Input | Type | Description |
|---|---|---|
exercise | string | Required. An exercise id exactly as list_exercises or save_exercise returned it. Up to 100 characters. |
sets | array | Required. One per set, in order, with what was done or, in a plan, what to aim for. A plan's set without figures is filled from last time. 1 to 100 items. |
key | string | Only in update_workout: the key the workout returned for this exercise, so what was planned for it stays beside what was done. Up to 1,000 characters. |
restSeconds | integer | Rest after each set, 0 for none; left out, the app rests 90 seconds. From 0 to 3,600. |
note | string | A line about this exercise, such as a cue or how it felt. Up to 2,000 characters. |
superset | string | The id of the superset this exercise is done in turns with; list its exercises one after another. Up to 100 characters. |
alternatives | array | Up to five exercise ids the person could do instead, such as when a machine is taken, best first; get_exercise_relations suggests them for a place. 1 to 5 items. |
| Input | Type | Description |
|---|---|---|
kind | string | working unless the person says otherwise; a warmup counts for nothing, and a drop follows the set before it at once, lighter. One of working, warmup or drop. Defaults to working. |
weightKg | number | Weight in kilograms, whatever units the person uses; convert pounds first (1 lb = 0.4536 kg). On a body-weight exercise it is only weight added, or help taken off as a negative, such as -20 for a band. From -1,000 to 1,000. |
reps | integer | Repetitions, for an exercise measured by weight or reps. From 0 to 10,000. |
seconds | integer | Seconds held, for an exercise measured by time. From 0 to 86,400. |
right | integer | Only for an exercise done one side at a time: the right side's reps or seconds, with reps or seconds holding the left. From 0 to 86,400. |
done | boolean | Leave out: a logged workout's sets were done and a plan's are still to do. false in a logged workout keeps a planned set that was skipped. |
What your assistant is told
Section titled “What your assistant is told”The tool’s own instructions, word for word, as every assistant receives them.
Save a workout the person did, or a plan they asked to save: a session of exercises, each with its sets. Find every exercise with list_exercises first and pass its id. Use state logged with what was done, and planned only when the person asks for a plan to be saved, since a suggestion alone is not a request. To log a workout that was planned, use update_workout instead of creating another. Weights are always kilograms; read get_targets for the person's units and convert before saving and when talking. If the weight, reps or number of sets is unclear for a logged workout, ask one short question first, without asking again for what the person already said. Before planning, read list_workouts for what they did lately and list_routines for how they train, start from weights they have lifted, and never raise a weight they did not ask to raise. Splot holds strength training: weights, body-weight exercises and holds. A run, a ride or a match has no exercise yet, so say so rather than forcing it into one. Say the workout is saved only after this returns its id; give every save its own requestId, and after an error or timeout try again with the same one.
Use this page
Last updated
