Creating a number block list with Logic
At times you may want to block a malicious caller from occupying your resources. This guide provides instructions for setting up a number block list using a logic bot.
Please note that this number block list method requires an inbound route be pointed to this configuration item. This does not apply to all inbound calls
Building the logic bot
Logic bots provide wide flexibility in interaction routing. This method focuses just on the method to redirect a call based on its caller ID. Feel free to change routing behavior as you see fit.
Login to app.sharpencx.com with an admin account
Navigate to https://app.sharpencx.com/bots/
Click the ‘New Logic’ button at the top right corner
Give your logic bot a recognizable name. Something like “number block list” and choose the appropriate Description, Timezone, and TTS voice.
If you’re only configuring a number block list, timezone and TTS voice will not have an impact
Click ‘Save’
Select the ‘Start’ panel and choose the ‘Edit’ button
Change the ‘Panel Type’ to ‘Condition’
You will see a browser pop-up notification warning you about changing the panel type. Make sure to choose ‘OK’
Under the ‘Conditions' section, choose ‘Cid Number’
Change ‘equal’ to ‘contains’
This change allows for the handling of telephone numbers in both +1XXXYYYZZZZ and XXXYYYZZZZ formats
In the blank field to the right, enter the number you’d like to block
Click ‘Save’
If adding multiple numbers to this list, it is important to change the evaluation operator to ‘OR’ from ‘AND’. This can only occur after you’ve added a second rule
Adding additional numbers
Edit the condition panel containing your number block list number(s)
Click the ‘Add rule’ button within the ‘Conditions’ section
Change the condition operator to ‘OR’ from ‘AND’
Select ‘Cid Number’ from the drop-down menu in the new row just added
Change ‘equal’ to ‘contains’
In the blank field to the right, enter the number you’d like to block
Your configuration should now look similar to this
Click ‘Save’
Routing options
Now we’re going to route number block listed calls to hangup, and desired calls to the appropriate next step in the desired flow
Set the hangup path
Click the ‘Add Panel’ button at the top right
Choose ‘Exit’ from the panel types
Click the ‘Edit’ button
Choose ‘Route’ under ‘Action Type’
For ‘Routing Options’ choose ‘External Number’
Type ‘hangup()’ in the ‘External Number’ field
Click ‘Save’
Draw a line from the ‘Pass’ section within the ‘Start’ panel to the exit panel just created
Set the approved path
Again, choose the ‘Add Panel’ button
Choose ‘Exit’ from the panel types
Click the ‘Edit’ button
Choose ‘Route’ under ‘Action Type’
Choose the appropriate Routing Option based on the desired call path for an approved caller
For this example we’ve simply chosen to route to our Support QClick ‘Save’
Draw a connecting line from ‘Fail’ to the exit panel just created
Click the ‘Save’ button at the bottom left to save the Logic bot
Routing to the number block list
Now that the Logic bot is created, you’re ready to direct inbound calls to it. As a reminder only call flows directed to this number block list Logic bot will be subject to it.
The simplest way to route to this path is to set it as the destination from the inbound route. The instructions below provide guidance to do so.
Navigate to https://app.sharpencx.com/admin/configuration/inboundRoutes/
Find the applicable phone number which needs routed to the number block list
Choose the edit button at the right of the row
Scroll to the bottom and identify the ‘Routing Options’ section
Choose ‘Logic’ and then the Logic bot just created
Click the ‘Save’ button