Contact Lens integration

Details of Operata integration to Amazon Connect, Contact Lens.

Amazon Connect Contact Lens Integration

Overview

The Operata Contact Lens integration enriches your contact center analytics by bringing Amazon Connect Contact Lens data directly into the Operata platform. This integration provides insights into:

  • Customer and agent sentiment analysis
  • Agent policy compliance monitoring
  • Script adherence tracking
  • Real-time conversation analytics

By correlating Contact Lens data with existing CX Observability metrics, you can gain comprehensive insights into the complete customer experience within your contact centers.

Integration Components

The integration uses two Operata-provided CloudFormation templates to capture different types of Contact Lens data:

  1. Contact Lens Summary Integration

    • Agent and customer sentiment scores
    • Words per minute counts
    • Talk/silence ratio percentages
    • Customer-defined Contact Lens rules (real-time and post-call)
    • Keyword and phrase detection
  2. Operata Contact Lens Rules

    • Pre-configured Operata-defined detection rules
    • Real-time and post-call analysis capabilities

Important: Operata does not have visibility or access to call transcripts for privacy and security compliance.

Prerequisites

Before implementing this integration, ensure you have:

  • Amazon Connect Contact Lens enabled in your environment and contact flows
  • AWS Account with appropriate permissions
  • Active Operata subscription with Playbook 9 (Experience Insights) enabled
  • IAM permissions to deploy CloudFormation stacks (view required permissions)

Need help enabling Contact Lens? Visit the AWS Contact Lens service page for setup instructions.


Architecture Overview

Core Technologies

The integration leverages two key AWS services:

Data Flow Diagrams

Contact Lens Summary Data Collection Contact Lens Summary Integration Flow

Contact Lens Event Data Collection Contact Lens Event Integration Flow


Deployed AWS Resources

The CloudFormation template provisions the following AWS services:

ServiceQuantityPurpose
EventBridge Pipe1Event processing pipeline
API Destination1Operata platform endpoint
IAM Role1Service permissions
IAM Policies2Access control policies
Lambda Function1Event processing logic
Secrets Manager Secret1API key storage

CloudFormation Resources

The CloudFormation stack creates and configures the following resources in your AWS environment:

Core Infrastructure

ResourceTypePurpose
operata-contact-lens-data-streamAWS::Kinesis::StreamStreams Contact Lens Summary data from S3 to Operata via Lambda processing
operataPipeAWS::Pipes::PipeEventBridge pipe that consumes Kinesis stream data and forwards to Operata
ccv3-s3-kinesis-integratorAWS::Lambda::FunctionProcesses S3 event notifications from Analysis/Voice/ folder

Event Management

ResourceTypePurpose
operataConnectionAWS::Events::ConnectionEventBridge connection for secure data transmission to Operata
operataApiDestinationAWS::Events::ApiDestinationAPI endpoint for sending Contact Lens data to Operata platform
operataContactLensEventBridgeRuleAWS::Events::RuleCaptures Contact Lens events with operata_ prefixed action names

S3 Integration

ResourceTypePurpose
contactlensdatabucketNotifications<ID>Custom::S3BucketNotificationsTriggers Lambda function when Contact Lens files are created
BucketNotificationsHandler<ID>AWS::Lambda::FunctionAWS-generated function to handle S3 bucket notifications

Security & Access Management

ResourceTypePurpose
operataAPIKeySMAWS::SecretsManager::SecretSecurely stores Operata API key for group authentication
operataApiDestinationEventsRole<ID>AWS::IAM::RoleAllows EventBridge to invoke API destinations
operataEventBridgePipeRoleAWS::IAM::RoleGrants EventBridge pipe access to Kinesis and API destinations
operataEventBridgeKinesisPipeSourcePolicyAWS::IAM::PolicyKinesis stream access permissions
operataEventBridgePipeAPIDestinationPolicyAWS::IAM::PolicyAPI destination invocation permissions

Lambda Function Security

ResourceTypePurpose
Lambda Service RoleAWS::IAM::RoleGrants Lambda access to S3, Kinesis, and network resources
Lambda Security GroupAWS::EC2::SecurityGroupNetwork security for VPC-deployed Lambda (optional)

Lambda Function Permissions

The Lambda service role includes the following managed policies:

  • AWSLambdaBasicExecutionRole - Basic Lambda execution permissions
  • AWSLambdaVPCAccessExecutionRole - VPC access (when deployed in VPC)

Key IAM Policy Permissions

Kinesis Access Policy:

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Action": [
        "kinesis:DescribeStream",
        "kinesis:DescribeStreamSummary",
        "kinesis:GetRecords",
        "kinesis:GetShardIterator",
        "kinesis:ListShards",
        "kinesis:ListStreams"
      ],
      "Resource": "arn:aws:kinesis:REGION:ACCOUNT:stream/STREAM_NAME",
      "Effect": "Allow"
    }
  ]
}

API Destination Policy:

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Action": "events:InvokeApiDestination",
      "Resource": "arn:aws:events:REGION:ACCOUNT:api-destination/ENDPOINT_NAME",
      "Effect": "Allow"
    }
  ]
}

Configuration Diagrams

Kinesis Stream Configuration Kinesis Stream Setup

Contact Lens EventBridge Rule Configuration EventBridge Rule Configuration

Security Group Configuration (VPC deployments only) Security Group Settings


Data Integration Details

Included Data Types

The integration captures comprehensive Contact Lens analytics while maintaining privacy compliance:

Contact Lens Summary Data

Contact Lens Event Data

Data Processing Flow

  1. Contact Lens Analysis: Amazon Connect processes calls and generates summary data
  2. S3 Storage: Analysis results stored in designated S3 bucket under Analysis/Voice/ prefix
  3. Event Trigger: S3 events automatically trigger the Lambda processor
  4. Data Streaming: Lambda forwards relevant data to Kinesis stream
  5. Operata Integration: EventBridge pipes deliver processed data to Operata platform

Cost Considerations

Deploying this integration incurs minimal AWS service costs. For detailed cost breakdown and estimation, see the charges documentation.

Primary cost factors:

  • Lambda execution time
  • Kinesis stream throughput
  • EventBridge event processing
  • Secrets Manager storage

Ready to get started? Follow our installation guide for step-by-step deployment instructions.


What’s Next

Follow the Installation link below, for details on installation and testing.