Server SDKs
Build AI agents, control calls, send messages, and more
Set whether to perform a full conversation reset when this step switches contexts.
Whether to perform a full conversation reset on context switch.
Step — Self for method chaining.
Step
1import { ContextBuilder } from '@signalwire/sdk';23const builder = new ContextBuilder();4const ctx = builder.addContext('default');5ctx.addStep('greet').setText('Welcome the caller.');6const transfer = ctx.addStep('transfer');7transfer.setText('Transfer the caller to billing.');8transfer.setValidContexts(['billing']);9transfer.setResetFullReset(true);10transfer.setResetSystemPrompt(11 'You are a billing specialist. Forget all previous context.'12);13builder.addContext('billing').addStep('invoice').setText('Help with billing inquiries.');