Synchronous Lambda Invocation
Flow invokes Lambda function and waits until function completes processing before moving to next step. Flow uses result to determine next action.
Lambda Timing Constraint
Amazon Connect flow block waits maximum of 8 seconds for Lambda to return result. Timeout value is configurable but cannot exceed 8 seconds.
Flow Timeout vs Lambda Timeout
Amazon Connect flow timeout and Lambda function timeout need to match. If flow times out before Lambda completes
Asynchronous Invocation Need
If function requires more than 8 seconds to complete
CloudWatch REPORT Log
Contains unique request identifier
Lambda Duration Testing
Test function in Lambda console or check CloudWatch log group for duration. REPORT log shows exact processing time in milliseconds.
Query Data Sources Use Case
Query internal and external data sources to retrieve system or contact information. Use to personalize interaction
Self-Service Implementation Use Case
Interact with other AWS services and third-party applications to implement self-service options for customers.
Update Data Sources Use Case
Update internal and external data sources using information collected during contact interaction with the flow.
DynamoDB Lookup Pattern
Lambda function performs DynamoDB lookup to retrieve configuration settings. Returns data like language and line of business name for branded greeting.
Synchronous Response Speed
When Lambda runs successfully it returns response within milliseconds. Flow waits for response before continuing and contact experience is not affected.
Error Path Timeout
If Lambda does not return response within 8 seconds
Fallback Strategy
Experience designer implements fallback that selects default language and offers generic greeting if Lambda times out or errors.
Retry Logic
Implement retry logic in code to handle intermittent errors. Helps ensure function completes successfully despite temporary issues.
Error Information Return
Return information about any error so flow can use this to fall back on default behavior. Enables graceful degradation.
Processing Time Testing
Time test Lambda function processing time under different conditions. Ensures function completes within allotted timeout.
Asynchronous Lambda Pattern
Flow invokes first Lambda synchronously which immediately invokes second Lambda asynchronously and returns. Second Lambda handles long running process while flow continues.
Process Tracker Record
First Lambda creates tracker record in DynamoDB table to monitor asynchronous process status. Later Lambda function checks this tracker for results.
Multi-Step Process Orchestration
Multi-Step Process Orchestration uses Lambda with custom state machines or Step Functions workflows to coordinate multiple AWS services in sequence. Unlike simple Lambda functions, this approach manages complex workflows with conditional logic, parallel processing, and error handling. It updates process status quickly throughout execution, allowing you to track progress and handle failures gracefully across multiple service calls.
Get Results Lambda
Third Lambda function verifies results of asynchronous process by checking tracker status. Returns status back to flow for decision making.
20 Second Sequence Limit
Amazon Connect limits duration of sequence of Lambda functions to 20 seconds. Break up sequences to invoke multiple functions lasting longer than threshold.
Voice Contact Silence
Contact experiences silence when flow runs Lambda function. If total runtime exceeds timeout contact receives error message.
Money Transfer Use Case
Lambda starts transfer request with third-party application and immediately returns. Process runs to completion with continuous status updates checked by different Lambda.
Loop Logic Pattern
Flow implements loop logic so long process can complete without affecting contact experience. Checks status periodically while keeping customer engaged.