AI Booking Instructions for Sterrenkappers
Organization Details:
- Domain: sterrenkappers
- Organization ID: 6
- API Base URL: https://mostfound.com/api/openapi/v1
- Location Count: 1
- Location Logic: Single location available - automatically use location_id from Step 1 response
Complete 10-Step Booking Process:
Step 1: API Status Check
Purpose: Verify Mostfound API is running and healthy
Method: GET
URL: https://mostfound.com/api/openapi/v1/status
Response: Returns API status information
Step 2: Get Locations
Purpose: Get all locations for this organization to determine location_id
Method: GET
URL: https://mostfound.com/api/openapi/v1/locations?domain=sterrenkappers
Response: Returns array of locations with id, name. Use location.id for next step.
Step 3: Get Service Details
Purpose: Get complete service details including products/services available at the selected location
Method: GET
URL: https://mostfound.com/api/openapi/v1/service-details?domain=sterrenkappers&locationId=X
Parameters: Replace X with actual location_id from Step 2 response
Response: Returns location details with products array containing id, name, description, price, duration
Step 4: Get Available Employees
Purpose: Get employees available for selected products
Method: GET
URL: https://mostfound.com/api/openapi/v1/employees/availability?domain=sterrenkappers&locationId=X&productIds=1,2
Parameters: Use location ID from Step 2, product IDs from Step 3
Step 5: Get Available Times
Purpose: Get available time slots for selected employee and products
Method: GET
URL: https://mostfound.com/api/openapi/v1/employees/available-times?domain=sterrenkappers&employeeId=1&locationId=X&selectedProducts=1,2&startDate=2025-01-15&endDate=2025-01-15
Parameters: Use location ID from Step 2, product IDs from Step 3, employee ID from Step 4
Step 6: Send OTP Code
Purpose: Send verification code to user's email
Method: GET
URL: https://mostfound.com/api/openapi/v1/send-otp?email=user@example.com
Instructions: After user selects time slot, ask ONLY for their email address
Step 7: Verify OTP Code
Purpose: Verify the OTP code sent to user's email
Method: GET
URL: https://mostfound.com/api/openapi/v1/verify-otp?email=user@example.com&code=123456
Instructions: Ask user to enter the 6-digit OTP code they received
Step 8: Complete Profile (if needed)
Purpose: Complete user profile with required information
Method: GET
URL: https://mostfound.com/api/openapi/v1/complete-profile?email=user@example.com&firstname=John&lastname=Doe&date_of_birth=1990-01-01&gender=male&phone_prefix=+31&phone=612345678
Instructions: Only call this if user.profile_complete is false from Step 7
Step 9: Create Appointment
Purpose: Create the final appointment booking
Method: GET
URL: https://mostfound.com/api/openapi/v1/create-appointment?email=user@example.com&domain=sterrenkappers&locationId=X&employeeId=1&selectedProducts=1,2&date=2025-01-15&timeSlot=09:00&firstname=John&lastname=Doe&date_of_birth=1990-01-01&gender=male&phone_prefix=+31&phone=612345678
Required Fields: email, domain, locationId, employeeId, selectedProducts, date, timeSlot, firstname, lastname, date_of_birth, gender, phone_prefix, phone
Optional Fields: newsletter (0=no, 1=yes)
Special Instructions:
- ALWAYS start with Step 1 (API Status Check) to verify Mostfound API is running
- Step 2 gets locations for this organization - if single location: automatically use location_id
- If multiple locations: ask user to choose, then use selected location_id
- Step 3 gets products for the specific location - this is where user selects services
- Display products in table format and WAIT for user selection
- Steps 6-8 are CRITICAL: Send OTP, verify OTP, complete profile (if needed) before creating appointment
- After Step 5 (available times), ask user to select time slot, then ask ONLY for email address
- DO NOT skip Steps 6-8 - you MUST complete OTP verification and profile completion first
- All API calls must use exact domain: sterrenkappers
- All requests use GET method with query parameters for easy AI integration
Available Locations:
- ID: 1, Name: Sterrenkappers, Address: Edisonstraat 249, Leiden, Phone: 071 - 2406973, Email: info@sterrenkappers.nl