I want to allow agents in my Amazon Connect Customer contact center to add numbers to a deny list in real time. I also want to allow agents to add numbers to the list manually.
Resolution
Create a data table that holds denied numbers
Complete the following steps:
- Open the Amazon Connect Customer console.
- Choose your Instance alias.
- Choose your Access URL.
- In the navigation pane, expand Routing, and then choose Data tables.
- On the Add new data table page, enter the following information:
For Name, enter DenylistingTable.
For Time zone, choose your timezone.
- In the table page, choose Add attribute.
For Name, enter ContactNumber.
Choose Use as primary attribute.
- Add a non-primary attribute.
Choose Add attribute.
For Name, enter Valid.
For Type, select Boolean.
Create an inbound contact flow
Complete the following steps:
- Turn on contact flow logs for your instance.
- In the navigation pane choose Instances.
- Choose your Instance alias.
- Choose your Access URL.
- Create a new inbound contact flow that's associated with a claimed number.
- Enter a name for your new inbound contact flow.
- Choose Save.
- Then, in the contact flow designer, take the following actions.
Add a Set logging behavior block
Complete the following steps:
- In the Block Library, expand Analyze, and select Set logging behavior.
- Drag and drop the Set logging behavior block after the Entry point block.
- Connect the Entry arrow to the Set logging behavior block.
- Choose Save.
Add a Data Table block
Complete the following steps:
- In the Block Library, expand Integrate, and select the Data Table block.
- Drag and drop a Data Table block after the Set logging behavior block.
- Connect the Set logging behavior block arrow to the Data Table block.
- To open the block settings menu, choose the Data Table block title.
For Data table, choose DenylistingTable.
Choose Add a query.
For Query name, enter **Query.
**For the value of Primary attributes, enter $.CustomerEndpoint.Address.
For Query attributes, choose Valid.
- Choose Confirm.
- Choose Save.
Add a Check contact attributes block
Complete the following steps:
- In the Block Library, expand Check, and then choose the Check contact attributes block.
- Drag and drop a Check contact attributes block after the Data Table block.
- Drag the Data Table Success arrow to the Check contact attributes block.
- To open the block settings menu, choose the Check contact attributes block title.
In the Attribute to check section, for Namespace choose Data tables.
For Key, choose Query.Valid.
In the Conditions to check section, choose Add condition.
For condition, choose Equals.
For value, enter true.
- Choose Confirm.
Add a Play prompt block
To play a prompt that informs agents when a deny list request error occurs, complete the following steps:
- In the Block Library, expand Interact, and then choose the Play prompt block.
- Drag and drop a Play prompt block after the Data Table block.
- Connect the Data Table Error arrow to the Play prompt block.
- To open the block settings menu, choose the Play prompt block.
For Delivers an audio or chat message, choose Text-to-speech or chat text. Then, choose
Set manually or Set dynamically.
- Choose Confirm.
Add a Set working queue block
Complete the following steps:
- In the Block Library, expand Set, and then choose the Set working queue block.
- Drag and drop a Set working queue block after the Check contact attributes block.
- Connect the Check contact attributes No Match arrow to the Set working queue block.
- To open the block settings menu, choose the Set working queue block.
Choose By queue, and then select your queue.
- Choose Confirm.
Add a Transfer to queue block
Complete the following steps.
- In the Block Library, expand Terminate, and then choose the Transfer to queue block.
- Drag and drop a Transfer to queue block onto the canvas after the Set customer queue flow block.
- Connect the Set working queue Success arrow to the Transfer to queue block.
Add a Disconnect block
Complete the following steps:
- In the Block Library, expand Terminate, and then choose the Disconnect block.
- Drag and drop a Disconnect block after the Transfer to queue block.
- Connect the flow branches to the Disconnect block.
- Choose Save.
- To activate the flow, choose Publish.
Create a Transfer to queue flow
To allow agents to add numbers to the deny list in real time, create a new Transfer to queue flow. Complete the following steps:
- Open the Amazon Connect Customer console.
- Choose your Instance alias.
- Choose your Access URL.
- In the navigation pane, expand Routing, and then choose Flows.
- Choose the Create flow menu, and then choose Create transfer to queue flow.
- Enter a name for your transfer to queue flow.
- Choose Save.
In the contact flow designer, take the following actions.
Add a Play prompt block
To let agents know that a number is in the process of being added to the deny list, complete the following steps:
- In the Block Library, expand, Interact, and then choose the Play prompt block.
- Drag and drop a Play prompt block onto the canvas to the right of the Entry point block.
- Connect the Entry arrow to the Play prompt block.
- To open the block settings menu, choose the Play prompt block title.
For Delivers an audio or chat message, choose Text-to-speech or chat text.
Choose either Set manually or Set dynamically.
- Choose Confirm.
Add a Data Table block
To use the CCP when an agent adds a number to the deny list, use a Data Table block, complete the following steps:
- In the Block Library, expand Integrate, and then choose the Data Table block.
- Drag and drop an Data Table block onto the canvas to the right of the Play prompt block.
- Connect the Play prompt Success arrow to the Data table.
- To open the block settings menu, choose the Data Table block.
For Select action, choose Write to data table.
- For Data table, choose DenylistingTable.
- Choose Add primary value group.
- For Group name, enter Group.
- For the value of Primary attributes, enter $.CustomerEndpoint.Address.
- Choose Add attribute to write.
- For Attribute name, choose Valid.
- For Attribute value, enter true.
- Choose Confirm.
Add a second Play prompt block
To let agents know that a number is on the deny list, use a second Play prompt block. Complete the following steps:
- In the Block Library, expand Interact, and then choose the Play prompt block.
- Drag and drop a Play prompt block onto the canvas to the right of the Data Table block.
- Connect the Data Table Success arrow to the Play prompt.
- To open the block settings menu, choose the Play prompt block.
For Delivers an audio or chat message, choose Text-to-speech or chat text.
Choose either Set manually or Set dynamically.
- Choose Confirm.
Add a third Play prompt block
To let agents know that a number isn't on the deny list because of an error, use a third Play prompt block. Complete the following steps:
- Drag and drop a Play prompt block after the Data Table block.
- Connect the Data Table Error arrow to the Play prompt.
- To open the block settings menu, choose the Play prompt title.
For Delivers an audio or chat message, choose Text-to-speech or chat text.
Choose either Set manually or Set dynamically.
- Choose Confirm.
Add a Disconnect block
To disconnect agents from the contact flow, add a Disconnect block. Complete the following steps:
- In the Block Library, expand Terminate, and then choose the Disconnect block.
- Drag and drop a Disconnect block after the three Play prompt blocks.
- Connect the flow branches to the Disconnect block.
- Choose Save.
- To activate the Transfer to queue flow, choose Publish.
Create a quick connect
To allow agents to use the Contact Control Panel (CCP) to add numbers to the deny list, create a quick connect that has the following settings:
- For Name, enter a name for the quick connect. For example: Deny list.
- For Type, choose Queue.
- For Queue, enter the name of the queue that you want to have the deny list functionality.
- For Flows, choose the transfer to queue flow.
Add the quick connect to the queues assigned to the agents that you want to have access to the deny list feature.
After you complete the preceding steps, an agent can use the Deny list quick connect in the CCP to add numbers to the Deny list. If a call comes in to your Amazon Connect Customer contact center from a number on the Deny list, then the call is automatically disconnected. The call isn’t placed in a queue. If a customer hangs up during the flow, then the call is disconnected. If the call is disconnected, then the agent can’t use Quick connects to add the numbers to the Deny list. You must add the number manually.