Intent Detection and Flow Management Challenge

Objective:

Create a service that classifies user messages, manages conversation flows and maintains context. The service should handle general interactions, FAQ requests, and responses to suicide risk.

You can use fixed responses or integrate with an AI model like GPT.

Flows Types:

  1. Normal Flow - General mental health support and conversations.
  2. Check-In Flow - Mood check-in initiated by the system.

Requirements:

  1. Intent Detection:

  2. Flow Management:

    If FAQ or Suicide Risk: Handle accordingly.

    Otherwise: Continue with Check-In Flow or Normal Flow based on the current flow.

  3. API Endpoints:

  4. Data Storage: Use Redis to manage the state of the conversation and its context.

  5. Testing: Provide unit and integration tests for your code

Technical Requirements:

Bonus (Optional):