Skip to content

Looking for Guidance on Amazon Connect Attributes

0

I'm looking for guidance related to set attributes, check attributes and lambda attributes.

  1. What is the purpose
  2. Under what conditions , we can use manual and dynamic.
  3. Scenario is , set attributes (isHoliday - False)--> Lambda Function(checkHoliday) return if today is holiday or not--> Check attributes (if isHoliday = true, call disconnect and if false=Call continue).

In this i am wondering what is the purpose of set attributes at first place. Secondly, will isHoliday which we pass on from setAttribute understands by lamdba and it return the isHoliday conditions.

Please guide.

1 Answer
0
Accepted Answer

In Amazon Connect, contact attributes are key-value pairs that allow you to store and use information throughout a contact flow. Let me address your questions:

  1. Purpose of contact attributes: Contact attributes enable you to create dynamic and personalized experiences for your customers. They allow you to store information that can be referenced later in the flow, create data-driven IVRs, integrate with other AWS services, and enable custom reporting and analytics.

  2. Manual vs. Dynamic attributes:

  • Manual attributes are used when you know the exact value you want to set and it doesn't change based on the contact.
  • Dynamic attributes are used when the value needs to be determined at runtime based on other factors or external data sources.

For your scenario, you would use manual attributes when setting a default value (isHoliday = False) and dynamic attributes when the value comes from an external source like your Lambda function.

  1. Regarding your specific scenario: The purpose of setting the attribute (isHoliday = False) at the beginning is to establish a default value. This ensures that even if something goes wrong with the Lambda function, you have a fallback value to check against.

When you invoke the Lambda function, you can pass the current attributes to it, including isHoliday. The Lambda function can then check if today is actually a holiday and return an updated value for isHoliday (true or false).

The Lambda function would return a response that includes the updated isHoliday attribute, which Amazon Connect would then store. After the Lambda function executes, you can use the Check contact attributes block to evaluate the updated isHoliday value and route the contact accordingly.

One important consideration: Be aware that contact attributes set using the Set contact attributes block will be included in the contact record and available for screen pop to any custom agent desktop. Also, there's a 32KB size limitation for contact attributes to prevent truncation.
Sources
Operational excellence in Amazon Connect workloads - Amazon Connect
How to reference contact attributes in Amazon Connect - Amazon Connect
How contact attributes work in Amazon Connect - Amazon Connect

answered a year ago
AWS
SUPPORT ENGINEER
reviewed a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.