***

title: addToSection
slug: /reference/typescript/agents/pom-builder/add-to-section
description: Add content to an existing section.
max-toc-depth: 3
---------------------

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

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

Add content to an existing section. If the section does not exist, it is created
automatically (auto-vivification).

## **Parameters**

<ParamField path="title" type="string" required={true} toc={true}>
  Section title to add content to.
</ParamField>

<ParamField path="opts" type="object" toc={true}>
  Optional content to add.
</ParamField>

<Indent>
  <ParamField path="opts.body" type="string" toc={true}>
    Text to append to the section body. Appended with a double newline separator.
  </ParamField>

  <ParamField path="opts.bullet" type="string" toc={true}>
    Single bullet point to add.
  </ParamField>

  <ParamField path="opts.bullets" type="string[]" toc={true}>
    Multiple bullet points to add.
  </ParamField>
</Indent>

## **Returns**

[`PomBuilder`][ref-pombuilder] -- Self for method chaining.

## **Example**

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

const pom = new PomBuilder();
pom.addSection('Rules');
pom.addToSection('Rules', { bullet: 'Be concise' });
pom.addToSection('Rules', { bullet: 'Be accurate' });
pom.addToSection('Rules', { body: 'Always verify information.' });
```