https://vcc.live/wp-content/uploads/2022/03/vcclive_main_logo.svg
  • Product
    Back to all pages
    https://vcc.live/wp-content/uploads/2023/09/omnichannel-test-3.svg
    Omnichannel

    Instantly switch between your customer's preferred channels and handle multiple conversations at once.

    Key channels VCC Live supports

    Voice SMS Email Live chat software Instant messaging apps Social media

    Email, social and more for SYKES and Huawei

    https://vcc.live/wp-content/uploads/2023/09/sykes-topnav-menu.svg
    WhatsApp > Messenger > Case studies >
    https://vcc.live/wp-content/uploads/2023/10/ai-topnav-icon-2.svg
    AI and automation

    Drive intelligent productivity and efficiency with VCC Live's suite of AI and automation tools.

    https://vcc.live/wp-content/uploads/2023/09/call-cetner-software-test-7.svg
    Call center

    Explore our call center software for driving productivity, fueling automation, and delivering exceptional CX.

    Powering Decathlon's call center

    https://vcc.live/wp-content/uploads/2022/09/Decathlon_Austria_Thumbnail.jpg
    Why VCC Brochure Security
    https://vcc.live/wp-content/uploads/2023/09/outbound-test-3.svg
    Outbound

    Handle more live calls, boost talk time, and automate outreach with a feature-filled outbound solution.

    Features to boost outbound activities

    Automatic dialing Voicemail detection Outbound IVR Over-the-phone payments

    Fueling your outbound sales

    https://vcc.live/wp-content/uploads/2023/09/boosting-sales-thumbnail-image.jpg
    Sales teams > Case studies > Collections >
    https://vcc.live/wp-content/uploads/2023/09/inbound-icon-3.svg
    Inbound

    Swiftly resolve issues, empower omnichannel, and handle volume with ease with our CX-focused solution.

    VCC live for inbound contact centers

    IVR systems Distributing calls (ACD) Call center scripting KPI dashboard

    Transforming customer service for tbi bank

    https://vcc.live/wp-content/uploads/2023/05/tbi-interview-banking.jpg
    Customer service > Case studies > Multichannel >
    vcc live 360 webagent menu icon
    VCC Live 360 Agent

    It's faster without installation! VCC Live works from your agents' browser wherever they are, powered by the latest AI technology.

    https://vcc.live/wp-content/uploads/2023/09/integrations-test-4.svg
    Integrations

    Connect VCC Live with any of your trusted business tools, including CRMs, payment tools, and much more.

    Selected integrations for VCC Live users

    Salesforce Hubspot Looker (Data Studio) Docusign Dialogflow Zapier

    Handle calls without leaving Salesforce

    https://vcc.live/wp-content/uploads/2023/06/salesforce-video-1.jpg
    Looker case study > Release center > Security >
  • Solutions
    Back to all pages
    https://vcc.live/wp-content/uploads/2023/08/sales-call-center-icon.svg
    Sales teams

    Connect and sell more than ever before with an automation-led solution for driving sales success.

    Powerful BI for next-level sales

    https://vcc.live/wp-content/uploads/2023/09/effective-communicatio-case-study-topnav.png
    https://vcc.live/wp-content/uploads/2023/08/customer-service-call-center-icon.svg
    Customer service

    Orchestrate a high-volume handling and resolution-focused approach that delights customers.

    92% of calls within SLA

    https://vcc.live/wp-content/uploads/2023/09/decathlon-case-study-topnav-2.png
    https://vcc.live/wp-content/uploads/2023/08/debt-collection-call-center-icon.svg
    Debt collection

    Make collections faster and simpler to speed up repayments and recover like never before.

    94% voicemail detection rate

    https://vcc.live/wp-content/uploads/2023/09/delfin-group-case-study-topnav.png
  • Industries
    Back to all pages
    https://vcc.live/wp-content/uploads/2025/11/bpo-call-center-icon2.svg
    BPO

    Deliver consistent, high-quality customer interactions at scale with a flexible, automation-ready contact center platform.

    2,000+ hours of active monthly talk time

    https://vcc.live/wp-content/uploads/2023/09/effective-communicatio-case-study-topnav.png
    https://vcc.live/wp-content/uploads/2025/11/retail-call-center-icon2.svg
    Retail

    Create seamless omnichannel shopping experiences and resolve customer inquiries faster across every touchpoint.

    92% of calls handled within SLA

    https://vcc.live/wp-content/uploads/2023/09/decathlon-case-study-topnav-2.png
    https://vcc.live/wp-content/uploads/2025/11/banking-call-center-icon2.svg
    Banking

    Support secure, compliant customer communications while speeding up loan processing, onboarding, and resolution workflows.

    Over 50% increase in efficiency

    https://vcc.live/wp-content/uploads/2025/11/tbi-bank-2.png
    https://vcc.live/wp-content/uploads/2025/11/insurance-call-center-icon2.svg
    Insurance

    Enhance policyholder engagement with efficient claims handling, smooth onboarding, and proactive communication.

    20% of workforce saved with automation

    https://vcc.live/wp-content/uploads/2025/11/waberer_topnav.png
    https://vcc.live/wp-content/uploads/2025/11/consumer-lending-call-center-icon2.svg
    Consumer Lending

    Accelerate loan servicing and repayments, and ensure reliable outreach with automated, compliant workflows.

    Higher efficiency and 30% more calls handled

    https://vcc.live/wp-content/uploads/2025/11/4finance_2.png
    https://vcc.live/wp-content/uploads/2025/11/healthcare-call-center-icon2.svg
    Healthcare

    Strengthen patient experience with secure, timely communication and streamlined scheduling, reminders, and support workflows.

    Improved CX and CSAT scores

    https://vcc.live/wp-content/uploads/2025/11/healthcare-teladoc-2.png
  • Packages
  • Resources
    Back to all pages
    Blog Case Studies Ebooks KPI library Webinars Call Center Courses Customer Interviews Information Security Telco Services Learning Center Developers Release Center Download here
  • Company
    Back to all pages

    Explore more

    About us Why VCC Live Careers News Partners

    Check out our history

    https://vcc.live/wp-content/uploads/2023/09/20yrs-anniversary-thumbnail.jpg
  • Partners
  • Become a partner
  • Email us
