Server SDKs
Build AI agents, control calls, send messages, and more
add_section
Add a new named section to the SWML document. Delegates to SWMLService.add_section().
SWMLService.add_section()
Name of the section to create.
Self — The builder instance for method chaining.
Self
1from signalwire import SWMLService, SWMLBuilder23service = SWMLService(name="multi-section")4builder = SWMLBuilder(service)56doc = (7 builder8 .answer()9 .add_section("greeting")10 .play(url="say:Hello!")11 .build()12)13print(doc)