Genesys Cloud - Main

 View Only

Sign Up

  • 1.  Genesys Architect – Normalize Natural Language Time Input to 24-Hour Format

    Posted 10-05-2026 01:35

    In Genesys Cloud Architect Voice Bot, I am collecting the outage start date and time using a slot.

    I want the caller to be able to provide the time in natural language, for example:

    • "5 PM"

    • "5 in the evening"

    • "evening 5"

    • "17:00"

    Can Architect automatically normalize these different responses into a standard 24-hour time value, such as 17:00, using slot configuration, validation, or an expression?

    For example, if the caller says "5 PM", I want the slot value to be automatically interpreted/stored as 17:00.

    What is the recommended approach in Genesys Cloud Architect for achieving this?


    #AIConfiguration
    #API/Integrations
    #ArchitectandDesign
    #ConversationalAI(Bots,VirtualAgent,etc.)

    ------------------------------
    Akshat
    CTI Engineer
    ------------------------------


  • 2.  RE: Genesys Architect – Normalize Natural Language Time Input to 24-Hour Format

    Posted 10-05-2026 04:19

    Hi @Akshat Sharma,

    For this use case, I'd recommend using the built-in builtin:time slot rather than Regex or custom logic. Architect's NLU can already interpret natural language inputs such as "5 PM", "five thirty in the evening", or "17:00" and normalize them into a standard time value. Use built-in slot types in a bot flow - Genesys Cloud Resource Center

    Simply create an Ask for Slot action using a slot of type builtin:time, and let the platform handle the interpretation. This avoids maintaining synonyms or mappings such as "5 PM → 17:00" manually.

    One thing to note: Timeslot and builtin:time serve different purposes. Timeslot is intended for predefined appointment choices, whereas builtin:time is designed to capture whatever time the caller says.

    If you also need the date, you can collect it separately using builtin:date and combine the two values later into a DateTime value.

    Hope this helps!!



    ------------------------------
    Akhil
    ------------------------------



  • 3.  RE: Genesys Architect – Normalize Natural Language Time Input to 24-Hour Format

    Posted 10-05-2026 04:30

    Hi Akshat,

    You should be able to achieve this using the built-in builtin:time slot type rather than manually converting the value with an expression.

    Genesys documents that builtin:time maps to the Architect Time data type and converts natural-language time expressions into a time value. For example:

    • "3 p.m." → 15:00:00.000
    • "three-thirty p.m." → 15:30:00.000
    • "four in the morning" → 04:00
    • "two p m" → 14:00

    So for your example, "5 PM" should be interpreted as a 17:00 time value.

    I would configure the outage start time using a builtin:time slot and test the different variations you expect callers to use with your configured language, particularly phrases such as "evening 5".

    Genesys documentation: https://help.genesys.cloud/articles/slots-and-slot-types-overview/



    ------------------------------
    Phaneendra
    Technical Solutions Consultant
    ------------------------------



  • 4.  RE: Genesys Architect – Normalize Natural Language Time Input to 24-Hour Format
    Best Answer

    Posted 10-05-2026 06:13

    Thank you, Phaneendra Avatapalli and Akhil Akhil, for your suggestions and inputs. I really appreciate your help. I explored the requirement further and implemented a slightly different approach by creating a separate AI Powered slot to capture the date and time together in a single variable. I tested multiple date/time combinations, and it is working as expected.

    I created an AI Powered slot for Issue Start Time and configured it to capture the date and time together in a single variable.

    Within the slot, I added different possible combinations of how a caller might provide the date and time, including:

    • 5 10 2026 14:30
    • October 5th at 14:30
    • 5th October, 2:30 in the afternoon
    • 5 October 2026 at 2:30 PM
    • 01/03/2026 14:30
    • 1st March at 2:21 AM
    • 1 March 2026 at 2:21 AM
    • March 1st 2026 at 2:21 AM

    The AI-powered slot correctly identifies these different variations and returns the date and time in the required format, allowing me to use one variable for both date and time and pass it to the API.

    I have also tested different combinations of 12-hour format, 24-hour format, natural language, AM/PM, and different date formats, and the slot is working as expected.

    This approach avoids having to maintain separate date and time slots and then combine them before making the API call.



    ------------------------------
    Akshat
    CTI Engineer
    ------------------------------



  • 5.  RE: Genesys Architect – Normalize Natural Language Time Input to 24-Hour Format

    Posted 10-05-2026 06:58

    Thanks for sharing the approach and test results! Good to know it's working now.



    ------------------------------
    Phaneendra
    Technical Solutions Consultant
    ------------------------------



  • 6.  RE: Genesys Architect – Normalize Natural Language Time Input to 24-Hour Format

    Posted 10-05-2026 07:21
    Edited by Akhil Akhil 10-05-2026 07:29

    Nice approach, @Akshat Sharma,  One thing I'm particularly interested in checking is whether the interpretation of ambiguous dates such as 01/03/2026 is driven by the bot's configured language/locale or by the examples/expected values configured in the AI-powered slot.



    ------------------------------
    Akhil
    ------------------------------



  • 7.  RE: Genesys Architect – Normalize Natural Language Time Input to 24-Hour Format

    Posted 10-06-2026 05:37

    Thank you @Akhil Akhil! I tested this behavior by adding specific examples/expected values to the AI-powered slot. After adding those examples, the bot consistently interpreted the ambiguous date based on the patterns provided in the slot configuration.

    Based on my testing, it appears that the examples/expected values configured for the AI-powered slot have a significant influence on how an ambiguous date such as 01/03/2026 is interpreted, rather than relying solely on the bot's configured language/locale.



    ------------------------------
    Akshat
    CTI Engineer
    ------------------------------



  • 8.  RE: Genesys Architect – Normalize Natural Language Time Input to 24-Hour Format

    Posted 10-06-2026 08:49

    Hi @Akshat Sharma,

    Thanks for testing this. One scenario I'd be interested in understanding is what happens when the slot examples are configured as DD/MM/YY, but a user provides a date in MM/DD/YY format. Based on your testing, would the AI still follow the configured examples and interpret the date as DD/MM/YY, or do you have any handling in place, such as a clarification prompt, for ambiguous dates?


    ------------------------------
    Akhil
    ------------------------------



  • 9.  RE: Genesys Architect – Normalize Natural Language Time Input to 24-Hour Format

    Posted 10-09-2026 02:33

    Hi @Akhil Akhil,

    Yes, based on my testing, the AI follows the expected date format configured in the slot examples. I have also explicitly mentioned the preferred date format in the prompt, so the AI interprets the input according to the specified format.

    I also tested natural-language inputs, such as "I started facing the issue yesterday at 10 in the morning," and the AI recognized the date and time correctly.

    For ambiguous dates where both DD/MM/YY and MM/DD/YY are possible, we can consider adding a clarification prompt to confirm the intended date and avoid incorrect interpretation.



    ------------------------------
    Akshat
    CTI Engineer
    ------------------------------



  • 10.  RE: Genesys Architect – Normalize Natural Language Time Input to 24-Hour Format

    Posted 30 days ago

    Hi @Akshat Sharma,

    Thanks for testing and sharing the results. It's good to know that the AI follows the configured date format and can also interpret natural-language date and time inputs reliably.

    I completely agree that adding a clarification prompt for ambiguous dates would be the safest approach. That would help avoid any unintended interpretation, especially in scenarios where both DD/MM/YY and MM/DD/YY are valid dates.

    Really appreciate you taking the time to test this and share your findings.



    ------------------------------
    Akhil
    ------------------------------