Server SDKs
Build AI agents, control calls, send messages, and more
Set the context’s prompt text directly. Cannot be used together with addSection() or addBullets().
addSection()
addBullets()
Plain-text prompt for this context.
Context — Self for method chaining.
Context
1import { ContextBuilder } from '@signalwire/sdk';23const builder = new ContextBuilder();4const ctx = builder.addContext('default');5ctx.setPrompt('You are handling billing inquiries. Be concise and accurate.');6ctx.addStep('greet').setText('Greet the caller and ask how you can help.');