Server SDKs
Build AI agents, control calls, send messages, and more
Set whether to consolidate conversation history when this step switches contexts.
Whether to summarize previous conversation 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 support.');8transfer.setValidContexts(['support']);9transfer.setResetConsolidate(true);10builder.addContext('support').addStep('help').setText('Help the caller with their issue.');