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.

已提問 2 年前檢視次數 874 次
2 個答案
1
已接受的答案

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
已回答 2 年前
profile pictureAWS
專家
已審閱 2 年前
1
profile picture
dmacias
已回答 2 年前
  • 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.

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南