How can I access the customer display name defined in Test Chat Settings in a contact flow

0

I want to use the customer name configured in Test Chat Settings in a contact flow. I can't find a solution on the below page. https://docs.aws.amazon.com/connect/latest/adminguide/connect-attrib-list.html

Customer Name in Test Chat Settings

That means, I want to use the configured customer name in "Set contact attribute" block in a contact flow. I don't know which Namespace and Key should I select. I've tried that I selected "User defined" and filled "contactAttributes.CustomerDisplayName" in Key field, but it didn't work. The contact attribute value of "CustomerDisplayName" is empty string.

Set contact attributes

KITT
asked 8 months ago321 views
2 Answers
2
profile pictureAWS
answered 8 months ago
-1

Hello Kitt,

Below is how i would approach it.

In Amazon Connect, if you've defined a customer display name in the Test Chat Settings, you can access this information in a contact flow by using the Customer Display Name attribute. Here's how you can do it:

  1. Login to AWS Console: First, log in to the AWS Management Console for Amazon Connect.

  2. Create or Edit a Contact Flow:

    • If you're creating a new contact flow, navigate to "Routing" in the Amazon Connect dashboard and choose "Contact Flows." Then, create a new contact flow.
    • If you're editing an existing contact flow, select the contact flow you want to edit.
  3. Add a Set Contact Attributes Block:

    • Inside the contact flow editor, locate the point where you want to access the customer display name. This could be at the beginning of the flow or at a specific point where you want to use this information.
    • Drag and drop a "Set Contact Attributes" block into your contact flow. This block allows you to set or update contact attributes during the interaction.
  4. Configure the Set Contact Attributes Block:

    • In the "Set Contact Attributes" block, you can specify the attribute you want to set. In this case, you want to set the customer display name, so you would create an attribute with a name like CustomerDisplayName (or any name you prefer).
    • For the attribute value, use the variable contactAttributes.CustomerDisplayName. This variable will fetch the customer display name from the Test Chat Settings.
  5. Connect the Block:

    • Connect the "Set Contact Attributes" block to the next steps in your contact flow as needed.
  6. Use the Customer Display Name Attribute:

    • Now that you've set the customer display name attribute in the contact flow, you can use it wherever you need it. For example, you can use it in a prompt to greet the customer by name or log it for reference in logs or external systems.

Here's an example of how the "Set Contact Attributes" block might look in the contact flow:

Set Contact Attributes
  - Name: Set Customer Display Name
  - Attribute Name: CustomerDisplayName
  - Attribute Value: contactAttributes.CustomerDisplayName

Remember to publish your contact flow changes after making updates so that they take effect during interactions. This should allow you to access the customer display name defined in Test Chat Settings within your Amazon Connect contact flow.

Please give a thumbs up if it helps

profile picture
answered 8 months ago
  • It didn't work. I added more to the question.

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.

Guidelines for Answering Questions