question

Mateusz Stopka avatar image
Mateusz Stopka asked Vineskills Team answered

AI Interaction Analytics - missing emotion insights property

We are trying to use /ai/insights/v1/async/analyze-interaction endpoint described in Extract interaction analytics from a media file (ringcentral.com). We tried multiple options for `insights` field but none of them returned any Emotion insights.

In documentation there are emotion insights for each sentence in utteranceInsights

"utteranceInsights": [
    {
        "start": 2.52,
        "end": 6.53,
        "text": "Could produce large hail isolated tornadoes and heavy rain.",
        "confidence": 0.93,
        "speakerId": "1",
        "insights": [
            {
                "name": "Emotion",
                "value": "Neutral",
                "confidence": 0.7
            }
        ]
    }
],

but in our tests, regardless of what recording we send, the insights array is always empty.

Sample request:

1. With "all" insights:

{
    "contentUri": "file url",
    "encoding": "Mpeg",
    "languageCode": "en-US",
    "speakerCount": 2,
    "enrollmentIds": [
        "11788847407133"
    ],
    "insights": ["All"],
    "audioType": "CallCenter"
}

2. With "All" "Emotion" "Energy" insights:

{
    "contentUri": "file url",
    "encoding": "Mpeg",
    "languageCode": "en-US",
    "speakerCount": 2,
    "enrollmentIds": [
        "11788847407133"
    ],
    "insights": [
        "All",
        "Emotion",
        "Energy"
    ],
    "audioType": "CallCenter",
    "enableVoiceActivityDetection": true,
    "enablePunctuation": true,
    "enableSpeakerDiarization": true
}

Both cases returns response with empty insights:
1691497827609.png

Here are some more jobId's that we tried to get insights:
1. 04a7ceec-35e1-11ee-90cb-0050569cffc5

2. 0249cc0a-35e0-11ee-b580-0050569c72ca

3. 6fe183c8-35d8-11ee-b31c-0050569cffc5


Is there any way to request Interaction Analytics with emotion insights?

rest api
1691497827609.png (77.2 KiB)
1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Phong Vu avatar image
Phong Vu answered

Hi there,

Finally the missing emotion insights issue is fixed and available in the response. Please try again and let me know if it is still an issue.

1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Vineskills Team avatar image
Vineskills Team answered

Hey @Mateusz Stopka Have you guys been using the interaction analytics Endpoint sucessfully? I was wondering how is that been working for devs.
We are considering building something to extract that data but we are worried if its not stable enough since its still in Beta. Do you get many issues?

1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Developer sandbox tools

Using the RingCentral Phone for Desktop, you can dial or receive test calls, send and receive test SMS or Fax messages in your sandbox environment.

Download RingCentral Phone for Desktop:

Tip: switch to the "sandbox mode" before logging in the app:

  • On MacOS: press "fn + command + f2" keys
  • On Windows: press "Ctrl + F2" keys