***

title: to_dict
slug: /reference/python/agents/pom-builder/to-dict
description: Convert the POM to a list of section dictionaries.
max-toc-depth: 3
---------------------

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

Convert the POM to a list of section dictionaries. Useful for serializing the POM
for storage or passing to other components that expect dictionary input.

## **Returns**

`list[dict[str, Any]]` -- Serialized section list. Each dictionary contains keys
like `"title"`, `"body"`, and `"bullets"`.

## **Example**

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

pom = PomBuilder()
pom.add_section("Role", body="You are a helpful assistant.")
pom.add_section("Rules", bullets=["Be concise", "Be accurate"])

data = pom.to_dict()
print(data)
# [
#     {"title": "Role", "body": "You are a helpful assistant."},
#     {"title": "Rules", "bullets": ["Be concise", "Be accurate"]}
# ]
```