Chat message path

  1. The user sends a message through the frontend to the FastAPI message API.
  2. The message is stored in MongoDB with organization and channel (or conversation) identifiers.
  3. The agent path may query Qdrant for embedding-backed context.
  4. When enabled, mem0 may update long-horizon summaries.

Tasks and consequences

Task state and consequence events live in MongoDB; agents and schedulers read them to adjust pacing, tone, and urgency. See simulation and scheduler modules for feature-specific behavior.