- Newest
- Most votes
- Most comments
Yes, Amazon Connect provides ways to address both of your requirements:
-
Getting the value of the inbound phone number: You can access the dialed number (the number the customer called) in your contact flow using a system attribute. Specifically, you can use the "System" attribute "Channel.Address" to get this information. This attribute contains the phone number or other address that the customer used to contact your call center.
-
Using an if-else block for decision making: Amazon Connect offers a "Check contact attributes" block, which functions similarly to an if-else statement. This block allows you to check the value of attributes and route the contact flow based on different conditions.
To implement your specific requirement:
-
At the beginning of your flow, use a "Set contact attributes" block to store the "Channel.Address" (dialed number) in a custom attribute.
-
Use a "Check contact attributes" block to check this custom attribute and determine which number was dialed.
-
Based on the result, you can set another custom attribute indicating which number was called (e.g., "Line 1" or "Line 2").
-
Before connecting to an agent, use a "Play prompt" block in the contact flow to play a message to the agent informing them which line the call is coming from. You can use text-to-speech or a pre-recorded message here.
-
Finally, connect the call to the agent queue.
This setup allows you to use a single flow for both inbound numbers while still informing agents about which number the customer dialed. The agents will receive this information before connecting with the caller, allowing them to tailor their greeting appropriately.
Sources
Implementation For a new Amazon Connect | AWS re:Post
Amazon Connect set up flow to transfer inbound call to a mobile in the US | AWS re:Post
Hello,
You can make use of the System Level contact attributes in Amazon Connect for getting the Amazon Connect System Number(Inbound number) to which the end customer called in.
Since both of your questions are related you can just make use of the Check Contact Attribute block with Namespace as "System" and Key as "System Address or Number" which will get the System Number called and then you can add conditions to check if this value is equal to your expected number
If you want to inform this to the Agent when they accept the call, you can configure this in your Agent Whisper flow and after the Check Contact Attribute block, you can set Play Prompt to play the expected phone number in that matched branch.
As additional reference you can also check the List of available contact attributes in Amazon Connect and their JSONPath references - https://docs.aws.amazon.com/connect/latest/adminguide/connect-attrib-list.html
Also, if you need this data stored in the Contact Record then use a Set Contact Attribute block to store the "System Address or Number" (dialed number) in a custom attribute.
Relevant content
- AWS OFFICIALUpdated 2 years ago