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

# addVerb

> Add a SWML verb to the main section of the document.

Add a verb to the `main` section of the current SWML document. Delegates to
the underlying SwmlBuilder's `addVerb()` method.

## **Parameters**

**`name`** `string` — required

The SWML verb name (e.g., `"answer"`, `"play"`, `"ai"`, `"hangup"`, `"connect"`).

---

**`config`** `unknown` — required

Configuration for the verb.

---

## **Returns**

`this` -- Returns the service for method chaining.

## **Example**

```typescript {5}
import { SWMLService } from '@signalwire/sdk';

const service = new SWMLService({ name: 'my-ivr' });
service
  .addVerb('answer', {})
  .addVerb('play', { url: 'https://example.com/greeting.mp3' })
  .addVerb('hangup', {});
```