---
description: MateBot uses Grammy's conversation API.
---

# Conversations

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 %}
