Contact block: Invoke AWS Lambda function - Amazon Connect

Contact block: Invoke AWS Lambda function


  • Calls AWS Lambda, and optionally returns key-value pairs.

  • The returned key-value pairs can be used to set contact attributes.

Contact flow types

You can use this block in the following contact flow types:

  • Inbound contact flow

  • Customer Queue flow

  • Customer Hold flow

  • Customer Whisper flow

  • Agent Hold flow

  • Agent Whisper flow

  • Transfer to Agent flow

  • Transfer to Queue flow


Note the following properties:

  • Timeout: Enter how long to wait for Lambda to time out.

    If your Lambda invocation gets throttled, the request is retried. It is also retried if a general service failure (500 error) happens.

    When a synchronous invocation returns an error, Amazon Connect retries up to three times, for a maximum of 8 seconds. At that point, the contact is routed down the Error branch.

Configuration tips

  • To use an AWS Lambda function in a contact flow, first add the function to your instance. For more information, see Add a Lambda function to your Amazon Connect instance,

  • After you add the function to your instance, you can select the function from the Select a function drop-down list in the block to use it in the contact flow.

Configured block

When this block is configured, it looks similar to the following image:

Sample flows

Sample Lambda integration


See these topics for scenarios that use this block: