Skip to content

Get Company Contact Info

The Get Company Contact Info component searches your company contacts during a call and pulls back details such as a contact’s name, phone numbers, and email address. You can name the contact outright or let an expression choose one at run time, and the values it finds are saved to variables that later components can read or branch on.

  1. Drag an Internal Data Ops component onto the call flow canvas, then click it to open its settings.

    The Internal Data Ops block placed on the call flow canvas

  2. In the Component Type drop-down list, choose Get Company Contact Info.

    Choosing Get Company Contact Info from the Component Type list

  3. Narrow down the contact you want with the filters below. For any field, you can type a value directly or click the fx button to build an expression instead.

    Filter fields for identifying the target company contact

    FilterDescription
    Last NameThe contact’s last name.
    First NameThe contact’s first name.
    EmailThe contact’s email address.
    NumberThe contact’s phone number. The search honors the number matching rule set under Contacts > Company Contacts > Options > Number Match. When that rule is Do Not Match, the component requires an exact number match.
    PhonebookOne or more phonebooks to search within. Leave this empty to search every directory.
    CompanyKeywords from the contact’s company information.
  4. Click Confirm in the bottom-right corner.

Each time the component runs, the contact details it retrieves are written to variables. Any expression-aware component, Condition, for instance, can read these variables and route the call based on what was found.

VariableTypeDescriptionExample
$GetCompanyContactInfo{index}.contactNameStringContact name."Leo Poll"
$GetCompanyContactInfo{index}.companyStringCompany name."YS"
$GetCompanyContactInfo{index}.emailStringEmail address."leo@ys.com"
$GetCompanyContactInfo{index}.phonebookListStringThe phonebook(s) the contact belongs to."All"
$GetCompanyContactInfo{index}.remarkStringRemark about the contact."remark"
$GetCompanyContactInfo{index}.businessStringBusiness number."01082345678"
$GetCompanyContactInfo{index}.business2StringBusiness number."02160123456"
$GetCompanyContactInfo{index}.mobileStringMobile number."13800001234"
$GetCompanyContactInfo{index}.mobile2StringMobile number."15900005678"
$GetCompanyContactInfo{index}.homeStringHome number."01087654321"
$GetCompanyContactInfo{index}.home2StringHome number."075523456789"
$GetCompanyContactInfo{index}.businessFaxStringBusiness fax number."01082345679"
$GetCompanyContactInfo{index}.homeFaxStringHome fax number."02160123457"
$GetCompanyContactInfo{index}.otherStringOther phone number."4008880000"

A Get Company Contact Info component leads to exactly one downstream component. Any of the following can follow it:

ComponentPurpose
PromptPlay an audio file or a text-to-speech message to the caller.
Business HoursRoute the call to different destinations depending on the time of day.
MenuOffer callers a set of options and route them by the DTMF (Dual-Tone Multi-Frequency, the tone a phone sends when a key is pressed) key they press.
User InputCollect DTMF digits from the caller, usually paired with Condition to act on what was entered.
LanguageChange the system prompt language for the rest of the flow.
RecordStart recording once the caller connects to another party, with optional notification prompts, or turn recording off for a call that would otherwise be recorded.
Dial by NumberLet callers dial a number directly to reach their destination.
Dial by NameAn end component that lets callers reach a user by typing the first three letters of their name.
TransferAn end component that sends the caller to a chosen destination, with optional prompts announcing the transfer.
Hang Up CallAn end component that disconnects the call.
ConditionRoute the call based on logical expressions.
LoopRepeat a group of components a set number of times or until a condition is met.
Internal Data OpsRead from and write to the Cloud Voice system’s own database. See Get Extension Presence Status, Set Extension Presence Status, Get Queue Agent, Get Queue Info, Get Agent Status, Set Agent Status, Get System Info, Get System Capacity, Get Extension Info, and Get Company Contact Info.
Email SenderSend an email for real-time notifications, alerts, or user-specific information.
Database AccessRun a SQL (Structured Query Language) operation against an external database during the call flow.
HTTP RequestSend an HTTP request to an external server to exchange data with a third-party service.