# How to get information from whatsapp bot

**URL:** <https://community.yellow.ai/t/how-to-get-information-from-whatsapp-bot/2885>\
**Category:** Studio\
**Tags:** builder\
**Created:** [November 25, 2022, 12:24pm UTC](https://community.yellow.ai/t/how-to-get-information-from-whatsapp-bot/2885 "2022-11-25T12:24:26Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ria\_Gomes](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.yellow.ai/ria_gomes/32/1293_2.png) [@Ria\_Gomes](https://community.yellow.ai/u/Ria_Gomes)\
**Post date:** [November 25, 2022, 12:24pm UTC](https://community.yellow.ai/t/how-to-get-information-from-whatsapp-bot/2885/1 "2022-11-25T12:24:26Z")

</div>

So I want to use bot for whatsapp channel for a campaign, and the information I get from there I want to store. So how do I do that?

---

<div class="post-metadata">

**Author:** ![Saurabh\_Kumar](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.yellow.ai/saurabh_kumar/32/1596_2.png) [@Saurabh\_Kumar](https://community.yellow.ai/u/Saurabh_Kumar)\
**Post date:** [November 25, 2022, 2:03pm UTC](https://community.yellow.ai/t/how-to-get-information-from-whatsapp-bot/2885/2 "2022-11-25T14:03:48Z")

</div>

Greetings,

What kind of information do you want to store? Are you building a flow/journey which will be executed on WhatsApp and store the user’s response respectively?

Can you share the use-case in detail.

---

<div class="post-metadata">

**Author:** ![gautham](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.yellow.ai/gautham/32/1593_2.png) [@gautham](https://community.yellow.ai/u/gautham)\
**Post date:** [November 28, 2022, 4:46am UTC](https://community.yellow.ai/t/how-to-get-information-from-whatsapp-bot/2885/3 "2022-11-28T04:46:21Z")

</div>

@Ria_Gomes

When a user interacts with a WhatsApp campaign that is a pre-defined QuickReply template — we can track the values using the **“whatsapp quick reply” event** `{{{data.event}}}`

This event’s payload will send

1. campaignID — `{{{data.event.campaignId}}}`
2. templateName — `{{{data.event.templateName}}}`
3. Button clicked — `{{{data.event.data}}}`
4. Mobile number of the user — `{{{sender}}}`

---

<div class="post-metadata">

**Author:** ![Ria\_Gomes](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.yellow.ai/ria_gomes/32/1293_2.png) [@Ria\_Gomes](https://community.yellow.ai/u/Ria_Gomes)\
**Post date:** [November 28, 2022, 11:03am UTC](https://community.yellow.ai/t/how-to-get-information-from-whatsapp-bot/2885/4 "2022-11-28T11:03:08Z")

</div>

Exactly what you said. I will be using a template or something that will take the user’s response within the whatsapp bot flow/journey. Then I want to store those responses and upload it on my site. So, how do I get those data containing user informations and responses from the yellow ai bot journey/flow?

---

<div class="post-metadata">

**Author:** ![gautham](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.yellow.ai/gautham/32/1593_2.png) [@gautham](https://community.yellow.ai/u/gautham)\
**Post date:** [November 29, 2022, 5:13am UTC](https://community.yellow.ai/t/how-to-get-information-from-whatsapp-bot/2885/5 "2022-11-29T05:13:02Z")

</div>

The quickest way to set up a bot flow to handle bot response is to use the [**WhatsApp Template Manager**](https://cloud.yellow.ai/marketplace/fd8ce83c17483eca84389e95cce88a87) template from our marketplace

Let me breakdown the steps involved that we’re automatically handling in this template

### Step 1: Activate the Whatsapp Quick reply Event

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/yellowmessenger1/original/2X/7/7fc034d2415c09dcc84f0865b909d0144d4641e3.png)

### Step 2: Set this as the start trigger of your flow

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/yellowmessenger1/original/2X/b/b839207bd97d3ce63a58af08fccd038343d57f6b.png)

### Step 3: Use a **Variables Node** to Set the values in the format I’ve shared above

1. campaignID — `{{{data.event.campaignId}}}`
2. templateName — `{{{data.event.templateName}}}`
3. Button clicked — `{{{data.event.data}}}`
4. Mobile number of the user — `{{{sender}}}`  
 ![image](https://canada1.discourse-cdn.com/flex035/uploads/yellowmessenger1/original/2X/a/a35dbbaaf0f6755f412d7d2b0b621a7819e9603c.png)

### Step 4: Insert the values into a Database

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/yellowmessenger1/original/2X/9/926e8f0c0eccdfd14cfa15791f0088d92697b5b2.png)

Now, when a user clicks on a button that’s a part of the template, we’ll automatically insert their phone number, template name and button clicked.
