I am looking to use buttons with payload as a link to open on a new tab, so bot responds with a message and add a button after response “Click here to open the website”, I want the user to be able to click on this and get his default browser opened with the link
I can display the button but can’t put a link on it sadly
I tried to use webbrowser python library on my action file like :
In your frontend you have to access to button.payload, this will give you the content of payload variable, so you can test if payload contains http or https or not
If button.payload contains http or https
you generate a real link <a href="yourpayloadlink">.....
else
you default button with a rasa payload
Hi, i have a question.
You said “If payload first element is “/” parse it back to your bot”. Do i need to only send the payload or the title too? And like normal text message or in some other structure ?
@gillesf@Kenz Could you please tell me that how to call the frontend? Frontend means in actions.py file?I have understood about domain.yml payload button but didn’t get the fact about the frontend.
hey, when i am attaching links ,links open in the form of google docs and then i have to redirect to main site manually ,could you please help me out in this