***

title: addSubsection
slug: /reference/typescript/agents/configuration/prompt-manager/add-subsection
description: Add a subsection under a parent POM section.
max-toc-depth: 3
---------------------

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

Add a subsection under a parent POM section. Creates the parent section if
it does not exist.

## **Parameters**

<ParamField path="parentTitle" type="string" required={true} toc={true}>
  The heading of the parent section.
</ParamField>

<ParamField path="title" type="string" required={true} toc={true}>
  The subsection heading.
</ParamField>

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

<Indent>
  <ParamField path="opts.body" type="string" toc={true}>
    Body text for the subsection.
  </ParamField>

  <ParamField path="opts.bullets" type="string[]" toc={true}>
    Bullet points for the subsection.
  </ParamField>
</Indent>

## **Returns**

`void`

## **Example**

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

const pm = new PromptManager();
pm.addSection('Policies', { body: 'Follow company policies at all times.' });
pm.addSubsection('Policies', 'Returns', { body: 'Accept returns within 30 days.' });
console.log(pm.getPrompt());
```