> 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. # addPostAiVerb > Add a SWML verb to run after the AI conversation ends. [ref-agentbase]: /docs/server-sdks/reference/typescript/agents/agent-base Add a verb to run after the AI conversation ends (phase 5). Common uses include logging, cleanup transfers, and explicit hangup. ## **Parameters** **`verbName`** `string` — required SWML verb name (e.g., `"hangup"`, `"transfer"`, `"request"`). --- **`config`** `Record` — required Verb configuration object. --- ## **Returns** [`AgentBase`][ref-agentbase] -- Returns `this` for method chaining. ## **Example** ```typescript {5} import { AgentBase } from '@signalwire/sdk'; const agent = new AgentBase({ name: 'support', route: '/support' }); agent.setPromptText('You are a helpful assistant.'); agent.addPostAiVerb('request', { url: 'https://api.example.com/call-complete', method: 'POST', }); agent.addPostAiVerb('hangup', {}); await agent.serve(); ``` > Add a SWML verb to run after the AI conversation ends.