***

title: setPostPrompt
slug: /reference/typescript/agents/configuration/prompt-manager/set-post-prompt
description: Set the post-prompt text appended after the main prompt.
max-toc-depth: 3
---------------------

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

Set the post-prompt text appended after the main prompt. The post-prompt is
typically used to instruct the model on how to summarize the conversation.

## **Parameters**

<ParamField path="text" type="string" required={true} toc={true}>
  The post-prompt string.
</ParamField>

## **Returns**

`void`

## **Example**

```typescript {4}
import { PromptManager } from '@signalwire/sdk';

const pm = new PromptManager();
pm.setPostPrompt('Summarize the conversation as a JSON object with keys: topic, resolution, sentiment.');
console.log(pm.getPostPrompt());
```