renderSwml
Render the complete SWML document by assembling all 5 phases: pre-answer, answer, post-answer, AI, and post-AI verbs. This is called automatically by the Hono route handler on each incoming request, but can also be called manually for testing or debugging.
Parameters
callId
Optional call ID to use for session tokens. Auto-generated if omitted.
modifications
Optional object (typically returned from
onSwmlRequest())
merged into the AI verb config before rendering. global_data is deep-merged;
all other keys override AI config fields directly.
Returns
string — The rendered SWML document as a JSON string.