***

title: add_subsection
slug: /reference/python/agents/pom-builder/add-subsection
description: Add a subsection 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/python/agents/pom-builder

Add a subsection to an existing section. If the parent section does not exist,
it is created automatically.

## **Parameters**

<ParamField path="parent_title" type="str" required={true} toc={true}>
  Title of the parent section.
</ParamField>

<ParamField path="title" type="str" required={true} toc={true}>
  Subsection title.
</ParamField>

<ParamField path="body" type="str" default="" toc={true}>
  Subsection body text.
</ParamField>

<ParamField path="bullets" type="Optional[list[str]]" toc={true}>
  Bullet points for the subsection.
</ParamField>

## **Returns**

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

## **Example**

```python {7,13}
from signalwire.core.pom_builder import PomBuilder

pom = PomBuilder()

pom.add_section("Capabilities", body="You can help with the following:")

pom.add_subsection(
    "Capabilities",
    "Limitations",
    body="You cannot process payments directly."
)

pom.add_subsection(
    "Capabilities",
    "Escalation",
    body="Transfer to a human agent for these topics:",
    bullets=["Refunds over $500", "Account closures", "Legal requests"]
)

print(pom.render_markdown())
```