Server SDKs
Build AI agents, control calls, send messages, and more
Build and return the complete SWML document as a Python dictionary. Delegates to SWMLService.get_document().
SWMLService.get_document()
dict[str, Any] — The complete SWML document.
dict[str, Any]
1from signalwire import SWMLService, SWMLBuilder23service = SWMLService(name="demo")4builder = SWMLBuilder(service)56doc = builder.answer().hangup().build()7print(doc)8# {"version": "1.0.0", "sections": {"main": [{"answer": {}}, {"hangup": {}}]}}