# Create WhatsApp Bot to Collect User Data in CRM

You can build a WhatsApp bot to collect user details and store them in the CRM.

#### Steps to Create Bot

1. Go to **CRM → Super Fields** and create fields like **City, Customer Category, Product Category, GST Number**.
2. Go to **Chatbot → Create Bot Flow** and give a name.
3. Add a **Trigger (Keyword on WhatsApp)** and select channel.

#### Collect User Data

4. Send a **welcome message** with user name.
5. Ask for **City** and save it to the **City field**.
6. Ask **Customer Type (Retailer / Wholesaler)** using buttons.

#### Conditional Flow

7. If **Retailer** → Ask for **Product Category** and save it.
8. If **Wholesaler** → Ask for **GST Number** and save it.

#### Assign to Team

9. Use **Assign to Agent** to route chats to specific team members.

#### Final Step

10. **Save and Enable** the bot flow.

Now, all user responses will be **automatically stored in CRM fields** and assigned to the right team.

{% embed url="<https://youtu.be/pRkVvWfx5Fs>" %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://helpdocumentation.gitbook.io/user/bot-builder/whatsapp-chatbot/create-whatsapp-bot-to-collect-user-data-in-crm.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
