Server SDKs
Build AI agents, control calls, send messages, and more
Add a POM section to the context prompt. Cannot be used together with setPrompt().
setPrompt()
Section heading.
Section body text.
Context — Self for method chaining.
Context
1import { ContextBuilder } from '@signalwire/sdk';23const builder = new ContextBuilder();4const ctx = builder.addContext('default');5ctx.addSection('Role', 'You are a billing specialist.');6ctx.addSection('Guidelines', 'Always verify account ownership first.');7ctx.addStep('greet').setText('Greet the caller and ask how you can help.');