Server SDKs
Build AI agents, control calls, send messages, and more
Inject a user message when entering this context. Useful for triggering the AI to speak first after a context switch.
User message to inject.
Context — Self for method chaining.
Context
1import { ContextBuilder } from '@signalwire/sdk';23const builder = new ContextBuilder();4const sales = builder.addContext('default');5sales.setUserPrompt('I\'d like to learn about your products.');6sales.addStep('pitch').setText('Present our product lineup to the caller.');