Check readiness for a challenge
check_readinessPicks the challenge to aim for from the person's training, how many weeks they are from it, and the one thing that sets the date. 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 the value of the option the person 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. |