> For the complete documentation index, see [llms.txt](https://helpdocumentation.gitbook.io/user/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://helpdocumentation.gitbook.io/user/bot-builder/whatsapp-chatbot/create-whatsapp-bot-to-collect-user-data-in-crm.md).

# 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
