Genesys Cloud - Main

 View Only

Discussion Thread View
  • 1.  Triggers on Outbound Call?

    Posted 08-01-2024 22:12

    Hi, 

    I was wondering if there is a way to setup a trigger that checks for the presence of a queue in an outbound call and cancels the call in case of its absence. Thank you!


    #Implementation

    ------------------------------
    WE PROUDLY SUPPORT UKRAINE.
    ------------------------------


  • 2.  RE: Triggers on Outbound Call?
    Best Answer

    Top 25 Contributor
    Posted 08-02-2024 02:51

    Hi Victor,

    You can try setting up a trigger for v2.detail.events.conversation.{id}.user.start and filter on queueId if its blank.

    Then trigger a workflow that calls this endpoint:

    patch
    /api/v2/conversations/calls/{conversationId}/participants/{participantId}/communications/{communicationId}


    You can reference conversationId, participantId and communicationId (sessionId) from the event attributes itself in Architect.
    The data action above to update the conversation must have this is the request body:
    {
      "state": "disconnected"
    }


    ------------------------------
    Niel Vicente
    DAMAC Properties Co. LLC
    ------------------------------



Need Help finding something?

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