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

# addSection

> Add a top-level section to the model.

[ref-pom]: /docs/server-sdks/reference/typescript/agents/pom-object-model

[ref-section]: /docs/server-sdks/reference/typescript/agents/pom-object-model/section

Add a new top-level [`Section`][ref-section] to the
[`PromptObjectModel`][ref-pom] and return it.

Only the first section may be titleless. Adding a section with no title after
the first one throws `Error("Only the first section can have no title")`.

## **Parameters**

Section heading. Pass `null` only for the first section.

Optional section content.

Section body text.

Bullet points for this section. A single string is coerced into a one-item
list.

Whether to number this section in the rendered output.

Whether to render bullets as a numbered list instead of using bullet markers.

## **Returns**

[`Section`][ref-section] -- The newly created section.

## **Example**

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

const pom = new PromptObjectModel();
const section = pom.addSection('Rules', { bullets: ['Be concise', 'Be accurate'] });
section.addBody('Follow these guidelines.');
```