# Button usage

**URL:** <https://forum.rasa.com/t/button-usage/44706>\
**Category:** Rasa Open Source\
**Created:** [June 16, 2021, 2:28pm UTC](https://forum.rasa.com/t/button-usage/44706 "2021-06-16T14:28:50Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zeusturbo](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/zeusturbo/32/15020_2.png) [@Zeusturbo](https://forum.rasa.com/u/Zeusturbo)\
**Post date:** [June 16, 2021, 2:28pm UTC](https://forum.rasa.com/t/button-usage/44706/1 "2021-06-16T14:28:50Z")

</div>

Is there any other way that I can use “only buttons” without “text” in custom action?

I need to use a button functionality. while I try to use “utter\_message” i should add the “text” attribute also. but I don’t want to display text above my button.

![utter_message](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/1/1cfd6d982767f2353081844b0483b6f3408259fd.png)

Thanks 🙂

---

<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:** [June 16, 2021, 2:44pm UTC](https://forum.rasa.com/t/button-usage/44706/2 "2021-06-16T14:44:37Z")

</div>

@Zeusturbo Then what the significance of the button without text?

I think you can exclude the text and pass button only or you can use template i.e template=“utter\_message”

```auto
 button2=[
                  {
                      "title": "great",
                      "payload": "great"
                  },
                  {
                      "title": "super sad",
                      "payload": "super sad"
                  }
              ]

   dispatcher.utter_message(text="Hey! How you doing?", buttons=button2)

Or

ispatcher.utter_message(template="utter_message")

```

---

<div class="post-metadata">

**Author:** ![Zeusturbo](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/zeusturbo/32/15020_2.png) [@Zeusturbo](https://forum.rasa.com/u/Zeusturbo)\
**Post date:** [June 16, 2021, 4:00pm UTC](https://forum.rasa.com/t/button-usage/44706/3 "2021-06-16T16:00:19Z")

</div>

@nik202 hi thanks for the response. i did the same way as you mentioned. see the image below. but I need the second button has to display below. not aside. please check the image below.

 ![but](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/e/e9a78bcf159d3007d1c496e88eb2ba32478aa52a.png)

---

<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:** [June 16, 2021, 8:26pm UTC](https://forum.rasa.com/t/button-usage/44706/4 "2021-06-16T20:26:02Z")

</div>

@Zeusturbo Can you mention which front end you are using for the deployment purpose? Well, this issue is related to the front end not with Rasa. If you can share which then I can help. Try different colors for the button to differentiate.

---

<div class="post-metadata">

**Author:** ![Zeusturbo](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/zeusturbo/32/15020_2.png) [@Zeusturbo](https://forum.rasa.com/u/Zeusturbo)\
**Post date:** [June 17, 2021, 10:17am UTC](https://forum.rasa.com/t/button-usage/44706/5 "2021-06-17T10:17:26Z")

</div>

@nik202 Hi, Currently im using Telegram to test my stuff. i tried with RasaX already but it was not worked as per my expectations. so i stick with Telegram in the meanwhile.

---

<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:** [June 17, 2021, 10:31am UTC](https://forum.rasa.com/t/button-usage/44706/6 "2021-06-17T10:31:12Z")

</div>

@Zeusturbo Honestly saying these issue is related to Front End only, I mean Telegram ( thou I never used Telegram, is you can customize the code?) If not I will encourage to use Rasa Webchat for deployment purpose.

For Integration please follow this link [Rasa Webchat Integration - #119 by Horizon733](http://forum.rasa.com/t/rasa-webchat-integration/19930/119)

I hope it will help you 🙂

---

<div class="post-metadata">

**Author:** ![Horizon733](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/horizon733/32/20855_2.png) [@Horizon733](https://forum.rasa.com/u/Horizon733)\
**Post date:** [June 17, 2021, 1:43pm UTC](https://forum.rasa.com/t/button-usage/44706/7 "2021-06-17T13:43:38Z")

</div>

Oh you want it to be vertical instead of horizontal right? Add this into your buttons json button\_type: vertical

```auto
json = {
"text": "your text",
    "button_type": "vertical",
    "buttons":[
{
     "title": "yes",
      "payload": "/affirm"},
{"title": "No",
      "payload": "/deny"
}
]
}

```

---

<div class="post-metadata">

**Author:** ![Zeusturbo](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/zeusturbo/32/15020_2.png) [@Zeusturbo](https://forum.rasa.com/u/Zeusturbo)\
**Post date:** [June 17, 2021, 1:51pm UTC](https://forum.rasa.com/t/button-usage/44706/8 "2021-06-17T13:51:44Z")

</div>

@Horizon733 Yep, I need to display the button in a vertical way.
