Update assistant dynamic variables from webhook tool responses

24, Mar 2026

Webhook tools can now write values directly into an assistant’s dynamic variables. This lets you route tool output into prompts, actions, and insights without extra middleware or post-processing.

What’s new

  • Dynamic variable assignment: Map response fields to variables using response paths.
  • Response path mapping: Extract values like current.precipitation from JSON responses.
  • Instruction injection: Use updated variables in assistant instructions at runtime.
  • Insight integration: Reference dynamic variables inside insight templates.
  • Tool-driven inputs: Populate downstream fields such as transfer targets or routing logic.

Why it matters

  • Reduces glue code by removing the need for external data handling.
  • Improves control over model behavior using real-time tool outputs.
  • Simplifies workflows by passing data across steps without reformatting.
  • Prevents inconsistencies between tool results and assistant context.
  • Enables deterministic routing based on structured API responses.

Example use cases

  • Populate a call transfer destination from a CRM lookup webhook.
  • Adjust assistant replies based on weather or location data.
  • Store extracted addresses or IDs for later steps in a flow.
  • Generate insights using structured outputs from external APIs.

Getting started

Screenshot_24-3-2026_18712_portal.telnyx.com.jpeg

  1. Create or edit a webhook tool in your AI Assistant in the Mission Control.
  2. Add a dynamic variable assignment, set a variable name.
  3. Define the response path, for example current.precipitation.
  4. Reference the variable in assistant instructions or insight templates using {{variable_name}}.
  5. Test the tool and confirm the variable updates during execution.