> ## Documentation Index
> Fetch the complete documentation index at: https://docs.chatzy.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# All variables

Chatzy variables allow you to dynamically insert information collected during conversations, journeys, APIs, and tools.

Variables can be used in prompts, messages, email templates, WhatsApp templates, API requests, and Journey actions.

***

## Contact Variables

These variables are available when contact information exists.

| Variable                   | Description                 |
| -------------------------- | --------------------------- |
| `{{contact.first_name}}`   | Contact's first name        |
| `{{contact.last_name}}`    | Contact's last name         |
| `{{contact.phone_number}}` | Contact's phone number      |
| `{{contact.email}}`        | Contact's email address     |
| `{{contact.instagram_id}}` | Instagram Message sender ID |

> These variables are available through **Get Contact Details**.

***

## Custom Attributes

Any custom attribute saved against a contact automatically becomes available as a variable.

For example, if your contact contains:

```json theme={null}
{
  "company": "Chatzy AI",
  "plan": "Growth",
  "city": "Pune"
}
```

You can use:

```
{{contact.attributes.company}}
{{contact.attributes.plan}}
{{contact.attributes.city}}
```

***

### Inbound Webhook

Variables received through an **Inbound Webhook Trigger** are available under:

```text theme={null}
{{inbound_webhook.<field_name>}}
```

Example
Payload was :

```json theme={null}
{
"phone_number": "Chatzy AI",
"customer_name": "Growth",
"delivery_city": "Pune"
 }
```

then you can refer these variables as

```text theme={null}
{{inbound_webhook.phone_number}}
{{inbound_webhook.customer_name}}
{{inbound_webhook.delivery_city}}
```

***

### Extracted Entities

When **Extract Entities** is enabled, the extracted values are available under:

```text theme={null}
{{extracted_entities.<entity_name>}}
```

Example:

```text theme={null}
{{extracted_entities.budget}}
{{extracted_entities.quantity}}
{{extracted_entities.phone}}
{{extracted_entities.summary}}
```

***

## Where Variables Can Be Used

Variables are supported throughout Chatzy, including:

* AI Agent Base Prompt
* Execute Code
* Trigger Journey
* Send Message
* Send Email (when using your own SMTP server)
* WhatsApp Templates
* Instagram Templates
* LinkedIn Templates
* Messenger Templates
* Google Sheets
* CRM Integrations
* Webhooks
* Conditions
* Transitions

***

## Inserting Variables

Most editors include a **Variables (`{x}`)** button.

Click it to browse and insert available variables without typing them manually.

> **Tip:** The list of available variables depends on the current Journey, AI Agent, and previously executed actions. Variables created earlier in a Journey become available in subsequent actions.
