AI Trainer Chat Parameters
Parameters for the AI Trainer Chat view. Applies to: AI Trainer only: every other integration option ignores them.
| Parameter | Type | Default | Applies to | What it does internally |
| isSubscribed | boolean | true | AI Trainer | Missing or true = subscribed. Only false (or the text "false" for URL launches) gates workout generation and triggers the open_subscription_flow event; see the subscription gating guide. On session launches the backend's subscription status overrides this flag: the server is the source of truth and also gates generation itself |
| subscriptionReturnUrl | string | none | AI Trainer | For link and standalone launches with no host app: non-subscribed users are sent here at the generation step instead of receiving open_subscription_flow. Accepts http:// or https:// URLs and app deep links; script schemes are rejected |
| aiTrainerName | string | none | AI Trainer | Renames the AI trainer in the label above each reply. Shown as-is in every language. Also the chat title when showAiTrainerNameInHeader is true |
| showAiTrainerNameInHeader | boolean | false | AI Trainer | Shows aiTrainerName as the chat's title at the top of the screen (the chat has no title otherwise). Accepts true or "true" |
| aiTrainerColor | string | the theme's brand color | AI Trainer | Recolors the trainer's star icon: any CSS color, e.g. "#7C3AED" |
| aiTrainerGreeting | string | none | AI Trainer | Your own opening line, typed by the trainer at most once per launch (skipped while another prompt is on screen). Display only, not sent to the AI |
| aiTrainerOnboardingGreeting | string | none | AI Trainer | Opening line when a user with no chat history starts onboarding. Falls back to aiTrainerGreeting |
| aiTrainerOnboardingCompleteMessage | string | none | AI Trainer | Line typed once when onboarding ends and the first plan starts generating |
| customProfileAction | boolean | false | AI Trainer | The "Profile and more settings" row of the header settings menu sends trainer_profile_clicked (with the current profile) instead of opening the KinesteX profile screen. Use it to open your own profile UI |
| customCalendarAction | boolean | false | AI Trainer | The calendar button in the header sends trainer_calendar_clicked instead of opening the My Progress screen |
| hideCalendarButton | boolean | false | AI Trainer | Hides the calendar button in the header |
| hideProfileButton | boolean | false | AI Trainer | Hides the settings button in the header, which also removes its quick settings (music, AI motion tracking, pose model) and the "Profile and more settings" row. Takes priority over customProfileAction |
| captureDateOfBirth | boolean | false | AI Trainer | The profile step asks for a full date of birth instead of a birth year. KinesteX stores only the age; the date is sent back to you as date_of_birth in the profile events |
| date_of_birth | string | none | AI Trainer | "YYYY-MM-DD". Prefills the date of birth. Ignored unless it gives an age between 3 and 120 |
Runtime messages: after your app handles open_subscription_flow, post { subscription_result: "purchased" } (resumes the waiting generation) or { subscription_result: "dismissed" }. To update the profile from your own UI later, post { type: "update_trainer_profile", ... }. Both are in Workout Activity Actions.
Fitness-profile prefill fields (same names as in the trainer_profile_updated event, so you can round-trip the schema; invalid values are dropped, never an error):
| Field | Accepted values |
| fitness_goals | string[] from: weight_loss, muscle_gain, strength, general_fitness, wellness_flexibility, cardio_endurance. weight_loss is not offered to users with an underweight BMI (under 18.5) and is dropped when they save their goals |
| injuries | Array of { body_part, preference, severity }. body_part: Neck, Shoulders, Chest, Arms, Forearms, Abdomen, Knees, Hips, Ankles, Upper Back, Lower Back, Glutes, Hamstrings, Calves, Heels (any letter case, underscores or spaces). preference: avoid (default) or include. severity (optional): light, moderate, severe. Empty array = explicitly "no injuries" |
| health_conditions | string[]. Standard values: Diabetes, Hypertension, Asthma, Osteoporosis, Other. Other strings are kept as free-text "Other" details |
| fitness_level_pushups | "0-5", "6-15", "16+" (or the full sentence the profile events carry) |
| fitness_level_squats | "0-10", "11-21", "22+" (or the full sentence the profile events carry) |
| fitness_level_cardio | One of the cardio self-assessment sentences shown in the trainer wizard (an unrecognized value makes the wizard ask again) |
| other_preferences | Free text |
See Pre-filling user data for the full guide. Prefill seeds the wizard's answers: the questions are still shown, pre-answered. age, height, weight and gender also prefill the trainer, but only when explicitly provided at launch; body_parts prefills the target areas (User Profile).