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

# Workflow Lead Variables And Call Attributes In DialNexa

> Understand DialNexa workflow lead variables, call attributes, uploaded values, variable keys, application templates, and condition routing.

Workflow lead variables and call attributes carry data through a DialNexa workflow. Lead variables usually come from uploaded or created lead data. Call attributes come from call results, metadata, or extracted fields. Together they power conditions, templates, and debugging.

> [!TIP]
>
> Variables are the workflow memory. If memory is empty, conditions and templates will improvise badly.

## DialNexa Workflow Lead Variables And Call Attributes

Use the right data source for the right job.

| Data | Source | Used by |
| - | - | - |
| Phone number | The lead upload (CSV or Excel). | Voice Call nodes. |
| Dynamic variables | Uploaded lead columns, plus values a Custom Function node writes back. | Prompts, templates, and conditions. |
| Call attributes | Call result data and post-call analysis. | Condition nodes and reporting. |
| Notes | Lead context where available. | Review and operations. |
| Current node id | Execution state. | Lead history and debugging. |

## Map And Review Workflow Leads On Upload

1. Open the workflow and choose **Upload leads**. Select a CSV or Excel file up to 10 MB.
2. Match the file columns to the variables used by the workflow and its call agents. Check the suggested matches and any displayed default values. Reserved columns such as `tags` and `notes` stay separate from the variable mapping.
3. Review the name cleanup if you use it. Skip this step if you want to keep the original names.
4. If the wizard finds invalid phone numbers, review the reason for each row. Correct the numbers and recheck them, or exclude those rows. Phone validation uses the numbers configured on the workflow's call nodes.

Select **Finish** to submit the reviewed file. Uploading to a draft workflow replaces its existing leads once the file passes validation. Check the lead table and any unused-column notice to confirm that the workflow received the values it needs.

## Tag Workflow Leads On Upload

Use tags to group a lead cohort and find its resulting calls. Open the workflow's lead upload dialog and enter tags to apply to every uploaded row. You can also include a reserved `tags` column for row-specific labels.

```csv theme={null}
phone_number,name,tags
+919876543210,Priya,priority|september
+919123456789,Rahul,follow-up
```

Tags in the dialog and each row are combined, lowercased, trimmed, and deduplicated. Separate tags with commas or pipes; quote a CSV cell that contains commas. Use at most 20 distinct tags per lead, each at most 40 characters. The reserved `tags` column is metadata, not a dynamic prompt variable.

After upload, review the Tags column in the lead table. When the workflow places a call, it copies the lead's tags into that call record. Use [Call History tag filters](https://dialnexa.com/docs/monitoring/call-history.md#filter-ivr-calls-and-lead-tags) to find calls carrying any or all selected tags. Existing call records do not gain tags retroactively.

## Where Variables Appear

Workflow variables show up across builder and execution.

> [card] [Condition nodes](https://dialnexa.com/docs/workflows/condition-nodes.md)
>
> Branch on variables or call attributes.

> [card] [Application nodes](https://dialnexa.com/docs/workflows/application-nodes.md)
>
> Insert values into Wati templates or email fields.

> [card] [Lead history](https://dialnexa.com/docs/workflows/lead-history-and-debugging.md)
>
> Show which data was available when the lead moved.

> [card] [Call logs](https://dialnexa.com/docs/monitoring/call-detail-page.md)
>
> Call attributes can be traced back to exact call records.

## Variable Hygiene Questions

> [accordion] Are variable names stable?
>
> Changing a column name can break templates and conditions.

> [accordion] Are values present for every lead?
>
> Use defaults or validation before activation.

> [accordion] Are call attributes created before they are used?
>
> A condition cannot branch on an outcome that has not happened yet.

> [accordion] Are sensitive values necessary?
>
> Avoid carrying sensitive data through workflow variables unless required.

## Workflow Variables And Activation

Workflow activation now checks whether lead variables used in conditions or application node templates have matching workflow-level fallback values. A lead variable is any simple `{{variable_name}}` placeholder that is not a runtime call attribute.

| Variable source | Activation behavior |
| - | - |
| Condition node field such as `dynamic_variables.plan_name` | Requires a matching Workflow Variable before activation. |
| Application node template or action field containing `{{plan_name}}` | Requires a matching Workflow Variable before activation. |
| Custom Function node URL, header, query or body containing `{{plan_name}}` | Requires a matching Workflow Variable before activation. Keys under `custom_function.` and response variables that a Custom Function node writes are exempt. |
| Runtime call attributes such as `{{call_id}}`, `{{call_status}}`, or `{{call_summary}}` | Does not require a workflow fallback because DialNexa injects it at runtime. |
| Existing leads missing a referenced variable | Activation can warn that those leads will use the workflow-level fallback value. |

Add workflow fallback values before activation when a variable may be missing from uploaded lead data. This prevents application templates and conditions from receiving empty placeholders.

### Runtime Call Attributes

The activation check treats these as runtime attributes rather than lead CSV columns: `lead_phone`, `customer_phone`, `recipient_phone_number`, `workflow_lead_id`, `call_log_id`, `call_id`, `call_status`, `call_duration`, `call_duration_seconds`, `call_sentiment`, `call_summary`, `pca_summary`, and `pca_intent`.

## Related Reading

> [card] [Condition Nodes](https://dialnexa.com/docs/workflows/condition-nodes.md)
>
> Route with data.

> [card] [Application Nodes](https://dialnexa.com/docs/workflows/application-nodes.md)
>
> Use data in actions.

> [card] [Call Data Model](https://dialnexa.com/docs/data/call-data-model.md)
>
> Understand call fields.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.