Server SDKs
Build AI agents, control calls, send messages, and more
Move an existing step to a specific position in the step order.
Name of the step to move.
Target index in the step order. 0 places the step first.
0
Context — Self for method chaining. Throws an Error if the step is not found.
Context
Error
1import { ContextBuilder } from '@signalwire/sdk';23const builder = new ContextBuilder();4const ctx = builder.addContext('default');5ctx.addStep('collect_info').setText('Collect the caller\'s information.');6ctx.addStep('confirm').setText('Confirm the details with the caller.');78ctx.moveStep('confirm', 0);