# Rasa Webchat: How to open url in a new tab in browser directly without user's click

**URL:** <https://forum.rasa.com/t/rasa-webchat-how-to-open-url-in-a-new-tab-in-browser-directly-without-users-click/50565>\
**Category:** Rasa Open Source\
**Created:** [January 13, 2022, 4:11pm UTC](https://forum.rasa.com/t/rasa-webchat-how-to-open-url-in-a-new-tab-in-browser-directly-without-users-click/50565 "2022-01-13T16:11:55Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![alinalizhang](https://avatars.discourse-cdn.com/v4/letter/a/ac8455/32.png) [@alinalizhang](https://forum.rasa.com/u/alinalizhang)\
**Post date:** [January 13, 2022, 4:11pm UTC](https://forum.rasa.com/t/rasa-webchat-how-to-open-url-in-a-new-tab-in-browser-directly-without-users-click/50565/1 "2022-01-13T16:11:55Z")

</div>

I have deployed a rasa bot on my website with Webchat. ![Here are coffee maker from $ 100.0 to $](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/3X/6/f/6f1ff671900d3bf53683500d6b74dbda455a1b33.png)

As indicated in the above image, when user click the link, it will open the url in a new tab in the browser.

The question is how to open this url directly in a new tab as a bot’s response that user doesn’t need to click it? For example,

_User: show me a product xxx._

_Bot: open a specific website directly in a new tab from browser._

p.s. the bot is deployed on GCP. And I have tried webbrower.open(a url) But it talks to the browser on GCP server. The expected result is to open a new tab in users’ browser.

---

<div class="post-metadata">

**Author:** ![nonola](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nonola/32/19831_2.png) [@nonola](https://forum.rasa.com/u/nonola)\
**Post date:** [January 13, 2022, 4:14pm UTC](https://forum.rasa.com/t/rasa-webchat-how-to-open-url-in-a-new-tab-in-browser-directly-without-users-click/50565/2 "2022-01-13T16:14:53Z")

</div>

Maybe with an action, called from the intento.

---

<div class="post-metadata">

**Author:** ![alinalizhang](https://avatars.discourse-cdn.com/v4/letter/a/ac8455/32.png) [@alinalizhang](https://forum.rasa.com/u/alinalizhang)\
**Post date:** [January 13, 2022, 4:17pm UTC](https://forum.rasa.com/t/rasa-webchat-how-to-open-url-in-a-new-tab-in-browser-directly-without-users-click/50565/3 "2022-01-13T16:17:49Z")

</div>

> [@nonola](#):
>
> intento

I am using botfront/rasa-webchat at [GitHub - botfront/rasa-webchat: A feature-rich chat widget for Rasa and Botfront](https://github.com/botfront/rasa-webchat).

---

<div class="post-metadata">

**Author:** ![nonola](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nonola/32/19831_2.png) [@nonola](https://forum.rasa.com/u/nonola)\
**Post date:** [January 13, 2022, 5:02pm UTC](https://forum.rasa.com/t/rasa-webchat-how-to-open-url-in-a-new-tab-in-browser-directly-without-users-click/50565/4 "2022-01-13T17:02:31Z")

</div>

Sorry, intent.

---

<div class="post-metadata">

**Author:** ![nik202](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nik202/32/16098_2.png) [@nik202](https://forum.rasa.com/u/nik202)\
**Post date:** [January 13, 2022, 5:10pm UTC](https://forum.rasa.com/t/rasa-webchat-how-to-open-url-in-a-new-tab-in-browser-directly-without-users-click/50565/5 "2022-01-13T17:10:18Z")

</div>

@alinalizhang this is a really interesting approach, whilst the suggested hyperlink response should be open in a new window instead user clicking the link. But unfortunetly, whilst using bot front you can not archive this approach, as far as I have seen the other online bots, do you have any know chatbot or working chatbot online? I’m not denying that It can’t be possible. I just want to highlight some points to you that the botfront widget is developed using react components if you have some hands-on experience then you can clone the repo and customize the code as per your use case. This issue is much-related front-end not related to rasa and rasa is not even managing the botfront repo. I hope this will give you a better idea? If you have any further doubt please feel to message me and please add @ nik202. Good Luck!

---

<div class="post-metadata">

**Author:** ![alinalizhang](https://avatars.discourse-cdn.com/v4/letter/a/ac8455/32.png) [@alinalizhang](https://forum.rasa.com/u/alinalizhang)\
**Post date:** [January 13, 2022, 9:20pm UTC](https://forum.rasa.com/t/rasa-webchat-how-to-open-url-in-a-new-tab-in-browser-directly-without-users-click/50565/6 "2022-01-13T21:20:09Z")

</div>

@nik202 Good point. The solution could be to clone the botfront/webchat repo, modify the code, then set up a socket server. wondering do you have experience with React? because I don’t have any experience with the front-end and need help with it.

---

<div class="post-metadata">

**Author:** ![nik202](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nik202/32/16098_2.png) [@nik202](https://forum.rasa.com/u/nik202)\
**Post date:** [January 13, 2022, 9:32pm UTC](https://forum.rasa.com/t/rasa-webchat-how-to-open-url-in-a-new-tab-in-browser-directly-without-users-click/50565/7 "2022-01-13T21:32:02Z")

</div>

@alinalizhang yes, unfortunately, I have experience and expertise 😛 in react but this is a rasa forum.@alinalizhang Again, I’d highly recommend that go by the current Chabot trend.
