Server SDKs
Build AI agents, control calls, send messages, and more
Retrieve an existing context by name for inspection or modification.
Name of the context to retrieve.
Context if found, undefined otherwise.
Context
undefined
1import { ContextBuilder } from '@signalwire/sdk';23const builder = new ContextBuilder();4const ctx = builder.addContext('default');5ctx.addStep('greet').setText('Greet the caller.');67const retrieved = builder.getContext('default');8if (retrieved !== undefined) {9 retrieved.addStep('followup').setText('Ask if there is anything else.');10}