# Custom User Message On Button?

**URL:** <https://forum.rasa.com/t/custom-user-message-on-button/23614>\
**Category:** Rasa Open Source\
**Created:** [January 16, 2020, 5:43pm UTC](https://forum.rasa.com/t/custom-user-message-on-button/23614 "2020-01-16T17:43:58Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![bobobobbins](https://avatars.discourse-cdn.com/v4/letter/b/8dc957/32.png) [@bobobobbins](https://forum.rasa.com/u/bobobobbins)\
**Post date:** [January 16, 2020, 5:43pm UTC](https://forum.rasa.com/t/custom-user-message-on-button/23614/1 "2020-01-16T17:43:58Z")

</div>

Hello,

I was wondering if it’s possible to have custom messages on the payload. As an example think of a question with a yes no answer:

The buttons would be something like

- title: Yes

- title: No

When the user clicks on No it sends a message showing /deny back to the bot. Is there anyway to overwrite how it looks on the UI to the user so they don’t see that intent being sent back as /intent?

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/2/2f6698a7de4f4ccefa931a157ba96a1a65c165cd.png)In this example I’d want it to show something back like ‘Yes’ instead of /affirm

---

<div class="post-metadata">

**Author:** ![matias18233](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/matias18233/32/4382_2.png) [@matias18233](https://forum.rasa.com/u/matias18233)\
**Post date:** [January 16, 2020, 6:21pm UTC](https://forum.rasa.com/t/custom-user-message-on-button/23614/2 "2020-01-16T18:21:48Z")

</div>

Hello @bobobobbins!

In this section specified information on how to use the buttons in Rasa:

[https://rasa.com/docs/rasa/core/domains/#images-and-buttons](https://rasa.com/docs/rasa/core/domains/#images-and-buttons)

You should have something similar to the following:

```
templates:
  utter_greet:
  - text: "Hey! How are you?"
    buttons:
    - title: "great"
      payload: "great"
    - title: "super sad"
      payload: "super sad"
```

---

<div class="post-metadata">

**Author:** ![bobobobbins](https://avatars.discourse-cdn.com/v4/letter/b/8dc957/32.png) [@bobobobbins](https://forum.rasa.com/u/bobobobbins)\
**Post date:** [January 16, 2020, 6:34pm UTC](https://forum.rasa.com/t/custom-user-message-on-button/23614/3 "2020-01-16T18:34:34Z")

</div>

Hey, thanks for the reply. The buttons are currently working but on the ui when you click on a button it sends the /intent message back to the bot I was wondering if there is a way to mask that because I think clients can think it is ugly.

As in example:

> ```
> utter_general:
> - text: I'm sorry to hear you're experiencing this issue. Resolutions can be found
> at sadadasdadl. Did this resolve your issue?
> buttons:
> - title: Yes
> payload: /affirm
> - title: No
> payload: /deny
> 
> ```

But though this works, it shows the /affirm being sent back in the ui

---

<div class="post-metadata">

**Author:** ![matias18233](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/matias18233/32/4382_2.png) [@matias18233](https://forum.rasa.com/u/matias18233)\
**Post date:** [January 16, 2020, 6:41pm UTC](https://forum.rasa.com/t/custom-user-message-on-button/23614/4 "2020-01-16T18:41:11Z")

</div>

Try replacing “/affirm” with “Yes, it served me” or “No, it didn’t help me”.

---

<div class="post-metadata">

**Author:** ![matias18233](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/matias18233/32/4382_2.png) [@matias18233](https://forum.rasa.com/u/matias18233)\
**Post date:** [January 16, 2020, 6:47pm UTC](https://forum.rasa.com/t/custom-user-message-on-button/23614/5 "2020-01-16T18:47:08Z")

</div>

Remember that you must prepare your bot to be able to interpret phrases with affirmative and negative intentions.
