Admins can use Amazon Connect contact attributes to give agents context about a call. You can add call information to ticket fields and to the incoming call notification.

What's my plan?
Add-on Contact Center

Summary: ◀▼

Use Amazon Connect contact attributes to add call context to tickets and incoming call notifications. Map flow attributes to ticket fields to capture details such as IVR selections, or display caller information as badges, hero attributes, or call details so agents can prepare for conversations. You can also use contact center-specific attributes to link calls with tickets and identify call or agent information.

Location: Contact center > General > Contact attributes

Admins can use Amazon Connect contact attributes to give agents context about a call. You can add call information to ticket fields and to the incoming call notification.

This article contains the following topics:

  • Understanding contact attributes
  • Using Zendesk-specific contact attributes
  • Adding call information to tickets
  • Adding call information to call notifications

Understanding contact attributes

Amazon Connect contact attributes are key and value pairs that store information about a customer interaction. They carry data throughout the lifecycle of a call, chat, or task within your contact center. For example, you can record the department a caller selects in an interactive voice response (IVR) menu on the ticket, or show a customer's service tier in the incoming call notification. For a step-by-step example, see Recording an IVR selection on a ticket.

As an admin, you can create user-defined contact attributes in Amazon Connect flows. These can be populated by querying an external database, pulling data from unified customer profiles, or capturing direct customer input. For an external-system example, see Store a value from a Lambda function as a contact attribute.

You can also use the Zendesk-specific contact attributes. For example, to determine if the customer is calling about an existing ticket before handing the call to an agent.

Using Zendesk-specific contact attributes

The following are Zendesk-specific contact attributes that you can use in your flows:

Contact attribute Description
zendesk_ticket_id If this attribute is set in the contact flow, it's used to attach the call to the corresponding ticket with that ID or to create a new ticket with that ID.
conversation_title This attribute populates the ticket title and the first call comment title. If the agent answers before the ticket is created, the ticket title defaults to "Call answered by <agent>"; otherwise, it defaults to the caller’s phone number. The first call comment title always defaults to the caller’s phone number.
zendesk_user_id

This attribute is set based on matching the user and phone number.

Note: Using the value of this attribute from the contact flow isn't currently supported.
zendesk_agent_id The ID of the Zendesk user that answers the call.
zendesk_call_id The ID of the call object that Contact Center creates when an agent accepts a call.

Adding call information to tickets

You can add call information to tickets by mapping Amazon Connect attributes from a Contact flow to a Zendesk ticket field. This involves the following tasks:

  • Adding Connect attributes to contact flows
  • Selecting or adding a ticket field
  • Mapping Connect attributes to ticket fields

For more details on sourcing information, see Understanding contact attributes.

Adding Connect attributes to contact flows

To add a Connect attribute to a contact flow

  1. In Amazon Connect, select Routing > Flows.

  2. Select the contact flow to edit.

  3. Add a Set contact attributes block to the flow, to capture the attribute.

    For more information about contact attribute types and values, see Amazon's How contact attributes work in Connect Customer.

  4. Under Set attributes on, select Current contact.

  5. Add a User defined key and value.

  6. Click Confirm, to confirm the block's configuration.

  7. Connect the block into the flow.
  8. Click Save, to save the flow.

  9. Click Publish.

When a call reaches this block, the flow sets the contact attribute.

Selecting or adding a ticket field

You can use an existing ticket field or create a custom field for the contact attribute. Choose a field type that accepts the value sent by Amazon Connect. Depending on the field and form settings, the information from Connect can appear as a ticket field, a tag, or both.

To select or add a ticket field

  1. In Admin Center, click Objects and rules in the sidebar, then select Tickets > Fields.
  2. Choose an existing field that can hold the contact attribute value, or create a custom ticket field.

    If you want the field to add a tag to the ticket, use a dropdown, multi-select, or checkbox custom field. The contact attribute values must match the associated ticket field tags.

  3. (Optional) Check that the field is on the ticket form used for the call so agents can see it. If needed, add the field to the ticket form.

Mapping Connect attributes to ticket fields

To map a Connect attribute to a ticket field

  1. In Contact Center, under General, click Contact attributes.

  2. Click Add new attribute.

  3. Enter the Contact attribute key and select the corresponding Ticket field.

    The contact attribute key must match the key in the Amazon Connect flow. The ticket field can have a different name.

  4. Click Add contact attribute.

