Server SDKs
Build AI agents, control calls, send messages, and more
Build and render the complete SWML document as a JSON string. Delegates to SWMLService.render_document().
SWMLService.render_document()
str — The SWML document serialized as JSON.
str
1from signalwire import SWMLService, SWMLBuilder23service = SWMLService(name="demo")4builder = SWMLBuilder(service)56json_str = builder.answer().ai(prompt_text="Hello").render()7print(json_str)