VICIfast

Agent scripts and lead filters

Write the script agents read on calls, show it on a campaign, and narrow which leads get dialed with a tested lead filter.

Campaigns & leads · 3 min read

Agent scripts and lead filters

An agent script is the text agents read during a call, with the lead’s name filled in. A lead filter is a rule that narrows which leads a campaign calls, such as "only Texas" or "only leads called fewer than three times". Both live on the Scripts & Filters page.

What you need

  • You are the account owner or a team member with the Admin role. The New script and New filter buttons only show for them.

Step 1: Open Scripts & Filters

  1. Open your server from My Servers and click the Campaigns tab.
  2. Click the Scripts & Filters pill.

You see three sections: Agent scripts, Lead filters and Drop-rate pools (pools are covered in Dialing speed and dropped calls). Each row shows how many campaigns use it, for example "1 camp".

The Scripts & Filters page: scripts, lead filters and drop-rate pools
The Scripts & Filters page: scripts, lead filters and drop-rate pools

Step 2: Write a script

  1. Click New script.
  2. Script ID: letters, digits, underscore and hyphen, for example SALES_OPENER. It cannot be changed later.
  3. Name: what you will see in menus, for example "Sales opener". Comments is an optional note.
  4. Script body: type what the agent should say. To drop in a lead’s details, wrap the field name like this: --A--first_name--B--. For a lead named John, "Hello --A--first_name--B--" shows the agent "Hello John". Simple formatting such as bold (HTML) also works.
  5. Keep Active ticked. An inactive script is never shown to agents.
  6. Click Create.
A script open for editing; lead fields go between --A-- and --B--
A script open for editing; lead fields go between --A-- and --B--

Step 3: Show the script on a campaign or queue

  1. On the Campaigns pill, click your campaign and open the Trunk / Routing tab.
  2. Pick your script in In-call script. Inactive scripts are marked "(inactive)".
  3. Click Save N changes.

Agents now see it in the Script tab of the agent screen. For inbound calls, open the queue (in-group) on the Inbounds tab, In-groups pill, and set the Script on its Agent screen tab.

Choosing the In-call script on the Trunk / Routing tab
Choosing the In-call script on the Trunk / Routing tab

Step 4: Create a lead filter

A filter is written as a condition in SQL, the language your dialer’s database speaks. It reads like a sentence about lead fields. Two examples:

  • state = 'TX' (only leads in Texas)
  • ( status IN ('NEW','NA') AND called_count < 3 ) (new or no-answer leads tried fewer than 3 times)
  1. Click New filter.
  2. Fill in Filter ID, Name and, if you like, Comments.
  3. Type the rule in SQL condition.
  4. Click Test against leads. You see "Matches N leads", a warning that it matches 0 leads, or "Invalid SQL" with the reason.
  5. When the test looks right, click Create.
Testing a lead filter before saving it
Testing a lead filter before saving it
Always test first. A filter that matches nothing, or has a typo, quietly stops the campaign from dialing. Nothing else warns you.

Step 5: Apply the filter

  1. Open the campaign and click the Dialing tab. Pick the filter in Lead filter. The hint under it shows the rule it applies.
  2. Click Save N changes.
The Lead filter on the campaign's Dialing tab
The Lead filter on the campaign's Dialing tab

The filter works for every dialing method, manual or automatic: it decides which leads the dialer loads into the hopper. To stop filtering, pick — none —.

Edit or delete

Click the pencil on a row to edit it, or the trash icon to delete it. A script or filter that a campaign still uses cannot be deleted: you are told how many campaigns to change first.

If something goes wrong

Frequently asked

› Agents see a blank script.
The script is inactive or no longer exists. Open it on Scripts & Filters, tick Active and save, then check the campaign’s In-call script.
› The lead’s name doesn’t fill in.
Check the spelling: --A--first_name--B--, with two dashes on each side and the field name as it appears in your leads (first_name, last_name, city and so on).
› The campaign stopped dialing after I added a filter.
Open the filter and click Test against leads. If it matches 0 leads or shows Invalid SQL, fix it, or set Lead filter back to "— none —".
› It says the script is used by campaigns and won’t delete.
Pick a different In-call script on those campaigns first, then delete it.
› I don’t see New script or New filter.
Only the account owner and team members with the Admin role can add or change them.