Emotional Onboarding API
Simple question and answer storage system for emotional onboarding flows. Frontend manages questions, backend stores answers professionally.
Question & Answer
Auto-Generated IDs
Frontend-Driven
Simple Storage
What is Emotional Onboarding?
A simple system for storing user answers to emotional onboarding questions. Frontend handles questions and flows, backend stores answers professionally.
Key Features
- Frontend-Driven: Questions and flows managed by frontend
- Simple Storage: Just question + answer + userId
- Auto-Generated IDs: Each answer gets unique onboardingAnswerId
- Easy Updates: Update answers using onboardingAnswerId
- No Hardcoding: No predefined questions or categories
How It Works
1
Frontend Creates Questions
Frontend defines questions, categories, and emotional flows
2
User Answers Questions
User goes through onboarding flow answering questions
3
Backend Stores Answers
Each answer saved with auto-generated ID for easy updates
4
User Can Edit Later
User can view and edit their answers anytime
Database Schema
emotionalOnboardingResponses Table
{
_id: string, // Convex internal ID
userId: Id<"users">, // User who answered
question: string, // The question text
answer: string, // User's answer
answeredAt: number, // Timestamp when answered
onboardingAnswerId: string // Auto-generated ID for updates
}