# Nutrition — NexCoach

> Nutrition lets trainers create, edit, schedule, and assign client diet plans.

- Page: <https://nexcoach.fit/feature/nutrition>
- App location: `/trainer/diet-plans`
- Used by: Trainers
- Availability: Available to all trainers during early access (free, no card required). See https://nexcoach.fit/pricing.
- Last verified: 2026-10-11

## What it does

- Creates diet plans for a selected client through a step-based builder.
- Schedules plans by repeating weekdays or by specific calendar dates.
- Starts a weekly plan from a ready-made template or from scratch.
- Adds meals with required name and time, recipe or quantity text, calories, protein, carbohydrates, fats, and advanced nutrition fields.
- Fetches macros from the recipe or quantity entered when the trainer presses `Fetch Macros`.
- Meal nutrition can be pasted into the form, and a fetched ingredient breakdown supports portion editing that recalculates calories, protein, carbs, and fats.
- Edits, removes, reorders, duplicates, and copies meals between days.
- Generates a diet with AI using optional daily calories, macro targets, and a meal-variety setting. AI generation automatically includes the client's profile, goals, and medical notes; blank targets are calculated from the client's profile.
- Saves plans and supports assigning an existing plan to a client. Assigning a diet through Spotter replaces the client's current assigned diet plan.

## How it works

1. Open `/trainer/diet-plans` and choose `Create Diet Plan`.
2. Select the client.
3. Choose `Plan by Week` or `Plan by Date`.
4. For a weekly plan, optionally select a template, choose weekdays, and provide the plan name. For a date plan, pick dates on the calendar and provide the plan name.
5. In the meal builder, add meals with `Add Meal`; optionally enter a recipe or quantity and press `Fetch Macros`. You can also paste meal nutrition into the form.
6. Use the meal actions to edit, remove, reorder, duplicate, or copy meals to other days. When an ingredient breakdown is fetched, edit portions to recalculate the meal's calories, protein, carbs, and fats.
7. Optionally choose `Generate with AI`, set targets or meal variety, and press `Generate`; the client's profile, goals, and medical notes are included automatically.
8. Save the plan, then assign it to the client when assignment is required.

## Options and limits

- `Plan by Week` repeats meals on selected weekdays; `Plan by Date` gives each calendar date its own meals.
- Meal `Name` and `Time` are required.
- Numeric macro inputs have a minimum of `0`.
- AI `Meal variety` is an integer slider from `1` to `5`; daily calories, protein, carbs, and fats are optional and default to automatic calculation when left blank.
- A day supports up to 12 meals.
- Spotter date plans support 1–60 days.

## AI access

- Spotter: `get_client_diet` (read), `edit_client_meal` (write), `add_client_meal` (write), `remove_client_meal` (write), `list_diet_plans` (read), `ask_plan_schedule` (read-only prompt), `ask_plan_weekdays` (read-only prompt), `create_diet_plan` (write), `add_plan_day_meals` (write), `copy_plan_day` (write), `assign_diet` (write).
- MCP server (read-only): `get_daily_diet`, `get_client_diet`, `list_diet_plans`.

## Related features

- [Client Management](https://nexcoach.fit/feature/clients.md)
- [Spotter](https://nexcoach.fit/spotter.md)

## Not supported

- Diet plans cannot be deleted from the diet-plan list.
