For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Log inSign up
Support
  • Core
    • Overview
    • Variables
    • Versioning
  • Nodes
    • Overview
    • AI Agent
    • Answer Call
    • Conditions
    • Execute SWML
    • Forward to Phone
    • Gather Input
    • Handle Call
    • Hang Up Call
    • Play Audio or TTS
    • Request
    • Send SMS
    • Set Variables
    • Start Call Recording
    • Stop Call Recording
    • Unset Variables
    • Voicemail Recording
LogoLogoSignalWire Docs
Log inSign up
Support
On this page
  • Node Settings
  • Example
Nodes

Set Variables

|View as Markdown|Open in Claude|
Was this page helpful?
Edit this page
Previous

Start Call Recording

Next
Built with

Use this node to set variables that can be accessed from other nodes in the Call Flow.

The value can be a static value set as a string ("value"), a variable from another node such as a request response ( %{request_response.<object_field>} ), or a call parameter ( %{call.from} ).

Access these variables in other blocks with %{<Key>} and unset variables with the Unset Variables node.

Node Settings

Key
string

The name of the variable to set.

Value
string

The value to set the variable to. This can be a static value, a variable from another node, or a call parameter.

Example

Use Set Variables if you plan to use multiple Request nodes in the same Flow and you need the variables to carry across the entire Flow.

This example makes a request to an API for temperature and location. The request’s response is saved in variables called my_temperature and my_location.

In order to make a new request to a new webhook, the Set Variables node is essential because the second Request node will overwrite the request_response. Your first variables will remain accessible using %{vars.my_temperature} and %{vars.my_location}.

Set variables from a request response.

Set variables from a request response.