Shows a training session, or a programme of several, as one card: each exercise with its drawing and what was prescribed, opening to its details when tapped. Exercises are named in English, in the call and on the card, and matched to the library's names, with word order, plurals, abbreviations and small misspellings understood; one that matches nothing is shown by its name with the closest exercises. Every field but an exercise's name is optional, so a plain list of exercises is a workout too. Returns the workout as text with each drawing's URL, and the exercises as JSON with their data and image URLs.
View input schema
{
"type": "object",
"properties": {
"title": {
"description": "The title on top.",
"type": "string",
"minLength": 1,
"maxLength": 120
},
"duration_min": {
"description": "The length in minutes.",
"type": "number",
"exclusiveMinimum": 0,
"maximum": 1440
},
"aim": {
"description": "What the workout is for.",
"type": "string",
"minLength": 1,
"maxLength": 300
},
"sessions": {
"minItems": 1,
"maxItems": 14,
"type": "array",
"items": {
"type": "object",
"properties": {
"title": {
"description": "The session's heading.",
"type": "string",
"minLength": 1,
"maxLength": 120
},
"duration_min": {
"description": "Its length in minutes.",
"type": "number",
"exclusiveMinimum": 0,
"maximum": 1440
},
"aim": {
"description": "What it is for.",
"type": "string",
"minLength": 1,
"maxLength": 300
},
"warm_up": {
"description": "The warm-up, in blocks.",
"maxItems": 20,
"type": "array",
"items": {
"type": "object",
"properties": {
"format": {
"description": "How the block is done; the card groups a superset's or a circuit's exercises.",
"type": "string",
"enum": [
"straight_sets",
"superset",
"circuit",
"intervals",
"continuous",
"drill",
"mobility"
]
},
"iterations": {
"description": "Rounds of the block.",
"type": "integer",
"minimum": 1,
"maximum": 100
},
"rest_sec": {
"description": "Rest between rounds, in seconds.",
"type": "integer",
"minimum": 0,
"maximum": 3600
},
"steps": {
"minItems": 1,
"maxItems": 30,
"type": "array",
"items": {
"type": "object",
"properties": {
"move": {
"type": "string",
"minLength": 1,
"maxLength": 120,
"description": "The exercise's name in English, shown as given."
},
"sets": {
"description": "Sets.",
"type": "integer",
"minimum": 1,
"maximum": 100
},
"reps": {
"description": "Reps per set: a number, or words such as 8 to 12 or 10 each side.",
"anyOf": [
{
"type": "integer",
"minimum": 1,
"maximum": 10000
},
{
"type": "string",
"minLength": 1,
"maxLength": 40
}
]
},
"time_sec": {
"description": "Time per set or interval, in seconds.",
"type": "number",
"exclusiveMinimum": 0,
"maximum": 86400
},
"distance_m": {
"description": "Distance per set or interval, in metres.",
"type": "number",
"exclusiveMinimum": 0,
"maximum": 1000000
},
"load": {
"description": "The load in the person's terms, such as 20 kg, 45 lb, bodyweight or a light band.",
"type": "string",
"minLength": 1,
"maxLength": 60
},
"rest_sec": {
"description": "Rest between sets, in seconds.",
"type": "integer",
"minimum": 0,
"maximum": 3600
},
"cue": {
"description": "The coach's words on this exercise, shown when it is opened.",
"type": "string",
"minLength": 1,
"maxLength": 300
}
},
"required": [
"move"
]
},
"description": "The block's exercises, in order."
}
},
"required": [
"steps"
]
}
},
"main": {
"description": "The main part, in blocks.",
"maxItems": 20,
"type": "array",
"items": {
"type": "object",
"properties": {
"format": {
"description": "How the block is done; the card groups a superset's or a circuit's exercises.",
"type": "string",
"enum": [
"straight_sets",
"superset",
"circuit",
"intervals",
"continuous",
"drill",
"mobility"
]
},
"iterations": {
"description": "Rounds of the block.",
"type": "integer",
"minimum": 1,
"maximum": 100
},
"rest_sec": {
"description": "Rest between rounds, in seconds.",
"type": "integer",
"minimum": 0,
"maximum": 3600
},
"steps": {
"minItems": 1,
"maxItems": 30,
"type": "array",
"items": {
"type": "object",
"properties": {
"move": {
"type": "string",
"minLength": 1,
"maxLength": 120,
"description": "The exercise's name in English, shown as given."
},
"sets": {
"description": "Sets.",
"type": "integer",
"minimum": 1,
"maximum": 100
},
"reps": {
"description": "Reps per set: a number, or words such as 8 to 12 or 10 each side.",
"anyOf": [
{
"type": "integer",
"minimum": 1,
"maximum": 10000
},
{
"type": "string",
"minLength": 1,
"maxLength": 40
}
]
},
"time_sec": {
"description": "Time per set or interval, in seconds.",
"type": "number",
"exclusiveMinimum": 0,
"maximum": 86400
},
"distance_m": {
"description": "Distance per set or interval, in metres.",
"type": "number",
"exclusiveMinimum": 0,
"maximum": 1000000
},
"load": {
"description": "The load in the person's terms, such as 20 kg, 45 lb, bodyweight or a light band.",
"type": "string",
"minLength": 1,
"maxLength": 60
},
"rest_sec": {
"description": "Rest between sets, in seconds.",
"type": "integer",
"minimum": 0,
"maximum": 3600
},
"cue": {
"description": "The coach's words on this exercise, shown when it is opened.",
"type": "string",
"minLength": 1,
"maxLength": 300
}
},
"required": [
"move"
]
},
"description": "The block's exercises, in order."
}
},
"required": [
"steps"
]
}
},
"cool_down": {
"description": "The cool-down, in blocks.",
"maxItems": 20,
"type": "array",
"items": {
"type": "object",
"properties": {
"format": {
"description": "How the block is done; the card groups a superset's or a circuit's exercises.",
"type": "string",
"enum": [
"straight_sets",
"superset",
"circuit",
"intervals",
"continuous",
"drill",
"mobility"
]
},
"iterations": {
"description": "Rounds of the block.",
"type": "integer",
"minimum": 1,
"maximum": 100
},
"rest_sec": {
"description": "Rest between rounds, in seconds.",
"type": "integer",
"minimum": 0,
"maximum": 3600
},
"steps": {
"minItems": 1,
"maxItems": 30,
"type": "array",
"items": {
"type": "object",
"properties": {
"move": {
"type": "string",
"minLength": 1,
"maxLength": 120,
"description": "The exercise's name in English, shown as given."
},
"sets": {
"description": "Sets.",
"type": "integer",
"minimum": 1,
"maximum": 100
},
"reps": {
"description": "Reps per set: a number, or words such as 8 to 12 or 10 each side.",
"anyOf": [
{
"type": "integer",
"minimum": 1,
"maximum": 10000
},
{
"type": "string",
"minLength": 1,
"maxLength": 40
}
]
},
"time_sec": {
"description": "Time per set or interval, in seconds.",
"type": "number",
"exclusiveMinimum": 0,
"maximum": 86400
},
"distance_m": {
"description": "Distance per set or interval, in metres.",
"type": "number",
"exclusiveMinimum": 0,
"maximum": 1000000
},
"load": {
"description": "The load in the person's terms, such as 20 kg, 45 lb, bodyweight or a light band.",
"type": "string",
"minLength": 1,
"maxLength": 60
},
"rest_sec": {
"description": "Rest between sets, in seconds.",
"type": "integer",
"minimum": 0,
"maximum": 3600
},
"cue": {
"description": "The coach's words on this exercise, shown when it is opened.",
"type": "string",
"minLength": 1,
"maxLength": 300
}
},
"required": [
"move"
]
},
"description": "The block's exercises, in order."
}
},
"required": [
"steps"
]
}
}
}
},
"description": "One session, or a programme's sessions in order."
},
"lang": {
"description": "The language of the card's own words, such as headings, rounds and rest: en or sv, English for any other. Exercise names stay English.",
"type": "string",
"maxLength": 35
}
},
"required": [
"sessions"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}