Use custom timeslot slot types in a bot flow
In addition to built-in slot types, Architect supports five custom slot types: list slot type, dynamic list slot type, regular expression slot type, timeslot, and AI-powered slot type for Virtual Agent. If your custom slot type data is a set of predefined time slots, use the timeslot slot type. Timeslot slot types help you to create a bot that offers time options for customers to select during a messaging interaction. You can either provide a custom list of DateTime values or use a Call Data Action to retrieve calendar events from a third-party calendar event provider.
- Though you define the DateTime values for a timeslot in Coordinated Universal Time (UTC), the user’s device always displays time in the user’s current time zone. In other words, Architect does not apply any time zone offset or Daylight Savings Time (DST) bias to the timeslots. For more information, see DateTime values in Architect flows and Daylight Savings Time (DST) calculations.
- The configured Timeslot Collection variable in your timeslot must have a minimum of one future DateTime value.
- Each timeslot must have a unique start DateTime value. Though Architect allows you to set identical timeslots, the bot chooses only the first matching DateTime value during an interaction.
- Some channels such as Apple Messages for Business do not support time selection in seconds or milliseconds. In such cases, you can limit the time format to hours and minutes in your flow to prevent any mismatching of user input.
- Each timeslot collection can have up to 50 DateTime values.
Add a timeslot slot
- Create a digital bot flow or open a previous one.
- Under Natural Language Understanding, click Slots.
- Haga clic en Slot.
- Proporcione un nombre significativo para la ranura.
- Under Associated Slot Type, click New Timeslot.
- Type a meaningful name for the custom timeslot slot type.
- Click Save. The slot is added.
Define time slots for your custom slot
Architect uses a Timeslot Collection variable to store the date and time values that you configure for a timeslot.
- Create a digital bot flow or open a previous one.
- Under Natural Language Understanding, click Slot Types.
- Click the newly added slot type name.
- Under Timeslots, Click Add Collection. The Timeslots window appears.
- If you want to add a custom list of date and time values, do the following:
- Click Timeslot.
- Select a date and time.
- Select the duration of the timeslot.
- Add as many timeslots as needed. The maximum limit is 50 slots per collection.
- If you want to retrieve calendar data from a third-party calendar event provider, use a Call Data Action in your bot flow. For more information, see Use Architect to create a digital bot to schedule an appointment.
- Hacer clic Cerrar.
Use the Ask for Slot action to add time slots to your bot flow
- Create a digital bot flow or open a previous one, then navigate to Ask and drag an Ask for Slot action into the flow.
- Under Slot, select the timeslot that you created previously and then complete the relevant fields.
- Complete su flujo de bot de acuerdo con el diseño de su organización.
Modificar una ranura
Para modificar la información de la ranura, en el menú Ranura, seleccione una ranura y haga clic en Editar .
Eliminar un flujo
Para eliminar una ranura, en el menú Ranura, seleccione una ranura y haga clic en Borrar .