ruLog in to Senler

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).

Opening the catalog: 1 — Add step

Find the action by name in the YCLIENTS group. The screenshot selects the availability search with separate outputs.

Catalog: 1 — a YCLIENTS action

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.

Action settings: 1 — inputs; 2 — results

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.

Saving the settings: 1 — Save

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, and staff_id, the staff member's ID.
  • Optionally set the starting date using date_from and the search range using range_days.
  • On has_days, show the available days; on no_days, offer another range or staff member; on invalid_date, ask for the date again.
  • Save choice_buttons for a message with buttons. See the booking guide for option counts and additional pages.

Day search: 1 — inputs

For message buttons, select a variable in Option-only buttons (1).

Day search result: 1 — button array saved to a variable

Find available YCLIENTS times

The time_choices step offers times on the selected day.

  • Supply service_ids, staff_id, and date.
  • On has_slots, show the options; on no_slots, offer another day; on invalid_date, clarify the date.
  • Save choice_buttons to display times as buttons.

Time search: 1 — inputs

Save Option-only buttons (1) to a separate variable for times.

Time search result: 1 — button array saved to a variable

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, and client_phone. Optionally add client_email and comment.
  • Use the full selected availability value in datetime, including its time zone. A button label such as “14:30” is not enough.
  • On created, save record_id, the new booking's ID.
  • On unavailable, refresh availability and ask the customer to select again.

Creating a booking: 1 — inputs

To find the visit later, save Booking ID (1) and its date to dialog variables.

Created visit: 1 — booking ID saved to a dialog variable

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.

Cancelling a booking: 1 — input booking ID

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.

Troubleshooting.