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

# Do Real-Time Routing Webhooks Support Nested Variables in the Response Body?

> Yes — as long as the response body is in JSON format.

Real-Time Routing webhooks can capture variables nested inside the response body, but only when the response body is in JSON format.

**Applies to:** Real-Time Routing Webhooks

## How to map a nested variable

1. Configure the Real-Time Routing webhook.
2. Test the webhook to confirm you get a successful response.
3. On the webhook's **Configuration** tab, select the **Data Mapping** sub-tab.
4. In the **Webhook Response Field**, enter the path to the value you want to extract from the JSON response. This tells Invoca where to find the value in the webhook's response. For example, if the value is nested under `action.parameters.user_parameters`, you'd enter `action.parameters.user_parameters.number`.
5. In the **Marketing Data Field** section, search for and select the field you want to map the value to.
6. Click **Save**.

Once mapped, the value can be used downstream — for example, in reporting or IVR routing — anywhere the Marketing Data field is available.

## Appendix: Example JSON response body

```json theme={null}
{
  "action": {
    "parameters": {
      "user_parameters": {
        "number": "18885551234"
      }
    }
  }
}
```

## Where to go next

* [Do Real-Time Routing Webhooks Support XML Format?](/s/article/real-time-routing-webhooks-xml-format)
