https://discord.gg/botpress logo
Linking Action Items with Clickable URL
# 🤝help
s
I'm trying to make the action items that pop up under each card be a clickable link, where can I configure that? I've been able to create a card for use cases, but essentially don't want the user to have to "bait" the bot and rather just have them be able to click the "Sign-up Now" button and be directly sent to our sign-up page.
l
Botpress output supports Markdown, which makes it super easy to have a clickable link. So if you want to share a clickable link through a Text card, or even a Card card, just put it in the Markdown hyperlink format: [label](https://example-website.com)
c
I think you can make the action items open a link directly instead of triggering the bot.
In your card or button configuration, set the action type to
open_url
and add your sign-up link.
l
Heh, Markdown swallowed the example.
Copy code
[label](https://example-website.com)
c
This is the example
Copy code
{
  "title": "test",
  "subtitle": "test!",
  "actions": [
    {
      "title": "test",
      "type": "open_url",
      "url": "https://your-signup-page.com"
    }
  ]
}
l
The Action Buttons is an even more elegant method. I'd recommend that
s
Thank you both! Do you know where you configure the action buttons? i dont have anything besides the autonomous node--I have not configured anything for the bot at all
c
You can configure action button inside the Card content itself - when you add a card in Botpress Studio, scroll to the Actions section and set the button type to open_url with your signup link.
s
If you've never added a card, and want to just edit the cards that seem to be default in the bot (i've only ever uploaded knowledge bases), how would i configure those cards?
c
I think you can't edit the default knowledge base cards. To add a clickable button like Sign-up Now, you'll need to create your own card in Botpress Studio.
13 Views