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
ReferenceGuides
ReferenceGuides
  • Core
    • Introduction to SWML
    • Expressions
    • Template functions
    • Variables
    • Errors
  • Calling
    • Overview
    • ai
    • ai_sidecar
    • amazon_bedrock
    • answer
    • cond
    • connect
    • denoise
    • detect_machine
    • enter_queue
    • execute
    • goto
    • hangup
    • join_conference
    • join_room
    • label
    • live_transcribe
    • live_translate
    • pay
    • play
    • prompt
    • receive_fax
    • record
    • record_call
    • request
    • return
    • send_digits
    • send_fax
    • send_sms
    • set
    • sip_refer
    • sleep
    • stop_denoise
    • stop_record_call
    • stop_tap
    • switch
    • tap
    • transcribe
    • transcribe_stop
    • transfer
    • unset
    • user_event
  • Messaging
    • Overview
    • execute
    • goto
    • label
    • receive
    • reply
    • request
    • return
    • switch
    • transfer
LogoLogoSignalWire Docs
Log inSign up
Support
On this page
  • Properties
  • Examples
  • Label paired with goto for retry
Messaging

label

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

receive

Next
Built with

Mark any point of the current SWML section with a label so that goto can jump to it.

Properties

label
stringRequired

The label name. Must be unique within the section.

Examples

Label paired with goto for retry

1version: 1.0.0
2sections:
3 main:
4 - label: try_lookup
5 - request:
6 url: "https://api.example.com/lookup"
7 save_variables: true
8 - switch:
9 variable: request_result
10 case:
11 timeout:
12 - goto:
13 label: try_lookup
14 max: 3
15 default:
16 - reply:
17 body: "Lookup complete."