Check readiness for a challenge
check_readinessPicks the challenge to aim for from the person's training, whether they are ready for it, and what is still needed if not. Returns the next question while one is unanswered, then the challenge and verdict. Send every answer so far each time.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sport | Yes | The sport of the challenge: running, cycling or swimming. | |
| today | No | The person's local date as YYYY-MM-DD, the day before if it is earlier than 05:00 where they are. Omit if unknown. | |
| answers | No | Answers so far, keyed by question id, each a distance in kilometres: the one the person gave, or the value of the option they chose. Omit before the first answer. | |
| furthest_km | Yes | The furthest distance the person has ever done in one go in that sport, in kilometres. 0 if never. | |
| challenge_id | No | Optional: a challenge id from the challenges find_next_challenge lists, when the person names a goal of their own. Omit to let their training answers pick one. |