***

title: setPostPrompt
slug: /reference/typescript/agents/context-builder/context/set-post-prompt
description: Override the post-prompt text while this context is active.
max-toc-depth: 3
---------------------

For a complete index of all SignalWire documentation pages, fetch https://signalwire.com/docs/llms.txt

[ref-context]: /docs/server-sdks/reference/typescript/agents/context-builder/context

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

## **Parameters**

<ParamField path="postPrompt" type="string" required={true} toc={true}>
  Post-prompt text for this context.
</ParamField>

## **Returns**

[`Context`][ref-context] -- Self for method chaining.

## **Example**

```typescript {7}
import { ContextBuilder } from '@signalwire/sdk';

const builder = new ContextBuilder();
builder.addContext('default').addStep('menu').setText('Ask what the caller needs.');

const billing = builder.addContext('billing');
billing.setPostPrompt('Summarize the billing issue and resolution.');
billing.addStep('review').setText('Review the caller\'s account and recent charges.');
```