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
  • Output Node Connectors
  • Node Settings
  • Example
  • Use conditions to create a block list
Nodes

Conditions

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

Execute SWML

Next
Built with

A Conditions node works like a JavaScript if statement.

A condition field can reference variables that have been set in the flow with %{Key}, Request node responses accessed with %{request_response.<object_field>}, or call parameters such as %{call.from}. Add additional conditions to create else if conditions.

The Cond # path will be executed for a truthy condition. The Else path will be executed for a falsy condition.

Output Node Connectors

Condition
string

The condition that is evaluated to determine which path to take. Additional conditions can be added by clicking the Add condition button. Additional conditions will act as JavaScript else-if statements.

Else
string

The path to take if none of the conditions are met.

Node Settings

Conditions
string

The conditions that are evaluated to determine which path to take. Additional conditions can be added by clicking the Add condition button. Additional conditions will act as JavaScript else-if statements.

Example

Use conditions to create a block list

In this example, we immediately hang up calls from specific numbers on our block list and forward call from a VIP directly to our administration number. All other calls will connect to the main reception number.

Block or pass through calls based on caller number.

Block or pass through calls based on caller number.