Genesys Cloud - Main

 View Only

Discussion Thread View
  • 1.  Script Call API to make Call

    Posted 13 days ago

    Hi Guys

    I am want to make a button Redial in the Script to call again the customer if disconnected , so agent just click the button to call customer again

    Try to create Genesys Cloud Data Action using client credential
    to call this api => /api/v2/conversations/calls

    {
    "phoneNumber": "+6281386220888"
    }

    but found error

    . Execute: The request could not be understood by the server due to malformed syntax.

    • REST call for action execute failed. Message: Request to backend service failed. Response from web service: {"message":"This request requires a user context. Client credentials cannot be used for requests to this resource.","code":"not.a.user","status":400,"contextId":"770b4ba0-a464-4c72-af6a-8629caa7f6b4","details":[],"errors":[]} [0ce2ffd3-790c-4f24-804b-4bba36901f36]

    {
    "message": "The request could not be understood by the server due to malformed syntax.",
    "code": "bad.request",
    "status": 400,
    "messageParams": {},
    "contextId": "0ce2ffd3-790c-4f24-804b-4bba36901f36",
    "details": [
    {
    "errorCode": "ACTION.REMOTE_ENDPOINT"
    }
    ],
    "errors": [
    {
    "message": "REST call for action execute failed. Message: Request to backend service failed. Response from web service: {"message":"This request requires a user context. Client credentials cannot be used for requests to this resource.","code":"not.a.user","status":400,"contextId":"770b4ba0-a464-4c72-af6a-8629caa7f6b4","details":[],"errors":[]} [0ce2ffd3-790c-4f24-804b-4bba36901f36]",
    "code": "BAD_REQUEST",
    "status": 400,
    "messageParams": {},
    "details": [],
    "errors": []
    }
    ]
    }

    Does anyone have experience creating a redial button in a script?

    Regards

    Husein N


    #API/Integrations

    ------------------------------
    Husein Nasution
    ------------------------------


  • 2.  RE: Script Call API to make Call
    Best Answer

    Posted 11 days ago

    Data Actions run under a system context, not a user context.  I would suggest you show the number in the script and agents highlight it and chooses Make Call.  If Genesys is the default telephone in Windows, you could set the screen to show callto:NxxNxxXXXX and see if it will kick off call for the user. 



    ------------------------------
    Robert Wakefield-Carl
    ttec Digital
    Sr. Director - Innovation Architects
    Robert.WC@ttecdigital.com
    https://www.ttecDigital.com
    https://RobertWC.Blogspot.com
    ------------------------------



  • 3.  RE: Script Call API to make Call

    Posted 7 days ago

    Hi Robert 

    Currently, Genesys Cloud is set as the default telephone on Windows

    I have try put callto:+6281386220888 in the text component but not working 

    Regards

    Husein N



    ------------------------------
    Husein Nasution
    ------------------------------



  • 4.  RE: Script Call API to make Call

    Posted 7 days ago
    Download the Genesys Cloud for Chrome and see if that works


    Robert

     

    Robert Wakefield-Carl

    Sr. Director – Innovation Architects 

    Robert.WC@ttecdigital.com

    T: 949-268-5104

    C: 310-350-2010

    Teams: robert.wc@ttecdigital.com

    Schedule:  https://calendly.com/RobertWC

    Blog: https://RobertWC.blogspot.com

    Subscribe to  ttec Digital Thoughts






Need Help finding something?

Check out the Genesys Knowledge Network - your all-in-one access point for Genesys resources