Find a Phorme coaching brain
find_coaching_brainUse this when the user wants a way to train for a goal or sport, for example "I want to get more explosive for basketball", "build muscle three days a week" or "train for a half marathon", or wants to train with a named coach, for example "train with Cameron Goodson", and has not picked a programme, or has a coach code someone gave them, for example K7Q2-XR4D. Phorme coaching brains are curated training methods: a coach, the principles the method trains by, and a coach-built programme. It returns up to three brains that fit, best first, each with its coach, focus, how it trains and its programmes with weeks and days a week; with a coach named, only that coach's brains; with a code, the one brain it belongs to and its page. It reads only and changes nothing. Do not use it for injury rehab or nutrition.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | A Phorme coach code exactly as the user gave it, for example "K7Q2-XR4D", or a phor.me/c/ link. Only when they gave one. | |
| goal | No | What the user wants from training, in their words, for example "jump higher" or "first HYROX race". Needed unless a code is given. | |
| coach | No | A coach the user named, for example "Cameron Goodson". Only that coach's brains are returned. | |
| sport | No | The sport or position, only if the user named one. | |
| days_per_week | No | Training days a week, only if the user said. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | The coach code that was looked up, when one was given. | |
| goal | Yes | ||
| brains | Yes | Best fit first: id, name, coach, coach_title, focus, how_it_trains, image_url and image_alt (Phorme's own picture of the brain, its programme cover or its coach's room: show it, never a web photo), programmes (name, summary, weeks, days_per_week, image_url) and why it fits. | |
| limits | Yes | What this does not cover. Tell the user. |