← Amazon Connect Build Library
Amazon ConnectSample Flow

Retrieve customer data with an AWS Lambda flow

Invoke Lambda from a contact flow and use the returned value as customer context.

What it does

The sample looks up a US state from a caller’s area code and uses a different response for chat. It demonstrates function invocation, returned attributes and failure handling.

When to use it

  • Lambda integration
  • Data lookup
  • Data dip

What it uses

  • Amazon Connect flows
  • Invoke AWS Lambda function
  • Contact attributes
Technologies

Who it’s for

  • Developers
  • Contact Center Engineers

Before you build

AWS documents a 4-second timeout for the sample function; when it expires, the flow plays an apology prompt instead of stalling the contact. Voice contacts branch on the returned State external attribute and chat receives a separate response. The documentation does not describe the task path, so define one if this flow will receive tasks.