CONTACT US VIEW DEMO
Developer GuidesScript SDKFunctionsgetChannelVariable
  • Overview
    • About Script SDK
    • Examples
  • Constants
    • CONTROLLER_HELPERS
    • DISPOSITION_ASSESMENTS
    • FIELD_QUOTAS
    • FIELD_TYPES
  • Variables
    • fields
    • isAgent
    • isInbound
    • isTest
    • ticketId
    • ticketRelations
  • Functions
    • addVoicefileTag
    • alert
    • callCustomerApi
    • clearDtmf
    • confirm
    • contains
    • dump
    • getChannelVariable
    • getCommission
    • getController
    • getCurrentPage
    • getFieldNames
    • getFieldProp
    • getFieldValue
    • getFieldValues
    • getGoogleAccessToken
    • getMicrosoftAccessToken
    • getPages
    • getPrice
    • getQuotaFieldData
    • getScriptVariable
    • getTabs
    • goNext
    • goTab
    • httpRequest
    • inArray
    • isSelected
    • isVoiceRecordingActive
    • openURLInDefaultBrowser
    • runApplication
    • salesforce.getAccessToken
    • searchObject
    • setDisposition
    • setDispositionPrefUserId
    • setEventListener
    • setFieldValue
    • setTimeout
    • startVoiceRecording
    • stopVoiceRecording
    • toggleVoiceRecording
    • transfer
  • Events
    • controller.afterSetData
    • controller.onLoadData
    • global.beforeSetDisposition
    • global.beforeValidation
    • global.beforeSaveTicket
    • global.onCall
    • global.onLoad
    • global.onHangup
    • page.checkBeforeLoad
    • page.onLoad
    • page.onNext
    • ticketpage.onLoad
  • Objects
    • CONTROLLER_OBJECT
    • DISPOSITION_OBJECT
    • FIELD_PROPERTY_OBJECT
    • FIELD_VALUE_OBJECT
    • QUOTA_DATA_OBJECT
Back to Support and Learning Center
English Hungarian

getChannelVariable

The vcc.getChannelVariable function is used to retrieve the value of a specific channel variable during a call or within a script. Channel variables are often set by the IVR (Interactive Voice Response) system, external API calls, or routing rules before the script is loaded. This allows passing custom data or routing information directly into the agent script.

Description

vcc.getChannelVariable(variableName);

Channel variables can be set via inbound settings. See Inbound Calls section.

Parameters

  • variableName (string): The name of the channel variable whose value you want to retrieve. Commonly used variables include IVR inputs, integration data, or specific routing variables (e.g., 'vcc_pin', 'vcc_field_skill').

Return values

  • (string | null): Returns the value of the requested channel variable as a string. If the channel variable does not exist or has no value, it returns null or an empty string depending on the context.

Use cases with explanation

1. Retrieving Pre-Identified Caller Information from IVR

If the caller entered their customer ID or PIN in the IVR, you can retrieve this information to populate the agent’s screen automatically.

$().onLoad = function() {
    // Retrieve the PIN entered by the caller in the IVR
    const customerPin = vcc.getChannelVariable('vcc_pin');
    const isIdentified = vcc.getChannelVariable('vcc_foundByPin');

    if (isIdentified === 'TRUE' && customerPin) {
        // Automatically fill the customer ID field
        vcc.setFieldValue('customer_id', customerPin);
        vcc.getController('client_data', 'customer_id').refresh();
    }
};

