> For the complete documentation index, see [llms.txt](https://matebot-app.gitbook.io/untitled/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://matebot-app.gitbook.io/untitled/scripting/conversations.md).

# Conversations

MateBot uses Grammy's conversation API.

To create a command that uses conversation, follow the given step -

#### Step 1 <a href="#step-1" id="step-1"></a>

Create a command with the following content:

```javascript
await Ctx.conversation.enter("name");
```

#### Step 2 <a href="#step-2" id="step-2"></a>

Create conversation with the name `name` and paste the following script:​

{% code fullWidth="false" %}

```javascript
await Ctx.reply("What is your name?");
const nameCtx = await conversation.waitFor(":text");
await Ctx.reply("Hi, " + nameCtx.message.text);
```

{% endcode %}

Now save and restart your bot.

{% hint style="info" %}
Don't forget to use `await`
{% endhint %}
