***

title: renderMarkdown
slug: /reference/typescript/agents/pom-builder/render-markdown
description: Render all POM sections as a combined Markdown string.
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

Render all sections as a combined Markdown string. Each section becomes a `##`
heading with its body text, bullet points, and nested subsections rendered below
it. This is the output used by `AgentBase` when assembling the AI prompt.

## **Parameters**

None.

## **Returns**

`string` -- The complete rendered Markdown prompt text.

## **Example**

```typescript {6}
import { PomBuilder } from '@signalwire/sdk';

const pom = new PomBuilder();
pom.addSection('Role', { body: 'You are a helpful assistant.' });
pom.addSection('Rules', { bullets: ['Be concise', 'Be accurate'] });
const markdown = pom.renderMarkdown();
console.log(markdown);
// ## Role
// You are a helpful assistant.
// ## Rules
// - Be concise
// - Be accurate
```