Explanation: This script runs when the form loads. It checks if a PIN was found (vcc_foundByPin) and retrieves its value (vcc_pin). If valid, it updates a script field so the agent doesn’t need to ask for it again.

2. Passing Campaign or Skill Group Data to the Script

You can use channel variables to understand the context of the call, such as which specific skill group or campaign sub-type the call was routed from, and adjust the script behavior accordingly.

$().onLoad = function() {
    // Get the skill assigned to the channel
    const currentSkill = vcc.getChannelVariable('vcc_field_skill');
    
    // Check available skills in the dropdown and set the matching one
    var availableSkills = vcc.getFieldValues('skill_selector');
    availableSkills.forEach(function(item) {
        if (item.label === currentSkill) {
            vcc.setFieldValue('skill_selector', item.valueid);
            vcc.getController('routing_page', 'skill_selector').refresh();
        }
    });
};

Explanation: This case retrieves the routed skill from the channel variable vcc_field_skill. It then iterates through the dropdown options of a field named skill_selector and sets it to the matching skill, pre-selecting it for the agent.

3. Fetching Integration Data or External Variables

When a call triggers an external webhook or API before reaching the agent, the result can be saved into a channel variable. The script can then dynamically read and build external URLs (like CRM popups).

$().onLoad = function() {
    const orderNumber = vcc.getChannelVariable('vcc_order_number');
    const callUUID = vcc.getScriptVariable('global.uuid');
    
    if (orderNumber) {
        // Build a CRM URL using the retrieved channel variable
        const crmURL = 'https://crm.dummy-company.com/orders/view?order=' + orderNumber + '&callId=' + callUUID;
        
        // Open the CRM system automatically in the default browser
        vcc.openURLInDefaultBrowser(crmURL);
    }
};

Explanation: The function looks for vcc_order_number set on the channel. If it exists, it constructs a unique URL to the external CRM system and pops the record open automatically for the agent.

  • Channel variables are read-only from the perspective of the script. They are meant to be consumed rather than modified directly with this function.
  • Be careful with variable names: they are case-sensitive. Typically, built-in IVR variables or metadata start with vcc_.
  • Always verify that the channel variable returns a valid value before using it, especially when using it for logical conditions, as different call flows might not populate every variable.
Back to Support and Learning Center

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.

Click here to cancel reply.

Please note that by clicking on the Submit button, you agree to a member of VCC Live team contacting you with business offers. You can find detailed information on how we can establish contact with you in our Privacy Policy

illustration

Product

  • Call center
  • Omnichannel
  • Outbound
  • Inbound
  • Channels
  • Integrations
  • More on VCC

Main Features

  • IVR system
  • Auto dialer
  • Call queuing software
  • Automatic Call Distribution
  • Call center scripting tool
  • Outbound IVR
  • Predictive dialer
  • Voicemail detection
  • Contact center dashboard

Solutions

  • Customer Service
  • AI and Automation
  • Sales Teams
  • Debt Collection
  • BPO
  • Retail
  • Financial Services
  • Banking
  • Insurance
  • Consumer Lending
  • Healthcare

Resources

  • Blog
  • Case Studies
  • Ebooks
  • Call Center Courses
  • Information Security
  • Learning Center
  • Download
  • Telco services
  • Call center KPI library

Company

  • About us
  • Why VCC Live
  • Careers
  • News
  • Partners
https://vcc.live/wp-content/uploads/2022/03/iso-cert-1-min.png https://vcc.live/wp-content/uploads/2022/03/iso-cert-2-min.png https://vcc.live/wp-content/uploads/2022/03/iso-cert-3-min.png https://vcc.live/wp-content/uploads/2025/04/SOC2-website-e1745483442463.png

Social Media

https://vcc.live/wp-content/uploads/2022/03/linkedin-footer.svg https://vcc.live/wp-content/uploads/2022/03/twitter-footer.svg https://vcc.live/wp-content/uploads/2022/03/facebook-footer.svg https://vcc.live/wp-content/uploads/2022/03/instagram-footer.svg

Call us

https://vcc.live/wp-content/uploads/2022/03/flag-hu.png Hungary
+36 19996400
https://vcc.live/wp-content/uploads/2022/03/flag-en.png UK
+44 2086380169
https://vcc.live/wp-content/uploads/2022/03/flag-de.png Germany
+49 3021782516
https://vcc.live/wp-content/uploads/2022/03/flag-pl.png Poland
+48 123950886
https://vcc.live/wp-content/uploads/2022/03/flag-ro.png Romania
+40 31706167
https://vcc.live/wp-content/uploads/2022/03/flag-usa.png USA
+1 3024988337
  • Privacy Policy
  • Cookie Policy
  • Legal Statement
  • General Terms of Agreement
  • Magyar nyelvű jogi dokumentumok
illustration