Genesys Cloud - Main

 View Only

Sign Up

  • 1.  Outbound Campaign currently dialing phone number identification

    Posted 10 days ago

    How can I capture the phone number currently being dialed for a contact that has multiple phone numbers into a variable in the Genesys Cloud Outbound Dialer Architect flow?

    This information needs to be reused in the agent script so that the agent can either add the currently dialed phone number to the DNC list or remove only that specific phone number from the contact. In some cases, adding the phone number directly to the DNC list is not an option because the same phone number may be associated with another contact. Therefore, we need to identify the exact phone number that was dialed during the interaction.

    Best Regards,


    #Outbound

    ------------------------------
    Tibin Thomas
    ------------------------------


  • 2.  RE: Outbound Campaign currently dialing phone number identification

    Posted 8 days ago

    Hi Tibin

    Hopefully someone else in the community can help with the Architect Flow, but you can use {{Scripter.Customer Formatted Number}} in the agent script, it represents the customer's phone number for the current interaction. On an outbound voice call, that is the number the dialer connected to and that the agent is currently speaking with.

    Built-in script variables



    ------------------------------
    Sam Jillard
    Online Community Manager/Moderator
    ------------------------------



  • 3.  RE: Outbound Campaign currently dialing phone number identification

    Posted 7 days ago

    Thanks Sam.

    The script variable {{Scripter.Customer Formatted Number}} displays the phone number currently being dialed by the outbound dialer and connected to agent, and this is sufficient to fulfill the requirement.



    ------------------------------
    Tibin Thomas
    ------------------------------



  • 4.  RE: Outbound Campaign currently dialing phone number identification
    Best Answer

    Posted 7 days ago
    Edited by Jason Kleitz 6 days ago

    In one of our customers, we handle this directly in the agent script during page load.

    We create a Set Variable action that runs as soon as the script is loaded and use the built-in variable {{Scripter.Customer Formatted Number}}. Then we apply a slice() function to extract only the portion of the phone number we need.

    For example:

    slice({{Scripter.Customer Formatted Number}}, 7)

    In this case, slice(7) returns the number starting from the 7th character, but you can adjust the index depending on your phone number format or what you need to keep.

    We save the result into a custom script variable and reuse it later in the script for our business logic. This approach has worked well for us and avoids having to capture the value elsewhere.



    ------------------------------
    Raphael Poliesi
    ------------------------------



  • 5.  RE: Outbound Campaign currently dialing phone number identification

    Posted 7 days ago

    Thanks Raphael,

    I need the phone number in a clean E.164 format without the 'tel:' prefix. I hope your suggestion will help achieve that. Let me try it out, and I'll share the results with you.

    Best Regards,



    ------------------------------
    Tibin Thomas
    ------------------------------



  • 6.  RE: Outbound Campaign currently dialing phone number identification

    Posted 7 days ago

    Hi Tibin,
    Raphael's approach should work, provided the incoming value is already in E.164 format with only the tel: prefix added.

    You may need to use slice(..., 4) rather than slice(..., 7), since tel: is four characters. For example, tel:+1234567890 would return +1234567890.

    The exact index depends on the value Genesys is supplying, so it would be worth checking the original format first.



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



  • 7.  RE: Outbound Campaign currently dialing phone number identification

    Posted 5 days ago

    Thanks for your suggestions.

    I'm able to capture the currently dialing phone number from contact using script variable.

    Best Regards,



    ------------------------------
    Tibin Thomas
    ------------------------------