***

title: add_to_section
slug: /reference/python/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/python/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="str" required={true} toc={true}>
  Section title to add content to.
</ParamField>

<ParamField path="body" type="Optional[str]" toc={true}>
  Text to append to the section body. Appended with a double newline separator.
</ParamField>

<ParamField path="bullet" type="Optional[str]" toc={true}>
  Single bullet point to add.
</ParamField>

<ParamField path="bullets" type="Optional[list[str]]" toc={true}>
  Multiple bullet points to add.
</ParamField>

## **Returns**

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

## **Example**

```python {9-11,17}
from signalwire.core.pom_builder import PomBuilder

pom = PomBuilder()

# Start with a basic section
pom.add_section("Capabilities", body="You can help with the following:")

# Add bullets incrementally as skills are loaded
pom.add_to_section("Capabilities", bullet="Weather lookups")
pom.add_to_section("Capabilities", bullet="Calendar scheduling")
pom.add_to_section("Capabilities", bullets=[
    "Order tracking",
    "Account management"
])

# Auto-vivification: creates the section if it doesn't exist
pom.add_to_section("Notes", body="This section was created automatically.")

print(pom.render_markdown())
```