Participants in conference call

How can I get the number of call participants and their related data in an embeddable framework? I am performing an internal conference call here is the data that I am getting.

{
   "type":"interactionSubscription",
   "data":{
      "category":"connect",
      "interaction":{
         "id":"e833dfeb-117d-41a5-901c-1d9ad7eee2a2",
         "connectedTime":"2022-09-14T08:14:20.864Z",
         "phone":"",
         "name":"",
         "isConnected":true,
         "isDisconnected":false,
         "isDone":false,
         "state":"CONNECTED",
         "isCallback":false,
         "isDialer":false,
         "isChat":false,
         "isEmail":false,
         "isMessage":false,
         "isVoicemail":false,
         "remoteName":"Conference",
         "recordingState":"none",
         "displayAddress":"",
         "ani":"Internal",
         "calledNumber":"Internal",
         "direction":"Inbound",
         "isInternal":true,
         "startTime":"2022-09-14T08:09:52.997Z"
      }
   }
}

Hi @Uzair_Anwar
There is a way to set participant data in the architect inbound flow, and then add that data to the customInteractionAttributes field in the configuration of the Embeddable Framework.
See these links for more:
Configuration and Methods
Actions
customInteractionAttributes
Set Participant Data

2 Likes

Hi @jacobshaw
can we use Genesys Conversation api for the this? /api/v2/conversations/calls/{conversationId} as we have interaction Id . and we can also get auth token by using
window.PureCloud.User.getAuthToken(function (token) { console.log("TOKEN: ", token); authToken = token; })
is it good or not to use /api/v2/conversations/calls/{conversationId} outside the framework.js file

Yes, this resource you mentioned will return participant data as well so that should work also.

1 Like

Thank you @jacobshaw …its mean I can use genesys API's outside the framework.js without any issue for performing any operation. because according to the documentation of Embedable framework
User.getAuthToken returns a Genesys Cloud authentication token for making public API requests.
According to you which one approach is recommended with respect to the performance
1:Set participant data
2: using Genesys API

They're equivalent; everything uses the same Platform API behind the scenes.

@tim.smith waoo that's really nice. thank for your valuable response

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