Files
Meister-Eder/openspec/changes/define-project-scope/content/validation-rules.md
T
gurixandClaude Opus 4.5 145947c520 Add project scope documentation for AI playgroup registration system
Define complete non-technical scope for replacing Google Forms registration
with an AI-powered conversational agent. Includes:

- Registration data requirements (13 fields with validation rules)
- Knowledge base content (fees, regulations, schedule, FAQ from official PDFs)
- Conversation flow design with bilingual support (German/English)
- Agent personality guidelines (warm & friendly tone)
- Admin notification routing by playgroup type
- Email reminder system for incomplete registrations
- Data export formats (CSV/JSON)
- Channel configuration (email + chat)
- Release priorities (MVP scope defined)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-20 17:52:13 +01:00

46 lines
1.8 KiB
Markdown

# Validation Rules
## Child Information
| Field | Validation Rules |
|-------|------------------|
| Child's Full Name | Required, minimum 2 characters, letters and spaces only |
| Date of Birth | Required, valid date format, must be in the past, child should be appropriate age for playgroup |
| Special Needs / Medical Conditions | Required, free text (parents can enter "None" if not applicable) |
## Parent/Guardian Information
| Field | Validation Rules |
|-------|------------------|
| Parent/Guardian Name | Required, minimum 2 characters, letters and spaces only |
| Street Address | Required, minimum 5 characters |
| Postal Code | Required, exactly 4 digits (Swiss format) |
| City | Required, minimum 2 characters |
| Phone Number | Required, valid phone number format |
| Email Address | Required, valid email format |
## Emergency Contact
| Field | Validation Rules |
|-------|------------------|
| Emergency Contact Name | Required, minimum 2 characters, letters and spaces only |
| Emergency Contact Phone | Required, valid phone number format |
## Booking Selection
| Field | Validation Rules |
|-------|------------------|
| Playgroup Type(s) | Required, at least one type must be selected (Indoor and/or Outdoor) |
| Booking Days | Required, at least one day must be selected, days must match selected playgroup type(s) |
### Booking Day Constraints
- If **Indoor** selected: Can choose from Monday, Wednesday, Thursday
- If **Outdoor (Forest)** selected: Must include Monday
- If **Both** selected: Can choose any combination of Mon, Wed, Thu (with Monday available in either/both programs)
## Notes
- The agent should guide parents through validation naturally (e.g., "Could you spell that again?" rather than "Invalid format")
- **Age validation**: Children must be between 2-5 years old at time of registration