# Fetch details from which page the user is coming to the bot

**URL:** <https://community.yellow.ai/t/fetch-details-from-which-page-the-user-is-coming-to-the-bot/3402>\
**Category:** Channels\
**Created:** [January 11, 2023, 7:43am UTC](https://community.yellow.ai/t/fetch-details-from-which-page-the-user-is-coming-to-the-bot/3402 "2023-01-11T07:43:29Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sakshi\_Mishra](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.yellow.ai/sakshi_mishra/32/944_2.png) [@Sakshi\_Mishra](https://community.yellow.ai/u/Sakshi_Mishra)\
**Post date:** [January 11, 2023, 7:43am UTC](https://community.yellow.ai/t/fetch-details-from-which-page-the-user-is-coming-to-the-bot/3402/1 "2023-01-11T07:43:29Z")

</div>

The client has Facebook as well as Instagram pages, and in the pages they will be embedding our WhatsApp chatbot link. We want to fetch that which user is coming from which page. Is this possible?

PN:- Its not a fb ad campaign.

---

<div class="post-metadata">

**Author:** ![Harshin\_Balaji](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.yellow.ai/harshin_balaji/32/1632_2.png) [@Harshin\_Balaji](https://community.yellow.ai/u/Harshin_Balaji)\
**Post date:** [January 11, 2023, 10:14am UTC](https://community.yellow.ai/t/fetch-details-from-which-page-the-user-is-coming-to-the-bot/3402/2 "2023-01-11T10:14:30Z")

</div>

@Sakshi_Mishra

Create a different messaging link for Facebook Page and Instagram Page.  
For example - For Facebook you can have the default msg as Hi. and for Instagram - Hi…

When the user comes to the bot check for intial msg using if else condition and based on the msg you can find out if they are coming from facebook or instagram whatsapp link

---

<div class="post-metadata">

**Author:** ![Sakshi\_Mishra](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.yellow.ai/sakshi_mishra/32/944_2.png) [@Sakshi\_Mishra](https://community.yellow.ai/u/Sakshi_Mishra)\
**Post date:** [January 11, 2023, 10:21am UTC](https://community.yellow.ai/t/fetch-details-from-which-page-the-user-is-coming-to-the-bot/3402/3 "2023-01-11T10:21:40Z")

</div>

@Harshin_Balaji  
will go with this only but here the drawback is, the user can type any text by removing the pre appended text.

---

<div class="post-metadata">

**Author:** ![Suryakumar\_Arumugam](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.yellow.ai/suryakumar_arumugam/32/1673_2.png) [@Suryakumar\_Arumugam](https://community.yellow.ai/u/Suryakumar_Arumugam)\
**Post date:** [January 11, 2023, 11:39am UTC](https://community.yellow.ai/t/fetch-details-from-which-page-the-user-is-coming-to-the-bot/3402/4 "2023-01-11T11:39:35Z")

</div>

Hi @Wasim_Laskar can you please help us with this query :

Apart from the above method of having different initial text, is there any other way from which we can find which source(FB page / Instagram page) the end user landed up on our WhatsApp bot?

---

<div class="post-metadata">

**Author:** ![Sakshi\_Mishra](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.yellow.ai/sakshi_mishra/32/944_2.png) [@Sakshi\_Mishra](https://community.yellow.ai/u/Sakshi_Mishra)\
**Post date:** [January 11, 2023, 1:15pm UTC](https://community.yellow.ai/t/fetch-details-from-which-page-the-user-is-coming-to-the-bot/3402/5 "2023-01-11T13:15:36Z")

</div>

One more thing to note here is that:-  
While we connect facebook page or instagram page with WhatsApp account, we cannot give links with prefilled messages. We do it like this 👇

> **[Connect your Facebook Page and WhatsApp account | Facebook Help Center](https://www.facebook.com/help/iphone-app/2783732558314697)**
>
> You can connect your Facebook Page to a WhatsApp Business account and turn on syncing for your business contact info.

[https://faq.whatsapp.com/647574060315065](https://faq.whatsapp.com/647574060315065)

So, the workaround here won’t work as well.

@Harshin_Balaji @Suryakumar_Arumugam @Wasim_Laskar

---

<div class="post-metadata">

**Author:** ![Sanchia](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.yellow.ai/sanchia/32/1749_2.png) [@Sanchia](https://community.yellow.ai/u/Sanchia)\
**Post date:** [January 12, 2023, 12:00pm UTC](https://community.yellow.ai/t/fetch-details-from-which-page-the-user-is-coming-to-the-bot/3402/6 "2023-01-12T12:00:16Z")

</div>

To add on, we’ve 7 Facebook pages where Whatsapp will be linked and we need to identify the page the user is landing into the bot from. With the approach used to link Facebook & Whatsapp, there’s no option to create a custom link and hence need another solution.

---

<div class="post-metadata">

**Author:** ![Sanchia](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.yellow.ai/sanchia/32/1749_2.png) [@Sanchia](https://community.yellow.ai/u/Sanchia)\
**Post date:** [January 13, 2023, 10:53am UTC](https://community.yellow.ai/t/fetch-details-from-which-page-the-user-is-coming-to-the-bot/3402/7 "2023-01-13T10:53:28Z")

</div>

Hi @Wasim_Laskar , Would you be able to help us with any ideas?

---

<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:** [January 16, 2023, 5:44am UTC](https://community.yellow.ai/t/fetch-details-from-which-page-the-user-is-coming-to-the-bot/3402/8 "2023-01-16T05:44:30Z")

</div>

@Sanchia

You can check if this helps

> [@Lead Ads Use Case for meta platform](https://community.yellow.ai/t/lead-ads-use-case-for-meta-platform/3014/2):
>
> Hi @Andika_Januarianto , We have CTWA(Click to WhatsApp) Ads support on Cloud Platform which can capture events when a lead lands on our WhatsApp Bot from Facebook ads and it can also capture the related info associated with the lead and ad from which the user landed. More details on how to run CTWA Ads: [Redirecting...](https://www.facebook.com/business/help/447934475640650?id=371525583593535)

---

<div class="post-metadata">

**Author:** ![Sakshi\_Mishra](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.yellow.ai/sakshi_mishra/32/944_2.png) [@Sakshi\_Mishra](https://community.yellow.ai/u/Sakshi_Mishra)\
**Post date:** [January 16, 2023, 6:39am UTC](https://community.yellow.ai/t/fetch-details-from-which-page-the-user-is-coming-to-the-bot/3402/9 "2023-01-16T06:39:44Z")

</div>

@gautham The issue is its a facebook page where WhatsApp will be connected, and not a facebook ad.
