Skip to main content
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

Where to go next

Last modified on September 24, 2026