> 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. # addVerbToSection > Add a SWML verb to a specific named section of the document. [ref-addsection]: /docs/server-sdks/reference/typescript/agents/swml-service/add-section [ref-addverb]: /docs/server-sdks/reference/typescript/agents/swml-service/add-verb Add a SWML verb to a specific named section of the document. If the section does not exist, it is created automatically before the verb is appended. Throws a validation error if schema validation is enabled and the verb config is invalid. > **Note** > > Use [`addSection()`][ref-addsection] first to create an empty section if you > prefer explicit creation, or use this method directly and let it auto-create. > For the default `main` section, use [`addVerb()`][ref-addverb] instead. ## **Parameters** **`sectionName`** `string` — required Name of the section to add the verb to (e.g., `"main"`, `"transfer_flow"`). --- **`verbName`** `string` — required The SWML verb name. --- **`config`** `unknown` — required Configuration for the verb. Typically a `Record` object; certain verbs like `sleep` accept a bare number. --- ## **Returns** `this` -- returns the service for fluent chaining. ## **Example** ```typescript {10} import { SWMLService } from '@signalwire/sdk'; const service = new SWMLService({ name: 'transfer-flow' }); // Build the main section service.addVerb('answer', {}); service.addVerb('ai', { prompt: { text: 'You are a helpful assistant' } }); // Build a separate transfer section service.addVerbToSection('transfer', 'connect', { to: '+15551234567', from: '+15559876543', }); console.log(service.renderDocument()); ``` > Add a SWML verb to a specific named section of the document.