Assign URL to a button

Hi all,

How can I assign a website URL to a button. I need to open a webpage in a new tab while I click the button.

Thanks :slight_smile:

@Zeusturbo What you want to archive by that?

You mean achieve?

It just a button which leads to a webpage .

i added the url in the payload

But im not sure whether it right approach.

my domain.yml looks like this

utter_Google:

- buttons:

  - payload: "https://www.google.com/"

    title: Google

  text: For Google search

@Zeusturbo Did you followed this?

You’ll need to implement that in your frontend, you can’t do it with regular buttons on Rasa X.

The payload option expects an intent, with optional entities, not a URL.

@Zeusturbo What you can do, however, is use Markdown and markdown links in your regular messages. The rasawebchat or chatroom understand Markdown and will create clickable links. (just not buttons) e.g.

text: Hi, I am a chatbot. [Learn more about Rasa here.](https://rasa.com)
1 Like

@nik202 Yes, I did like this previously. but while I click the hyperlink it takes the URL which includes my local storage path. Please see the image below

image

And the redirected page below

@Zeusturbo no path just this [RASA] (https://rasa.com)

My bad. i used the URL without β€œhttps”. Now its working. thanks :slight_smile:

I’m not able to find the solution button here.

@Zeusturbo Ok. I told you above. Markdown doesn’t have a button option.