Find the next challenge
find_next_challengeTakes the furthest a person has run, ridden or swum and gives the first question about their training, plus every challenge in that sport. check_readiness picks the challenge once the questions are answered.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sport | Yes | The sport of the challenge: running, cycling or swimming. | |
| 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. |