> Fetch clean Markdown by appending `.md` to any page URL under https://signalwire.com/docs or requesting it with the HTTP header `Accept: text/markdown`. The root index at https://signalwire.com/docs/llms.txt lists the available documentation indexes. # promptAddSubsection > Add a subsection to an existing prompt section. [ref-agentbase]: /docs/server-sdks/reference/typescript/agents/agent-base Add a subsection to an existing section. ## **Parameters** **`parentTitle`** `string` — required Title of the parent section. --- **`title`** `string` — required Subsection heading. --- **`opts`** `object` Optional subsection content. --- **`opts.body`** `string` Subsection body text. --- **`opts.bullets`** `string[]` Subsection bullet points. --- ## **Returns** [`AgentBase`][ref-agentbase] -- Returns `this` for method chaining. ## **Example** ```typescript {7} import { AgentBase } from '@signalwire/sdk'; const agent = new AgentBase({ name: 'support', route: '/support' }); agent.promptAddSection('Capabilities', { body: 'You can help with the following:', }); agent.promptAddSubsection('Capabilities', 'Orders', { body: 'Look up order status, process returns and exchanges.', }); agent.promptAddSubsection('Capabilities', 'Billing', { body: 'Check account balances and explain recent charges.', }); await agent.serve(); ``` > Add a subsection to an existing prompt section.