VICIfast
Operations

Camp script vs in-script: which VICIdial script wins on a call

VICIdial stores two script references on every call — camp_script from the campaign and in_script from the in-group. Understanding which one the agent sees prevents blank SCRIPT tabs and confused agents.

VICIfast Support
··3 min read
Camp script vs in-script: which VICIdial script wins on a call

Two variables, two sources

VICIdial tracks two script variables for every call session. The first, camp_script, is set by the Campaign Script field in Campaign Detail. The second, in_script, is set by the Ingroup Script field in In-Group Detail. Both variables are available as substitution tokens inside any script's body text, meaning a script can even reference the ID of the other script — but that is an advanced use case. The more important question is: which one actually appears in the SCRIPT tab?

The display rule

VICIdial does not pick one over the other. It renders a SCRIPT tab for every non-empty script value it finds on the call:

  • If only camp_script is set, the agent sees one tab showing the campaign script.
  • If only in_script is set, the agent sees one tab showing the in-group script.
  • If both are set (and they point to different scripts), the agent sees two SCRIPT tabs.
  • If neither is set, no SCRIPT tab appears at all.

There is no ranking or priority — the agent sees all populated scripts simultaneously as separate tabs. The phrase "which script wins" is a bit of a false premise: both can win at the same time.

Decision map by call type

flowchart LR
  A[Pure outbound call] --> B[camp_script from Campaign Detail]
  B --> C[One SCRIPT tab]
  D[Pure inbound call] --> E[in_script from In-Group Detail]
  E --> F[One SCRIPT tab]
  G[Blended call] --> H[camp_script set?]
  G --> I[in_script set?]
  H -- Yes --> J[Tab 1: camp_script]
  I -- Yes --> K[Tab 2: in_script]
  J & K --> L[Agent sees both tabs]

Where each variable comes from

camp_script is populated from the Campaign Detail page's Script field. It applies to all outbound calls in that campaign. A Lead list inside the campaign can override camp_script — if the list has its own Script field set, that list-level value replaces the campaign value for leads in that list. The variable name seen by the script body is still camp_script regardless of whether the campaign or list set it.

in_script is populated from the In-Group Detail page's Script field. It applies whenever the call is routed through that in-group, whether the agent is on a pure inbound queue or receiving an inbound call while blended.

Using these variables inside script text

Both camp_script and in_script appear in the full list of auto-populated Agent script body variables. You can reference them with the standard --A--camp_script--B-- and --A--in_script--B-- tokens inside script text. This lets you build a meta-script that shows agents the IDs of all scripts in play — occasionally useful for debugging blended configurations.

Common mistakes and fixes

  • Agent sees no SCRIPT tab on inbound calls: the In-Group Script field is empty. Set it in In-Group Detail and click Submit.
  • Agent sees the wrong script on a blended call: the campaign and in-group scripts are swapped. Check Campaign Detail and In-Group Detail separately.
  • Agent sees two tabs when you only want one: one of the two script fields is unintentionally populated. Clear it on the relevant Campaign Detail or In-Group Detail page.
  • Script not available in drop-down: the script's Active flag is set to N. Go to Admin > Scripts and enable it.

For step-by-step instructions on setting each field, see how to assign a script to a VICIdial campaign and how to assign a script to a VICIdial in-group. For the full agent screen configuration context, visit the VICIdial agent screen configuration guide.

Want a managed VICIdial environment where script configuration is straightforward and well-supported? See pricing for VICIfast hosted plans.

About VICIfast LLC

VICIfast LLC operates a managed VICIdial hosting + BYOI service for outbound and inbound call centers. We run the dialers, the carriers, the recordings pipeline, and the compliance plumbing so operators don’t have to.

Citing this article

VICIfast Engineering. “Camp script vs in-script: which VICIdial script wins on a call”. VICIfast LLC, June 24, 2026. Retrieved from https://vicifast.com/blog/vicidial-camp-script-vs-in-script

Have questions?

Related posts

You might be interested in

VICIfast newsletter

Liked this? Get the next one in your inbox.

We ship the kind of stuff you just read — concrete, numbers-first, no drip. One email when a new post goes live. Unsubscribe in one click.

Comments

Comments are reviewed before they appear. We never publish your email.

No comments yet — be the first.