Genesys Cloud - Developer Community!

Sign Up

Expand all | Collapse all

Automatic callback when call is abandoned

  • 1.  Automatic callback when call is abandoned

    Posted 3 days ago

    Can anyone guide me through steps to create a callback option when a Call is abandoned 


    #Architect
    #Archy
    #CXasCode
    #DataActions
    #EmbeddableFramework
    #Integrations
    #MobileMessenger
    #PlatformAPI
    #PlatformCLI
    #PlatformSDK
    #Scripts
    #Triggers
    #Uncategorized
    #WebMessaging

    ------------------------------
    Mohamed Hassan Mohamed
    ------------------------------


  • 2.  RE: Automatic callback when call is abandoned

    Posted 3 days ago

    Hi Mohamed,

    If the goal is to create a callback after the caller has already abandoned in queue, I would look at handling it outside the In-Queue Flow.

    There is an older community thread here that may help:

    How to capture Abandon Calls when call is in queue

    https://community.genesys.com/discussion/how-to-capture-abandon-calls-when-call-is-in-queue

    In that thread, the suggestion was to use an event trigger such as:

    • customer.end if you want to react when the customer disconnects, or
    • acd.end filtered with acdOutcome == "ABANDON" if you specifically want queue abandons. Anton Vroon also called out that acd.end is the cleaner option for this use case, and noted that Workflow does not have a native create callback action, so you would need to create it via a Data Action / API.  

    So the overall pattern would be:

    Trigger → Workflow → Data Action/API to create the callback

    Hope this helps.



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



  • 3.  RE: Automatic callback when call is abandoned

    Posted 3 days ago

    Thanks dear for your support i will start to implement that and i will let you know if i face any issue and appreciate to help then 

    thanks alot



    ------------------------------
    Mohamed Hassan Mohamed
    ------------------------------



  • 4.  RE: Automatic callback when call is abandoned

    Posted 3 days ago

    Sure, please feel free to post here if you run into any issues while implementing it, and I'll be happy to help where I can.



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



  • 5.  RE: Automatic callback when call is abandoned

    Posted 3 days ago
    Edited by Kaio Oliveira 3 days ago

    hi Mohamed

    You need one workflow and one Trigger. 

    I attch a simple Workflow and the data action ro reveved participantId (external): and created call back

    Edit: The file is in the comment below.

    Trigger



    ------------------------------
    Kaio Oliveira
    GCP - GCQM - GCS - GCA - GCD - GCO - GPE & GPR - GCWM

    PS.: I apologize if there are any mistakes in my English; my primary language is Portuguese-Br.
    ------------------------------



  • 6.  RE: Automatic callback when call is abandoned

    Posted 3 days ago
    Hello 
    Tanks for your update 

    Can you share with me sample of the workflow and data action  used





  • 7.  RE: Automatic callback when call is abandoned

    Posted 3 days ago
    Edited by Kaio Oliveira 3 days ago
      |   view attached

    Mohamed Attach file



    ------------------------------
    Kaio Oliveira
    GCP - GCQM - GCS - GCA - GCD - GCO - GPE & GPR - GCWM

    PS.: I apologize if there are any mistakes in my English; my primary language is Portuguese-Br.
    ------------------------------

    Attachment(s)

    zip
    abandon.zip   9 KB 1 version


  • 8.  RE: Automatic callback when call is abandoned

    Posted 3 days ago

    Thanks for your update appreciated 


    If it possible can you show me the workflow design and how to integrate API with workflow 



    ------------------------------
    Mohamed Hassan Mohamed
    ------------------------------



  • 9.  RE: Automatic callback when call is abandoned

    Posted 3 days ago
    I've included the export of the data actions and workflow in the attached file.
     
    You can simply import them, but if needed, I can send screenshots.


    ------------------------------
    Kaio Oliveira
    GCP - GCQM - GCS - GCA - GCD - GCO - GPE & GPR - GCWM

    PS.: I apologize if there are any mistakes in my English; my primary language is Portuguese-Br.
    ------------------------------



  • 10.  RE: Automatic callback when call is abandoned

    Posted 3 days ago

    Thanks you bro for this help

    Could you please send me a screenshot?



    ------------------------------
    Mohamed Hassan Mohamed
    ------------------------------



  • 11.  RE: Automatic callback when call is abandoned

    Posted 3 days ago

    1 - Import the data actions and publish: 

    The integration use the Genesys Data Actions 

    2 - Create a Workflow: 

    3 - Import workflow: 

    4 - Use the data actions in the workflow:

    Remember that you need to adjust the customer number variable according to your local numbering system.

    and publish

    5 - Created Trgger and user the workflow. 

     



    ------------------------------
    Kaio Oliveira
    GCP - GCQM - GCS - GCA - GCD - GCO - GPE & GPR - GCWM

    PS.: I apologize if there are any mistakes in my English; my primary language is Portuguese-Br.
    ------------------------------



  • 12.  RE: Automatic callback when call is abandoned

    Posted 3 days ago

    I would like to thanks you again about your effort appreciated dear.

    i will try and if i faced any issue will let you know .

    thank you very much 



    ------------------------------
    Mohamed Hassan Mohamed
    ------------------------------



  • 13.  RE: Automatic callback when call is abandoned

    Posted yesterday

    Hello ,

    I applied the above steps and also add test Q and make a test call and disconnect to make anandond call so abandond is occured and i didnot receive a callback even if i saw the reports and it is occured as an abandand without callback So how to check for that 



    ------------------------------
    Mohamed Hassan Mohamed
    ------------------------------



  • 14.  RE: Automatic callback when call is abandoned

    Posted yesterday

    I found data action for callback contating 100 % error and i think this is might be the issue  



    ------------------------------
    Mohamed Hassan Mohamed
    ------------------------------



  • 15.  RE: Automatic callback when call is abandoned

    Posted yesterday
    Edited by Mohamed Hassan Mohamed yesterday



    ------------------------------
    Mohamed Hassan Mohamed
    ------------------------------



  • 16.  RE: Automatic callback when call is abandoned

    Posted yesterday

    I check also for permissions and all granted @Kaio Oliveira @Phaneendra Avatapalli



    ------------------------------
    Mohamed Hassan Mohamed
    ------------------------------



  • 17.  RE: Automatic callback when call is abandoned

    Posted yesterday
    Edited by Phaneendra Avatapalli yesterday

    Hi Mohamed,

    From the screenshot, the immediate blocker looks to be the 403 Forbidden error with:

    missing permission(s): [conversation:callback:create]

    So I would first double-check the OAuth client / integration credentials being used by the Data Action, since Genesys data actions run using an OAuth client with Client Credentials, and that credential needs the required callback permission/scope.

    Also, once that is resolved, it may be worth validating the callbackNumbers value as well. My understanding is that it should be in E.164 format (for example + plus country code and number).

    Hope this helps.



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



  • 18.  RE: Automatic callback when call is abandoned

    Posted yesterday

    I will provide you a screenshot from OAuth

    but what about the format if iam dialing a number in KSA shall i add +966+dial



    ------------------------------
    Mohamed Hassan Mohamed
    ------------------------------



  • 19.  RE: Automatic callback when call is abandoned

    Posted yesterday

    Hi Mohamed

    Not necessarily.
    As I mentioned earlier, you need configure the variable that has the customer's phone number according to your numbering plan.



    ------------------------------
    Kaio Oliveira
    GCP - GCQM - GCS - GCA - GCD - GCO - GPE & GPR - GCWM

    PS.: I apologize if there are any mistakes in my English; my primary language is Portuguese-Br.
    ------------------------------



  • 20.  RE: Automatic callback when call is abandoned

    Posted yesterday

    Hi

    so what steps should i follow to do that ?

    also if it just configured variables so why in testing the callback in data action gives error however iam trying to add the phone number with all options with +966 and without and with only 966

    iam confused 



    ------------------------------
    Mohamed Hassan Mohamed
    ------------------------------



  • 21.  RE: Automatic callback when call is abandoned

    Posted 13 hours ago
    Edited by Mohamed Hassan Mohamed 13 hours ago




    FYI Screenshot from OAuth 

    Also i need to know if it must be create a OAuth app as Client Credentials and even if i do that where can i add the Role that cause the issue  



    ------------------------------
    Mohamed Hassan Mohamed
    ------------------------------



  • 22.  RE: Automatic callback when call is abandoned

    Posted 10 hours ago

    Hi ALL, @Kaio Oliveira @Phaneendra Avatapalli 

    i have created OAuth now with tyoe Client Credentials and assigned the needed role which contained (needed permissions) So what else should i do 



    ------------------------------
    Mohamed Hassan Mohamed
    ------------------------------



  • 23.  RE: Automatic callback when call is abandoned

    Posted 10 hours ago











    ------------------------------
    Mohamed Hassan Mohamed
    ------------------------------



  • 24.  RE: Automatic callback when call is abandoned

    Posted 9 hours ago

    Hi Mohamed,

    From my understanding, the 403 Forbidden error may be pointing to the OAuth client used by the Data Action/API call.

    For Client Credentials, Genesys adds the required access by assigning roles to the OAuth client in the Assign Roles step, and those roles also need the correct division access. So I would verify that the OAuth client actually has a role covering conversation:callback:create.

    Link:

    https://help.genesys.cloud/articles/create-an-oauth-client/

    Hope this helps. Hopefully someone else from the community might add more to this as well



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



  • 25.  RE: Automatic callback when call is abandoned

    Posted 9 hours ago

    Hi Mohamed,

    Apologies, I just saw your note that you already created the OAuth client and assigned the required role/permission.

    From my understanding, a few other things worth double-checking would be:

    • whether the Data Action / integration is actually using that new Client ID / Client Secret
    • whether the role assigned to the OAuth client has the correct division access as well
    • then re-testing the call after updating the credentials

    Genesys' OAuth client guide also notes that for Client Credentials, access is applied by assigning roles to the OAuth client itself.

    Link:

    https://help.genesys.cloud/articles/create-an-oauth-client/

    I'm not too sure what else might be causing it from here, but hopefully someone else from the community may be able to add more troubleshooting tips.



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



  • 26.  RE: Automatic callback when call is abandoned

    Posted 5 hours ago

    Olá!

    Basta inbserir algumas permissões ao OAUTH em questão.



    ------------------------------
    Augusto Aranha
    Gerente de Desenvolvimento de Sistemas e Planejamento
    ------------------------------



  • 27.  RE: Automatic callback when call is abandoned

    Posted 5 hours ago

    Se preferir, utilize essa Genesys Cloud Data Action que anexo a mensagem.

    Lembresse de inserir as credenciais ao OAUTH e alterar o Id do script de tela que adiciono como variável padrão.



    ------------------------------
    Augusto Aranha
    Gerente de Desenvolvimento de Sistemas e Planejamento
    ------------------------------



  • 28.  RE: Automatic callback when call is abandoned

    Posted 4 hours ago

    How can I modify the permissions of the existing OAuth client?

    Provide steps please



    ------------------------------
    Mohamed Hassan Mohamed
    ------------------------------