- Newest
- Most votes
- Most comments
How do I access related contact Attribute in Amazon Connect Flows?How do I access related contact Attribute in Amazon Connect Flows?How do I access related contact Attribute in Amazon Connect Flows? Ccc
answered a year ago
In Amazon Connect flows, you can access related contact attributes through several methods depending on your specific use case:
-
For related contacts (such as in email threads), you can use the "Describe Contact" API within a Lambda function to check if a "RelatedContactId" field exists. This helps determine if the current contact is part of an existing thread or a new one. The first email in a thread won't have a "Related contact" field, while subsequent emails in the same thread will contain this field.
-
For accessing standard system attributes like the inbound phone number (the number being dialed), you can use the System attribute "Channel.Address" in your contact flow.
-
To reference attributes in your flows:
- For attributes in the same namespace (like system attributes), use the attribute name or the Destination key you specified
- For attributes from external sources, use the appropriate JSONPath syntax
- For user-defined attributes set in your flow, use $.Attributes.AttributeName
- For Lambda function attributes, use $.External.AttributeName
-
If you need to store and reference these attributes for later use (such as informing agents which line a call came from), you can use a "Set contact attributes" block to save the value to a custom attribute that can be accessed throughout the flow.
-
You can then use a "Check contact attributes" block (which functions like an if-else statement) to make decisions based on these attribute values in your flow.
When working with attributes that have special characters in their names (like spaces), place brackets and single quotations around the attribute name, for example: $.Attributes.['user attribute name'].
Sources
Question related to amazon connect flow | AWS re:Post
Display contact information to the agent in the Contact Control Panel (CCP) - Amazon Connect
How to reference contact attributes in Amazon Connect - Amazon Connect
I need related contact ID for email reply provide steps by using contact flows and contact attributes of inbound email flow and outbound email flow | AWS re:Post
answered a year ago
This post is closed: Adding new answers, comments, and votes is disabled.
Relevant content
asked 5 years ago
- AWS OFFICIALUpdated a year ago
