YCLIENTS steps
Use this reference to choose an app action and configure its settings. For a complete workflow, see book a client or cancel a booking.
How to add and configure a step
Open project → Automations → the required automation of the For dialogs type. In the editor, click Add step (1).
Find the action by name in the YCLIENTS group. The screenshot selects the availability search with separate outputs.
In Step settings, fill in Inputs (1). Under Step result (2), choose variables for the response values you need. The numbers in the screenshot are examples; use your branch's service and staff IDs.
Click Save (1) at the bottom of the panel. Closing it with the cross does not save the settings. Connect the block's input to the previous step and its outputs to the appropriate continuations.
Which steps to use
Day and time searches prepare choices for the client. Create a booking after confirmation; use cancellation for an existing visit. Text fields with a variable selector accept saved values. Numeric fields, including Staff member and Booking ID, currently require a specific number.
Find available YCLIENTS days
The day_choices step offers nearby days for the selected service and staff member.
- Supply
service_ids, a list of service IDs, andstaff_id, the staff member's ID. - Optionally set the starting date using
date_fromand the search range usingrange_days. - On
has_days, show the available days; onno_days, offer another range or staff member; oninvalid_date, ask for the date again. - Save
choice_buttonsfor a message with buttons. See the booking guide for option counts and additional pages.
For message buttons, select a variable in Option-only buttons (1).
Find available YCLIENTS times
The time_choices step offers times on the selected day.
- Supply
service_ids,staff_id, anddate. - On
has_slots, show the options; onno_slots, offer another day; oninvalid_date, clarify the date. - Save
choice_buttonsto display times as buttons.
Save Option-only buttons (1) to a separate variable for times.
Find YCLIENTS availability — with branches
The find_slots_v2 step returns available slots for workflows that process the options themselves.
Supply service_ids, staff_id, and date in YYYY-MM-DD format. Connect has_slots to the handling of available times and no_slots to a request to choose another day.
Create YCLIENTS booking — with branches
The create_booking_v2 step creates a booking after customer confirmation.
- Supply
service_ids,staff_id,datetime,client_name, andclient_phone. Optionally addclient_emailandcomment. - Use the full selected availability value in
datetime, including its time zone. A button label such as “14:30” is not enough. - On
created, saverecord_id, the new booking's ID. - On
unavailable, refresh availability and ask the customer to select again.
To find the visit later, save Booking ID (1) and its date to dialog variables.
Cancel YCLIENTS booking — with branches
The cancel_booking_v2 step cancels a booking by record_id. Enter a specific numeric ID in the settings: this field does not yet offer a variable selector. First, show the visit details and obtain the customer's confirmation.
On cancelled, report the cancellation. On not_found, check the booking ID or hand over to an administrator: this result does not confirm cancellation.
How to pass data between steps
Create process variables before using them. For example, save the booking ID to run.yclients_record_id and the selected time to run.yclients_datetime. You choose the variable names.
The service_ids input takes an array of numbers, such as [1001]; staff_id and record_id each take one number. Use IDs from your location. Read availability and booking results only on the paths where they were returned.
If the booking ID is needed in a later run, save record_id to a numeric dialog or lead variable. run.* variables stop being available when the current process ends. The booking guide shows the dialog variable approach.