AI Engine & Prompting

The AI Engine orchestrates large language models with retrieval and structured prompting so the system behaves like a consistent behavioral coach.

Persona Layer

Keeps tone, boundaries, and coaching philosophy stable.

Context Layer

Injects goals, habits, streaks, and Circle summaries.

Action Layer

Maps free-form responses to structured updates.

Prompt structure

  • System prompt defining persona, domain, and safety constraints.
  • Context block injecting user state and past sessions.
  • Instruction block describing the current flow.
  • Few-shot examples to calibrate tone and structure.