Skip to main content

InsightsService

A list of all methods in the InsightsService service. Click on the method name to view detailed information about that method.

MethodsDescription
cai_analyze_interactionReturns multiple insights including summaries, emotion, key phrases, questions asked, and more in a single API call.

cai_analyze_interaction

Returns multiple insights including summaries, emotion, key phrases, questions asked, and more in a single API call.

  • HTTP Method: POST
  • Endpoint: /ai/insights/v1/async/analyze-interaction

Parameters

NameTypeRequiredDescription
request_bodyInteractionInputThe request body.
webhookstrThe webhook URI to which the job response will be returned

Return Type

CaiAsyncApiResponse

Example Usage Code Snippet

from ring_central import RingCentral, Environment
from ring_central.models import InteractionInput

sdk = RingCentral(
access_token="YOUR_ACCESS_TOKEN",
base_url=Environment.DEFAULT.value
)

request_body = InteractionInput(
content_uri="contentUri",
encoding="Mpeg",
language_code="en-US",
source="RingCentral",
audio_type="CallCenter",
separate_speaker_per_channel=True,
speaker_count=2,
speaker_ids=[
"speakerIds"
],
enable_voice_activity_detection=True,
insights=[
"All"
],
speech_contexts=[
{
"phrases": [
"phrases"
]
}
]
)

result = sdk.insights.cai_analyze_interaction(
request_body=request_body,
webhook="webhook"
)

print(result)

Build Your Own SDKs with  liblab

Build developer friendly SDKs in minutes from your APIs

Start for Free →