Skip to content

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.

InputTypeDescription
titlestringRequired. What the session is called, such as Push day or Legs. Up to 200 characters.
startsAtdate-timeRequired. When it started, or for a plan when it will, with its UTC offset.
timezonestringRequired. The IANA timezone where the workout is done, such as America/New_York. Up to 100 characters.
exercisesarrayRequired. The exercises in the order they are done. 1 to 100 items.
statestringlogged for a workout done; planned only for a plan the person asked to save. One of planned or logged. Defaults to logged.
notestring or nullFor 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.
endsAtdate-time or nullWhen it ended, with its UTC offset, so its duration reads; leave out when not known, and for a plan.
supersetsarrayNames and rests for supersets; one an exercise points at without listing it here is made with neither. Up to 50 items.
placestringWhere it is done: a place id from list_places; leave out when not known. Up to 100 characters.
requestIdstringA 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.
InputTypeDescription
exercisestringRequired. An exercise id exactly as list_exercises or save_exercise returned it. Up to 100 characters.
setsarrayRequired. 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.
keystringOnly 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.
restSecondsintegerRest after each set, 0 for none; left out, the app rests 90 seconds. From 0 to 3,600.
notestringA line about this exercise, such as a cue or how it felt. Up to 2,000 characters.
supersetstringThe id of the superset this exercise is done in turns with; list its exercises one after another. Up to 100 characters.
alternativesarrayUp 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.
InputTypeDescription
kindstringworking 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.
weightKgnumberWeight 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.
repsintegerRepetitions, for an exercise measured by weight or reps. From 0 to 10,000.
secondsintegerSeconds held, for an exercise measured by time. From 0 to 86,400.
rightintegerOnly 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.
donebooleanLeave 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.

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.

Last updated