> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gleap.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Conversations

Open or start conversations in the Gleap widget programmatically. All methods take an optional `showBackButton` (default `true`) that controls whether the widget shows a back arrow.

<img src="https://mintcdn.com/gleap-1d346ffa/MCCg3Pia7IrMFFzd/images/Conversations.png?fit=max&auto=format&n=MCCg3Pia7IrMFFzd&q=85&s=5957021512389e3e520d72b1bc1eb5b6" alt="Conversations" width="2045" height="1133" data-path="images/Conversations.png" />

## `Gleap.startConversation(showBackButton?)`

Start a new conversation in the widget.

```js theme={null}
Gleap.startConversation();
```

## `Gleap.openConversations(showBackButton?)`

Open the conversation history overview.

```js theme={null}
Gleap.openConversations();
```

## `Gleap.openConversation(shareToken, showBackButton?)`

Open a specific conversation by its share token.

```js theme={null}
Gleap.openConversation("SHARE_TOKEN");
```

## `Gleap.startBot(botId, showBackButton?)`

Start a new conversation routed to a specific bot.

```js theme={null}
Gleap.startBot("YOUR_BOT_ID");
```

## `Gleap.askAI(question, showBackButton?)`

Open the widget conversation flow with a question pre-asked to Kai.

```js theme={null}
Gleap.askAI("How do I reset my password?");
```
