- Newest
- Most votes
- Most comments
I understand you're having difficulty reading a custom attribute from the Update Customer Profiles block in your AWS Connect flow. This is a common issue, and I can provide some guidance on how to resolve it.
When using the Customer Profiles block in an AWS Connect flow, it's important to understand how to properly store and retrieve the response fields, especially after an Update operation.
For the Update profile property in the Customer Profiles block, you need to explicitly define which attributes you want to persist for use in subsequent blocks. This is done by specifying the attributes in the "Response fields" section of the Update profile configuration.
Here's how you can address your issue:
-
In your Update Customer Profiles block, make sure you've defined the custom attribute you want to use later in the "Response fields" section.
-
When you define the attribute in the Response fields, you're essentially storing it as a contact attribute that can be accessed in subsequent blocks.
-
After doing this, you should be able to access your custom attribute in the Play Prompt block (or any subsequent block) using the following syntax:
$.Attributes.YourCustomAttributeName
Where "YourCustomAttributeName" is the name you gave to the custom attribute in the Response fields section of the Update profile configuration.
Remember, the syntax for accessing attributes from the Update profile block is different from the Get profile block. While you can directly access Get profile results with $.Customer.AttributeName, for Update profile results, you need to use the $.Attributes.AttributeName syntax.
If you're still having trouble after ensuring your custom attribute is properly defined in the Response fields, double-check that the attribute name in your Play Prompt block exactly matches the name you used in the Update profile block, including any capitalization.
By following these steps, you should be able to successfully read your custom attribute from the Update Customer Profiles block in your subsequent flow blocks.
Sources
Flow block in Amazon Connect: Customer profiles - Amazon Connect
Relevant content
asked 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 5 months ago

it solved my issue, thx you.
$.Customer.Attributes.['info'] $.Customer.Attributes.info