How do I get the incoming voice contact's number they dialed from amazon-connect-streams API?

0

When we have multiple phone numbers that customers can reach us at, it's important for us to know which one they dialed. I can see that the incoming contact object shows their phone number and which queue they're coming from, but I need to know exactly what number they dialed to reach us.

Update: Thanks to @dmacias for pointing me in the right direction. I should've mentioned that I've got a custom CCP and am using amazon-connect-streams JS API. From his link I found this article that seems to be what I need. It says, "You can use all user-defined attributes, in addition to the customer number and the dialed number, in the CCP using the Amazon Connect Streams JavaScript library." Unfortunately, I can't find anywhere in the streams API docs that mentions the dialed number and when I call contact.getAttributes() they're empty.

asked a year ago561 views
2 Answers
1
Accepted Answer

You can use a set contact attributes block in your inbound flow to create a user-defined attribute, which will be available in your custom CCP when you call getAttributes().

Enter image description here

Alternatively (or additionally), you could consider using a check contact attributes to branch on the dialed number, and set a contact attribute like DialedNumberDescription that you display in the CCP, so agents don't have to remember the mapping between dialed number and enquiry type.

AWS
answered a year ago
profile pictureAWS
EXPERT
reviewed a year ago
1
profile picture
dmacias
answered a year ago
  • This was helpful, thanks. I should've specified that I'm using amazon-connect-streams and have a custom CCP UI. I'll update my question accordingly.

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