Change daily targets
set_targetsDestructive
Change the person's daily calorie and macro targets when they ask. from is the local date the change starts, usually today; earlier days keep theirs. Add through (inclusive) only to limit the change to certain days, such as through equal to from for one day. values needs all four of caloriesKcal, proteinG, carbsG and fatG; ask for any not given rather than inventing them, or pass values null to stop targets from that day. Nothing else can be saved, such as diet, allergies or an iron target: say so and use it only in this conversation. Confirm the change only after success.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | Yes | The local date the change starts, usually today | |
| values | Yes | All four daily targets, or null to stop targets from that day | |
| through | No | The last local date the change applies to; leave out to keep it from then on |
Output Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| units | Yes | ||
| periods | Yes |