Filtering Inbound Calls
Estimated reading time: 14 minutes | Target users: Supervisors, Administrators
In this tutorial, you will learn how to filter incoming phone calls by setting up a blacklist (what we call a Robinson list), so phone numbers on the list can be blocked and would not be able to call your agents.
In this tutorial you can learn how to:
- Set up a filter for a small number of phone numbers
- Set up a filter for a larger number of phone numbers: Create a list in advance & Import the list to your project
- Add numbers to a Robinson list
- Assign a Robinson list to a project
-
Remove numbers from a Robinson list: One by one & Bulk removal
1. Set up a filter for a small number of phone numbers
If there are only a handful of numbers you want to block, then the process of adding those numbers to a Robinson list is fairly straightforward.
To create and apply a Robinson list with only a few entries, follow these steps:
- Navigate to Project > Channels > Voice > Inbound
- Choose the timesheet you want to have a Robinson list applied to.
- Select Macro from the Actions dropdown list.
- Select the newly-created Macro item that appears below your list of processes and enter a name for it, for example: ‘Inbound Blocking’. Press Save.
- Add an If process to your Inbound Blocking macro from the Actions dropdown (while the macro is selected), set as follows:
In the Parameters section, make sure to select On every condition met (AND)
Type ‘$source’ in the field in the left-hand side, and the phone number you want to have blocked in the field on the right-hand side.If you want to add more numbers, use the “|” sign (Alt Gr + W on Windows) to separate them. Example: 3611111111|3622222222
- Press Save
- Open the If process with its arrow, so you can see the Then and Else branches
By placing a process from the Actions dropdown list in the Then branch, you can define what happens if the preset criteria match those in your setup (in other words, the unsolicited number is calling). For example, insert a Hang up process to disconnect the call immediately when an incoming call is established with the given number. - Select your timesheet again and add the Run macro Action process from the dropdown list. Drag and drop it to the top of that timesheet’s actions.
- Click on the added Run macro action and choose the added macro: Inbound Blocking
- Repeat steps 8 and 9 for every timesheet you have in your project where you want specific callers to be blocked.
- Press Apply inbound changes to save your settings.
Note: Phone numbers should be entered in the following format, without spaces: country code (without the initial ‘00’ or ‘+’) + area code + local number. For example, a phone number in Budapest, Hungary could be: 361123456
2. Set up a filter for a larger number of phone numbers
If you have encountered a large number of unwanted phone calls, you can create a Robinson list setup to effectively block those numbers. This is a 2-step process: first, you need to create the actual list, then you import it into VCC Live.
2.1 Create the list itself
-
Set up a table in the spreadsheet application of your choice. You need to have three mandatory columns: name, phone1 and blacklist. You can then fill in the table accordingly with the names and numbers of the callers you want to be blocked.
-
Here are some requirements you should pay attention to when preparing your table:
Phone numbers should be entered in the above-mentioned format (for example: 361123456)
The ‘blacklist’ column should have the ‘yes’ value in every cell. - Export the table as your database in TXT.
2.2 Set up a new project and import the database
- Create a new project and enter a name for it, for example, Robinson list. The project does not need to be activated.
-
During the Project Setup Wizard process, you are asked to import a database for your project. At the Auto script generator step, enter a name for the Datasheet page name which describes the new column you want to implement. For example, name it data.
-
Make sure the Indexed checkbox for the blacklist field is marked in Project > Database > Field.
2.3 Apply the Robinson List project to one of your projects
- Navigate to Project > Channels > Voice > Inbound
- Choose Macro from the Actions dropdown menu, and rename it to something else, for example Blacklist check.
- Add the Query data process from Actions to the Blacklist check macro.
- Select Query data, enter a name for it and fill out its parameter section as below:
Project: select the created Robinson list project Search field: phone1 Variable: $source Result order: First matching record
- In the table below, type $blacklist next to the blacklist line. Press Apply inbound changes.
- Select the main macro process and nest the If process from Actions under it.
- Enter $blacklist = yes in the If’s Parameter section. Press Save.
- Open the If process with its arrow, so you then see the Then and Else branches.
By placing a process from the Actions dropdown list in the Then branch, you can define what should happen if the preset criteria match those in your setup (in other words, the unsolicited number is calling). For example, insert a Hang up process to disconnect the call immediately when an incoming call is established with the given number. - Select a timesheet and add the Run macro process from Actions.
- Drag and drop Run macro to the top of your processes in the list.
- Select the Run macro process, and choose Blacklist check in its Run the given macro field. Press Apply inbound changes.
- Repeat the last two steps for all Timesheets in which you want to block the specified numbers
- Press Apply inbound changes.
3. List the numbers your system blocks in a log
Once you have completed the steps described in 2.3, you can create an additional variable that can record the incoming blocked call attempts and show them in your CDR log. Here’s how you set this up:
- Add Set variable process above a Hang up process, and add a new line to its Parameters section:
Name of the variable: $vcc_score_a
Value of the variable: blacklistdetected - If the above-mentioned process is added, you see the blacklistdetected text in the Score column of your project’s CDR log.
4. Extend your blacklist by adding more phone numbers
There are two ways to manually extend the list of blocked numbers in your Robinson list project:
- You can upload another database with new, blocked numbers as described in 2.1 and 2.2.
- You can manually add records via the Records menu. To do so:
- Navigate to Database > Records > Actions > Add
-
Type any name in the ‘name’ field, then type a phone number you want to block from calling you in the ‘phone1’ field and type ‘yes’ in the ‘blacklist’ field
5. Add numbers automatically (by agents)
You can let your agents add numbers to your Robinson list by performing the steps below:
- Navigate to Project > Dispositions
- Create a new disposition in the project where you want to enable this option by clicking on New disposition, and enter a name for it, for example ‘Inbound blacklist additions’.
- Press Add disposition
- Navigate to Project > Script editor
- Mark the VCC API usage from script checkbox.
- Press the Edit code button.
- Select your preferred code editing tool (for example, Notepad) by clicking on Browse and determining its position on your computer. Once you have selected it, press Apply inbound changes, close the window, and then Press Edit code one more time.
- In the code editor window, paste the following code:
$().beforeSetDisposition = function(disposition) {
if (disposition.id == yourcreateddispositionID) {
var projectid = yourblacklistprojectID;
var record = {
"form":{
"blacklist": 'yes',
"phone1": vcc.getFieldValue('phone1'),
},
"disposition":{
"disposition.id": "14",
}
};
vcc.callCustomerApi('POST', '/v2/projects/'+projectid+'/records', record, function(success, response) {});
}};
- Replace the elements in bold with the relevant disposition ID and project ID values.
- Save and close the text file, and on the Script editor page choose Upload script.
Note: The setting in step 7 can be changed later at any time at VCC Live menu > Tools > Local Settings > Code editor tab
6. Remove numbers from your Robinson list.
If you want to unblock phone numbers in your project to receive calls from them, you can remove these numbers from your Robinson list. To remove phone numbers from your Robinson list, follow these steps:
- Navigate to the Robinson list’s Project > Database > Records list.
- Look up the specific phone number you want to remove (with the help of the search fields and filtering parameters).
- Press Actions, and then Mass value update.
- In the popup window choose the ‘blacklist’ Field from the drop-down list on the left-hand side and leave the Value part empty.
-
Press Apply inbound changes. The progress bar will show whether the update is completed. Once it’s finished, please close the window.
7. Bulk removal of numbers
You can remove multiple phone numbers from your Robinson list in one go. To do this, follow these steps:
- Navigate to the Robinson list’s Project > Database > Records list.
- Search all records without filters – this lists all the records you have in your database. Copy or Export your results by pressing Copy to clipboard or Export.
- Paste and Edit your database in the spreadsheet application of your choice.
- Delete the records you want to be removed from your Robinson list.
- Rename these two columns:
The Record ID column with “numberid” (NB: There are two underscore characters on each side of “numberid”),
The blacklist column with “field.blacklist” - Save your database in TXT
- Navigate to Project > Database > Import
- Select Add and then Update database from the drop-down list.
- Browse for the updated TXT file you created and click Open. Press Ctrl+A to choose all dispositions which appear on the screen. Press Next.
- The system displays the update progress status. Once completed, press Finish.
Comments
Can’t find what you need? Use the comment section below to connect with others, get answers from our experts, or share your ideas with us.
There are no comments yet.