The participant-level recording feature enables you to generate individual audio recordings for each participant in an MPC. This is useful for scenarios where you need clear, isolated audio tracks for each participant, such as in interviews, conferences, or any multi-party communication.
Scenario: Conduct Sentiment Analysis on Customer-Support Agent Interaction
An organization may seek to conduct sentiment analysis on interactions between customers and support agents. To achieve this, the organization requires separate recording files of both the customer and the agent.
Here’s how the process unfolds:
Participant-level recording can be achieved using both API and XML
Use the following request to add a participant to the MPC and initiate a single-track recording. Please refer to the API documentation for more details.
1
2
3
4
5
6
curl -i --user \
AUTH_ID:AUTH_TOKEN \
-H \
"Content-Type: application/json" \
-d '{"to": "+12025551111","from": "+12025550000", "role": "Agent", "start_mpc_on_enter": true, "recordParticipantTrack": true}' \
https://api.plivo.com/v1/Account/{auth_id}/MultiPartyCall/name_{mpc_name}/Participant/
Use the following request to initiate participant-level recording for an existing member on the MPC bridge. Please refer to the API documentation for more details.
1
2
3
4
5
6
curl -i --user \
AUTH_ID:AUTH_TOKEN \
-H \
"Content-Type: application/json" \
-d '{"file_format": "mp3","record_track_type":"participant"}' \
https://api.plivo.com/v1/Account/{auth_id}/MultiPartyCall/{mpc_name/UUID}/Participant/{Member_Id}/Record/
Here is a sample XML to start participant-level recording. Please refer to the XML documentation for more details.
<Response>
<MultiPartyCall role="customer" recordParticipantTrack="true">mpc_customer</MultiPartyCall>
</Response>