create lightning web component button For cutting call

Hello, good afternoon, I am writing to you since I am looking for the best way to carry out a development with LWC in salesforce, which allows me to cut the call in which the executive is, and send a code to genesys. Please could you guide me how I could do it, since in Salesforce I understand what to do, but I don't know how Genesys Cloud works in that regard. I would greatly appreciate your help.

What sort of code are you wanting to send to Genesys Cloud and what are you expecting to happen as a result of that happening?

The idea is that when the button that we will create with lightning web component is pressed, the call in which the executive is located, the call must be cut off or disconnected and then become available again, in addition to sending a value of a picklist field that we want to send to genesys

use PATCH /api/v2/conversations/calls/{conversationId}/participants/{participantId} to disconnect

what are you expecting to happen as a result of that happening?

value that we will send is saved in genesys, associated with the call, since the codes will be sent, only when the call presents the value, "Client has already canceled debt", which will be identified with the code C0

thank you so much!!

PATCH /api/v2/conversations/calls/{conversationId}/participants/{participantId}/attributes

Thank you very much Tim, then according to what you tell me, when I press the button created in lwc, should the sending be triggered to the two APIs that you tell me?.

Maybe I explained myself wrong. According to what you indicate, when pressing the button, should we fire towards both APIs to be able to cut the call and additionally save the data?

When you make the request to this endpoint and set the state to disconnected, it will disconnect the participant.

When you make the request to this endpoint with your custom attribute data, it will update the attributes on that participant.

perfect Tim, I really appreciate your guidance and help. thank you so much

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.