> For the complete documentation index, see [llms.txt](https://dataqueue.gitbook.io/voicehub-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dataqueue.gitbook.io/voicehub-docs/agent-design-and-usage/built-in-variables.md).

# Pathway Variables

Built-in variables in the system exist in **three types**: always-available variables (present in all calls), VoIP-specific variables (only in VoIP calls), and voice-specific variables (only in voice calls).

### Always Available

These variables are available in all calls.

#### `time`

* **Type:** String
* **Description:** Current time in ISO 8601 format.
* **Use case:** Time-based routing or logging.

***

#### `weekday`

* **Type:** String
* **Description:** Day of the week (Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday).
* **Use case:** Business hours logic or weekday/weekend branching.

***

#### `isVoiceCall`

* **Type:** String (`true` or `false`)
* **Description:** Indicates whether the current call is a voice call.
* **Use case:** Conditional logic for voice-specific flows.

***

#### `callId`

* **Type:** String
* **Description:** Unique identifier for the call.
* **Use case:** Logging, tracking, or referencing the call in external systems.

***

#### `callType`

* **Type:** String
* **Description:** Type of the call (e.g., web, VoIP, or other configured call types).
* **Use case:** Channel-based routing.

***

### Available in VoIP Calls Only

These variables are only present for VoIP-based calls.

#### `phoneNumber`

* **Type:** String
* **Description:** Caller’s phone number in E.164 format.
* **Use case:** Caller identification or CRM lookups.

***

#### `agentPhoneNumber`

* **Type:** String
* **Description:** Agent’s phone number in E.164 format.
* **Use case:** Multi-number routing or tracking.

***

#### `direction`

* **Type:** String (`inbound` or `outbound`)
* **Description:** Indicates whether the call was received or initiated.
* **Use case:** Separate flows for inbound vs outbound calls.

***

### Available in Voice Calls

#### `detectedGender`

* **Type:** String
* **Possible values:** `male`, `female`, `unknown`, `child`
* **Description:** Gender detected from the caller’s voice. This remains undefined until enough audio has been collected.
* **Use case:** Personalization or analytics.

### How To Use

Built-in variables can be used in node prompt, edge conditions,...etc.

1. Node Prompt:

<figure><picture><source srcset="/files/MoYIkYYCByFMdY2mtJvF" media="(prefers-color-scheme: dark)"><img src="/files/iSStiwx8MJHsPxY7zuIk" alt=""></picture><figcaption></figcaption></figure>

2. Edge Conditions

<figure><picture><source srcset="/files/rNeTJeN9upKtaujoSDsJ" media="(prefers-color-scheme: dark)"><img src="/files/GziR1TAns4IZ2QkiHKV5" alt=""></picture><figcaption></figcaption></figure>
