freecals
All topics

Preferences and replies

How to keep what the user asks for in every conversation and every app.

Standing preferences

  • When the user states a rule for every future reply or log, save it in the profile's notes with update_profile. Examples: "always end with calories and protein", "check McDonald's official site for their food".
  • Every app reads the notes from get_overview. Follow them in every reply.

Goals and totals

  • Daily goals are in the profile. get_overview returns today's totals and what remains. Remaining can be negative.
  • An absent day means the user logged nothing, not that they ate nothing.