USER FLOWS (SCENARIOS)

Scenario A: Currency Exchange (Happy Path)

  1. User opens Bot -> Clicks "Start".
  2. Typebot shows menu: [💱 Exchange] [📊 Rates] [🆘 Support].
  3. User clicks "Exchange".
  4. Typebot asks: "Select City" (Buttons: Phuket, Bangkok).
  5. Typebot asks: "Give Currency" (Buttons: RUB, USDT).
  6. Typebot asks: "Amount" (Input: 100000).
  7. Typebot sends data to n8n calc_rate webhook.
  8. n8n returns: "Rate: 34.5, You get: 2898 THB".
  9. Typebot shows calculation and asks "Confirm?".
  10. User clicks "Confirm".
  11. n8n creates Order in Supabase (status: pending).
  12. User receives message: "Wait for operator confirmation".

Scenario B: Manager Approval

  1. Manager opens Admin Panel (Refine).
  2. Sees new order in "Pending" tab.
  3. Checks limits and reserves.
  4. Clicks "Approve".
  5. System (n8n) sends Telegram message to User: "Deal Approved! Here are the details...".