내용으로 건너뛰기

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개 답변
0
수락된 답변

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

답변함 일 년 전

AWS
지원 엔지니어

검토됨 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

관련 콘텐츠