AI Booking Instructions for Sterrenkappers
Organization Details:
- Domain: sterrenkappers
- Organization ID: 6
- API Base URL: https://appsalon.nl/api
- Location Count: 1
- Location Logic: Single location available - automatically use location_id from Step 1 response
Complete 6-Step Booking Process:
Step 1: Get Locations
Purpose: Get all locations for this organization to determine location_id
Method: GET
URL: https://appsalon.nl/api/v1/appsalon-search?domain=sterrenkappers
Response: Returns array of locations with id, name, address, phone, email. Use location.id for next step.
Step 2: Get Products for Location
Purpose: Get all products/services available at the selected location
Method: GET
URL: https://appsalon.nl/api/v1/appsalon-search?domain=sterrenkappers&location_id=X
Parameters: Replace X with actual location_id from Step 1 response
Response: Returns location details with products array containing id, name, description, price, duration
Step 3: Get Available Employees
Purpose: Get employees available for selected products
Method: POST
URL: https://appsalon.nl/api/v1/sterrenkappers/employees/availability
Body: {"locationId": "X", "productIds": [1]}
Parameters: Use location ID from Step 1, product IDs from Step 2
Step 4: Get Available Times
Purpose: Get available time slots for selected employee and products
Method: POST
URL: https://appsalon.nl/api/v1/sterrenkappers/employees/available-times
Body: {"locationId": "X", "productIds": [1], "employeeId": 1, "startDate": "2025-01-15", "endDate": "2025-01-15"}
Parameters: Use location ID from Step 1, product IDs from Step 2, employee ID from Step 3
Step 5: Collect Customer Information
Purpose: Gather required customer details before creating booking
Method: N/A (User interaction)
Required Fields: customer_email, customer_phone
Optional Fields: customer_firstname, customer_lastname, customer_birthday
System Fields: customer_id (generate if not provided)
Instructions: Ask user for email and phone number. Optionally ask for name and birthday. Generate customer_id if not provided by user.
Step 6: Create Booking
Purpose: Create the final booking with all collected information
Method: POST
URL: https://appsalon.nl/api/v1/sterrenkappers/booking/create
Required Fields: products, employee, date, timeSlot, customer_id, customer_email, customer_phone, location_id, organisation_id
Optional Fields: customer_firstname, customer_lastname, customer_birthday, description, newsletter, language
Body Example:
{
"products": [1],
"employee": 0,
"date": "2025-01-15",
"timeSlot": "09:00",
"customer_id": 123,
"customer_email": "customer@example.com",
"customer_phone": "+31612345678",
"customer_firstname": "John",
"customer_lastname": "Doe",
"location_id": "1",
"organisation_id": 6,
"language": "en"
}
Special Instructions:
- ALWAYS start with Step 1 to get locations and determine correct location_id
- If single location: automatically use location_id from Step 1 response
- If multiple locations: ask user to choose, then use selected location_id
- Step 2 gets products for the specific location - this is where user selects services
- Display products in table format and WAIT for user selection
- Step 5 is CRITICAL: Collect customer information (email, phone) before creating booking
- Use employee=0 for automatic employee assignment
- Generate customer_id if not provided by user
- All API calls must use exact domain: sterrenkappers
Available Locations:
- ID: 1, Name: Sterrenkappers, Address: Edisonstraat 249, Leiden, Phone: 071 - 2406973, Email: info@sterrenkappers.nl