***

title: getPomBuilder
slug: /reference/typescript/agents/configuration/prompt-manager/get-pom-builder
description: Return the underlying PomBuilder instance.
max-toc-depth: 3
---------------------

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

[pombuilder]: /docs/server-sdks/reference/typescript/agents/pom-builder

Return the underlying [`PomBuilder`][pombuilder] instance, if POM mode is active.
Returns `null` if POM is not in use (i.e., the manager was created with
`usePom = false` and no sections have been added).

## **Parameters**

None.

## **Returns**

`PomBuilder | null` -- The PomBuilder, or `null` if POM is not in use.

## **Example**

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

const pm = new PromptManager();
pm.addSection('Role', { body: 'You are a support agent.' });
const pom = pm.getPomBuilder();
if (pom) {
  console.log(pom.renderMarkdown());
}
```