- Newest
- Most votes
- Most comments
Got the solution
In Amazon Connect Journeys, the Check attributes block does not read attributes directly from a plain JSON Lambda response. Instead, the journey engine expects the Lambda to return data in a CustomerProfiles-style response envelope. https://docs.aws.amazon.com/connect/latest/adminguide/lambda-invoke-functions.html
If the response is not wrapped in this structure, the journey cannot map the attributes, and the flow will go to No Match even if the values exist in the raw Lambda output.
Required response structure
Your Lambda must return the attributes inside:
{ "Items": { "CustomerProfiles": [ { "Id": "string", "Result": "SUCCESS", "ResultData": {} } ] } }
Example working response
For this specific case:
{ "Items": { "CustomerProfiles": [ { "Id": "0375e7afe842549c369aeaa2ac6b26", "Result": "SUCCESS", "ResultData": { "profileId": "037511afe842549c369aeaa2ac6b26", "firstName": " Hima", "emailAddress": "himaom", "Prior": "High", "blah1": "dddddd4545dkhghddffd", "blah2": "12dggcsdjhjhfdfsfffjkldjddadsklsf", "jwt": "tokenvalue", "jwt_used": "false" }, "Message": null } ] } }
Relevant content
- AWS OFFICIALUpdated 9 months ago
