> ## Documentation Index
> Fetch the complete documentation index at: https://developer.watson-orchestrate.ibm.com/llms.txt
> Use this file to discover all available pages before exploring further.

# restartConversation()

Restarts the current chat conversation, resetting all related state and starting a new conversation thread.

## Syntax

```javascript theme={null}
await instance.restartConversation();
```

## Parameters

<ParamField path="None" />

## Returns

<ResponseField name="Promise<void>">
  A promise that resolves when the conversation is restarted.
</ResponseField>

## Examples

The following example restarts the conversation:

```javascript theme={null}
// Restart the conversation
await instance.restartConversation();

// Restart and send a new message
instance.on('restartConversation', async (event, instance) => {
    await instance.send('Starting fresh conversation');
});
```

<Card title="Do you need practical examples?" icon="text-align-start" href="https://www.ibm.com/docs/SSAVQO/deploy/web_chat_agent/tutorials/tutorials_lp.html" arrow="true" cta="Learn with walk-throughs" horizontal>
  Learn how to apply the features available for embedded chat into your implementation with guidance and examples.
</Card>
