end

View as MarkdownOpen in Claude

End the conversation and start post-processing: the summary, and a request to your post_prompt_url when your SWML sets one. The webhook is not instant, so expect seconds.

To remove a conversation without any of that, use delete().

Parameters

conversationId
stringRequired

The conversation to end.

Returns

Promise<boolean>true when the service reported the conversation ended.

Example

import { AIChatClient } from '@signalwire/sdk';
const client = new AIChatClient({ space: 'your-space' });
const ended = await client.end('chat-8f21');
console.log(ended ? 'Conversation ended' : 'No such conversation');