***

title: getPostPrompt
slug: /reference/typescript/agents/agent-base/get-post-prompt
description: Retrieve the current post-prompt text.
max-toc-depth: 3
---------------------

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

Retrieve the current post-prompt text, if one has been set.

## **Parameters**

None.

## **Returns**

`string | null` -- The post-prompt string, or `null` if not configured.

## **Example**

```typescript {5}
import { AgentBase } from '@signalwire/sdk';

const agent = new AgentBase({ name: 'support', route: '/support' });
agent.setPostPrompt('Summarize this call as JSON with intent, resolution, and sentiment.');
const postPrompt = agent.getPostPrompt();
if (postPrompt) {
  console.log(postPrompt);
}
```