setPostPrompt

View as MarkdownOpen in Claude

Override the post-prompt text while this context is active.

Parameters

postPrompt
stringRequired

Post-prompt text for this context.

Returns

Context — Self for method chaining.

Example

1import { ContextBuilder } from '@signalwire/sdk';
2
3const builder = new ContextBuilder();
4builder.addContext('default').addStep('menu').setText('Ask what the caller needs.');
5
6const billing = builder.addContext('billing');
7billing.setPostPrompt('Summarize the billing issue and resolution.');
8billing.addStep('review').setText('Review the caller\'s account and recent charges.');