Retrieve real-time Contact Lens conversational analytics (transcript, sentiment, categories) for a live voice contact

domain: docs.aws.amazon.com · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Enable Contact Lens real-time conversational analytics on the relevant contact flow (per the Amazon Connect admin guide's contact analysis segment stream setup) so voice contacts are analyzed as they happen.
  2. During or immediately after the call, call the ListRealtimeContactAnalysisSegments API with POST /realtime-contact-analysis/analysis-segments, passing InstanceId and ContactId (MaxResults up to 100) to page through analysis segments.
  3. Parse returned Segments entries for Transcript objects (ParticipantRole, Content, Sentiment, BeginOffsetMillis/EndOffsetMillis, IssuesDetected) and Categories objects (MatchedCategories/MatchedDetails with PointsOfInterest) as they accumulate during the call.
  4. If the response includes a NextToken, call the API again to retrieve additional segments; when a PostContactSummary segment with a completed Status appears and NextToken is absent, the analysis session has finished.
  5. For scale beyond simple polling, subscribe to the Kinesis Data Stream-based real-time contact analysis segment stream instead, which delivers STARTED/SEGMENTS/COMPLETED/FAILED events and avoids the polling API's rate limits.

Known gotchas

Related routes

Retrieve voice conversation transcripts from Genesys Cloud via the Speech and Text Analytics API
developer.genesys.cloud · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans