Agent workspace - show view block set json

0

How can I dynamically set the values for the four items in a data section within an Amazon Connect view? I've configured contact attributes in my Amazon Connect flow and created a Show View block within the same flow. How do I pass these attribute values to the data section items using JSON format in the Show View block configuration?

Ammu
gefragt vor einem Monat117 Aufrufe
1 Antwort
0
Akzeptierte Antwort

1 - Enable Dynamic Items: Navigate to the View Design UI. Check the "This is dynamic" checkbox of DataSection component to make the 'Items' property dynamic. Click "Publish" to save the changes.

2 - Go to the "Show View" block within the Connect Flow. Look for the field named "Set JSON". If it is not visible: Try selecting a different view from the View dropdown, then reselect your original view. This can refresh the UI and make the "Set JSON" field appear. Once the "Set JSON" field is visible, enter the following JSON configuration:

{
  "Items": [
    {
      "Label": "Example 1",
      "Value": "Attribute 1"
    },
    {
      "Label": "Example 2",
      "Value": "Attribute 2"
    },
    {
      "Label": "Example 3",
      "Value": "Attribute 4"
    },
    {
      "Label": "Example 4",
      "Value": "Attribute 2"
    }
  ]
}

To set a value field in the JSON to user-defined attributes, format it like this:

"Value": "$.Attributes.val1"

Replace val1 with the actual attribute key you wish to use.

Arne
beantwortet vor 22 Tagen

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen