Genesys Cloud - Developer Community!

 View Only

Sign Up

Expand all | Collapse all

Is it possible to use Genesys Cloud Function Data Action to add a call button to the script during ACW and initiate an outbound call?

  • 1.  Is it possible to use Genesys Cloud Function Data Action to add a call button to the script during ACW and initiate an outbound call?

    Posted 16 hours ago
    Edited by YONETSU EMI 14 hours ago

    In Genesys Cloud, we would like to add a custom call button to the script that is displayed to the agent during ACW (After Call Work).

    Is it possible to configure outbound dialing to an external phone number via an operation such as pressing a button on the script, using Genesys Cloud Function Data Action?
    If there are any APIs or standard features better suited for outbound dialing, please let us know as well.

    Additionally, we are concerned that actions such as executing the Conversation API may fail due to authentication issues.

    We would appreciate your guidance on recommended implementation methods using Genesys Cloud Function Data Action, as well as any restrictions regarding authentication, permissions, or agent state.


    #DataActions

    ------------------------------
    YONETSU EMI
    -
    ------------------------------



  • 2.  RE: Is it possible to use Genesys Cloud Function Data Action to add a call button to the script during ACW and initiate an outbound call?

    Posted 13 hours ago

    Hi Yonetsu,

    I haven't implemented this exact scenario, but I found a couple of community threads that may help.

    If your requirement is to create a new outbound call, the relevant endpoint appears to be POST /api/v2/conversations/calls. One important consideration is that this API requires a user context because Genesys derives the originating party from the authenticated user's active phone. A client credentials OAuth token (such as one used by a Data Action or Cloud Function) does not have a user context, so it cannot place the call on behalf of an agent. 

    I also found that the agent's phone may need the "Allow apps to place calls" setting enabled when using this API. 

    Based on that, I'd be interested to hear what others have implemented for launching a new outbound call directly from an Agent Script during ACW, as authentication and user context seem to be the key considerations.

    References:

    Hope this helps.



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