Source record · tier 2 current vendor documentation
Grant Connect Customer access to your AWS Lambda functions
- Publisher
- Amazon Web Services
- URL
- https://docs.aws.amazon.com/connect/latest/adminguide/connect-lambda-functions.html
- Published
- unknown
- Updated
- unknown
- Accessed
- 2026-10-02
- HTTP status
- 200
- License
- AWS documentation, all rights reserved; no-redistribution; short excerpts and locators only
Source notes citing this source
- An AWS Lambda function must be added to the Amazon Connect instance (console, Flows page, AWS Lambda section) before a flow can select it; adding it there for a same-Region function also adds the resource permissions that let Amazon Connect invoke it. in context
- Callers hear silence while a Lambda function invoked from a flow is running. in context
- Amazon Connect limits a sequence of Lambda functions in a flow to 20 seconds in total and times out with an error when the total is exceeded; putting a Play prompt block between functions breaks up the chain. in context
- To call a Lambda function in another Region or account, enter its ARN in the block and add a resource-based policy on the function with principal connect.amazonaws.com, source account set to the instance's account and source ARN set to the instance ARN. in context
- The flow takes the Error path for a Lambda call when Lambda cannot be reached, the function throws an exception, the response is not understood, or the function runs longer than the limit. in context
- A $.External reference to Lambda output always resolves against the most recently invoked function, so a value needed after a later Lambda call must first be saved as a contact attribute or passed as a parameter. in context
- Lambda return values used directly through $.External are not included in contact records; only values copied into contact attributes with Set contact attributes are. in context
- A Lambda response returned to an Amazon Connect flow must be smaller than 64 KB of UTF-8 data. in context
- If a flow's Lambda invocation is throttled, hits a general service failure (500), or returns an error, Amazon Connect retries up to three times within the timeout and then routes the contact down the Error branch. in context
- According to the Lambda integration guide page, when a synchronous Lambda call exceeds the block's timeout the contact routes down the Error branch. disputed in context
- Connect limits the duration of a sequence of Lambda functions to 20 seconds and times out with an error when total execution time exceeds it. in context
- For cross-Region or cross-account use, lambda:AddPermission needs principal connect.amazonaws.com, source account set to the account the instance is in, and source ARN set to the instance ARN. in context
- For a function in a different Region, add it in the flow designer and grant permission with the Lambda add-permission command, using principal connect.amazonaws.com and the instance ARN. in context
- The event Lambda receives has Details.ContactData (always passed, including Attributes, Channel, ContactId, CustomerEndpoint, InitiationMethod, InstanceARN, Queue and SystemEndpoint) and Details.Parameters (the key-value pairs set on the block). in context
- A $.External reference always receives the response of the most recently invoked function, so a response needed after another invocation must be saved as a contact attribute or passed as a parameter. in context
- Variables accessed directly as $.External are not included in contact records; values stored as contact attributes (Set contact attributes, type External) are. in context
- Because Connect retries within the block timeout and a synchronous block cannot wait past 8 seconds, a function whose own timeout exceeds the block timeout can keep running after the caller has already been sent down the Error branch. This is inferred from the two stated limits; no page says it. inferred in context
- The block can send input parameters as JSON including primitive types and nested JSON. in context
- Referencing an array is not supported in a flow; arrays can be used only in another Lambda function. in context
- The response is limited to 64 KB (UTF-8). in context
- If Lambda cannot be reached, throws an exception, returns a response that is not understood, or exceeds the time limit, the flow jumps to the Error branch. in context
- A throttled invocation or a general service failure (500) is retried. A synchronous invocation that returns an error is retried up to 3 times, for a maximum of 8 seconds, after which the flow takes the Error branch. in context
- Created in the same Region as the contact center, a Lambda function can be added to the instance from the console, which automatically adds the resource permissions that let Connect invoke it. in context
- Callers hear silence while a Lambda function runs; AWS recommends a Play prompt block between functions, and breaking a chain with Play prompt blocks allows functions that together exceed 20 seconds. in context
- For STRING_MAP the page says values may include only alphanumeric, dash and underscore characters, yet its own example returns "$1000" as a value. disputed in context
- The setup page labels the field "Timeout (max 8 seconds)" with no async distinction, while the block reference gives 8 s sync and 60 s async. Both are AWS pages; the block reference is more specific. disputed in context
- When the timeout elapses the contact is routed down the Error branch. in context
Cite this source record
APA
WarmTransfer. (2026, October 2). Grant Connect Customer access to your AWS Lambda functions. WarmTransfer. https://warmtransfer.net/knowledge/sources/aws-connect-lambda-functions
BibTeX
@misc{warmtransfer-aws-connect-lambda-functions,
title = {Grant Connect Customer access to your AWS Lambda functions},
author = {{WarmTransfer}},
year = {2026},
url = {https://warmtransfer.net/knowledge/sources/aws-connect-lambda-functions},
note = {Amazon Web Services, accessed 2026-10-02}
}