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.

已提问 1 年前604 查看次数
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
已回答 1 年前
profile pictureAWS
专家
已审核 1 年前
1
profile picture
dmacias
已回答 1 年前
  • 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.

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则