Server SDKs
Build AI agents, control calls, send messages, and more
Add a POM section to the system prompt. Cannot be combined with setSystemPrompt().
setSystemPrompt()
Section heading.
Section body text.
Context — Self for method chaining.
Context
1import { ContextBuilder } from '@signalwire/sdk';23const builder = new ContextBuilder();4builder.addContext('default').addStep('menu').setText('Ask what the caller needs.');56const billing = builder.addContext('billing');7billing.addSystemSection('Role', 'You are a billing specialist.');8billing.addSystemSection('Tone', 'Be professional and empathetic.');9billing.addStep('review').setText('Review the caller\'s account and recent charges.');