AI Assistant Integration

The AI assistant (OpenAI wrapper) is connected to Reflect and can access structured Supabase data. This enables users to ask questions like:

  • “What was my biggest loss yesterday?”

  • “Did I overtrade this week?”

  • “What token do I trade most emotionally?”

For this:

  • Each trade needs a timestamp, pnl, and type (buy/sell)

  • We tag trades with context flags (e.g. revenge_trade: true)

  • Optionally include summary stats: max_drawdown, average trade duration, volatility

The assistant is allowed read-only access to user data and returns natural language explanations based on embedded behavioral analysis.

Last updated