The attribute mapping between Amazon Connect and Zendesk is now in place. After refreshing your Zendesk workspace, you can perform a test call to confirm that the Contact attribute is captured in a ticket field. To control how the field appears in the ticket, see Editing ticket forms.

Adding call information to call notifications

You can give agents context about a call in the call notification. For example, show the caller's membership tier, the department they selected, or a payment status. Agents can use this information to prepare for the call.

If you're looking to configure the summary shown in the call notification, see Configuring summaries in Contact Center call notifications.

To add call information to call notifications

  1. Determine the information to add to call notifications.

    For more details on sourcing information, see Understanding contact attributes.

  2. Define the contact attribute key and value based on where you want the information to appear in the notification:
    • Badge: badges are text labels with a highlight color that appear at the top of the call notification, above the summary when available. Badges are ordered alphabetically by key. Up to nine are shown initially; agents can expand additional badges. Badges with empty values aren't displayed.

      To add a badge, enter the following:

      • Attribute key in the form zendesk_badge_<color>_<name>.

        Add a highlight color as blue, green, yellow, or red in lowercase. If you don't specify a color or it's not recognized, the badge uses the default gray color. Add an underscore and then an attribute name to identify the attribute in the flow.

      • Attribute value with the text label you want to display.

      For example, zendesk_badge_blue_pilotpart with the value Pilot participant displays a blue Pilot participant badge.

    • Hero attribute: hero attributes show a label and its value below the summary and above Show details. They're listed alphabetically. Up to nine are displayed; additional attributes aren't shown.

      To add a hero attribute, enter the following:

      • Attribute key in the form hero_<name>. Contact Center uses this name to create the displayed label.
      • Attribute value with the information you want to display.

      For example, the key hero_Booking reference with the value HotelA 123456 displays Booking reference and HotelA 123456.

    • Details: call details show additional information when an agent clicks Show details.

      To add an attribute to the details list, enter the following:

      • Attribute key in the form agt_<name>. Contact Center uses this name to create the displayed label.
      • Attribute value with the information you want to display.

      For example, agt_Last stay with the value HotelB 3 nights displays Last stay and HotelB 3 nights.

    The caller number and queue are standard call details, you cannot change them.

  3. Add the contact attributes to the flow.

    For the steps, see Adding Connect attributes to contact flows.

Let your agents know what to expect and refer them to Reviewing incoming call information.

Article Q&A

Click to view

How do I map an Amazon Connect contact attribute to a Zendesk ticket field?

In Amazon Connect, add a Set contact attributes block to the contact flow, set it on the Current contact, add the user-defined key and value, then connect the block, save, and publish the flow. In Admin Center, select or create a ticket field that accepts the value. In Contact Center, go to General > Contact attributes, click Add new attribute, enter the same key used in the flow, select the ticket field, and add the mapping. Refresh your Zendesk workspace and make a test call to confirm the value appears.

How can I show a badge in an incoming call notification?

Add a contact attribute with a key in the format zendesk_badge__ and set its value to the text label to display. Supported lowercase colors are blue, green, yellow, and red; an omitted or unrecognized color displays as gray. Badges are ordered alphabetically by key, up to nine appear initially, and badges with empty values are hidden.

How do I display extra call information below the notification summary or under Show details?

For a label and value below the summary and above Show details, use a key in the form hero_. For information shown when an agent clicks Show details, use agt_. The key name becomes the displayed label, and the attribute value supplies the information. Hero attributes are alphabetical and only up to nine are displayed. The caller number and queue are standard call details and can't be changed.

What do Zendesk-specific contact attributes do, and can I set zendesk_user_id in my contact flow?

zendesk_ticket_id can attach a call to a ticket with that ID or create a new ticket with that ID. conversation_title sets the ticket and first call-comment titles; default titles depend on whether the agent answers before ticket creation, while the first call-comment title defaults to the caller's phone number. zendesk_agent_id identifies the Zendesk user who answers, and zendesk_call_id identifies the call object created when an agent accepts. zendesk_user_id is based on matching the user and phone number, but using its value from a contact flow isn't currently supported.

Powered by Zendesk