# Rasa buttons in forms

**URL:** <https://forum.rasa.com/t/rasa-buttons-in-forms/26254>\
**Category:** Rasa Open Source\
**Created:** [March 18, 2020, 8:36am UTC](https://forum.rasa.com/t/rasa-buttons-in-forms/26254 "2020-03-18T08:36:36Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![small\_bob](https://avatars.discourse-cdn.com/v4/letter/s/4da419/32.png) [@small\_bob](https://forum.rasa.com/u/small_bob)\
**Post date:** [March 18, 2020, 8:36am UTC](https://forum.rasa.com/t/rasa-buttons-in-forms/26254/1 "2020-03-18T08:36:36Z")

</div>

Hi everyone !

I configured a form-action who asks the user’s name and ID.

It works perfectly and the slots are filled-in properly.

Now I want to add a button to the form asking the user if he prefers the color red or yellow. So I configured one in the domain file and adapted my form-action but I get an error message telling me the color slot can not be filled.

Is their a specific code function to add in the form-action in order to identify the presence of a button ?

Looking forward to hear your replies !

Bob

@akelad

---

<div class="post-metadata">

**Author:** ![akelad](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/akelad/32/69_2.png) [@akelad](https://forum.rasa.com/u/akelad)\
**Post date:** [March 18, 2020, 9:16am UTC](https://forum.rasa.com/t/rasa-buttons-in-forms/26254/2 "2020-03-18T09:16:32Z")

</div>

Hi @small_bob could you show me what your response with the buttons looks like?

---

<div class="post-metadata">

**Author:** ![small\_bob](https://avatars.discourse-cdn.com/v4/letter/s/4da419/32.png) [@small\_bob](https://forum.rasa.com/u/small_bob)\
**Post date:** [March 18, 2020, 10:44am UTC](https://forum.rasa.com/t/rasa-buttons-in-forms/26254/3 "2020-03-18T10:44:07Z")

</div>

Dear @akelad,

Thank your fast return !

Here is a screenshot of how I configured my button in the domain.yml file 🙂 :

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

---

<div class="post-metadata">

**Author:** ![akelad](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/akelad/32/69_2.png) [@akelad](https://forum.rasa.com/u/akelad)\
**Post date:** [March 18, 2020, 10:58am UTC](https://forum.rasa.com/t/rasa-buttons-in-forms/26254/4 "2020-03-18T10:58:26Z")

</div>

Hm, and what did you specify your slot to be filled by? Is it an entity? If that’s the case, then the payload should be something like `/intent{"colour":"blue"}`

---

<div class="post-metadata">

**Author:** ![small\_bob](https://avatars.discourse-cdn.com/v4/letter/s/4da419/32.png) [@small\_bob](https://forum.rasa.com/u/small_bob)\
**Post date:** [March 18, 2020, 11:08am UTC](https://forum.rasa.com/t/rasa-buttons-in-forms/26254/5 "2020-03-18T11:08:53Z")

</div>

Dear @akelad,

I managed to fix it by removing the slash in the payload sections !

It’s actually better for me because that means that I don’t need to create an intent blue & yellow in my nlu.md file

Now the bot perfectly slots: name, ID, and the chosen color ! 🙂

---

<div class="post-metadata">

**Author:** ![akelad](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/akelad/32/69_2.png) [@akelad](https://forum.rasa.com/u/akelad)\
**Post date:** [March 18, 2020, 11:25am UTC](https://forum.rasa.com/t/rasa-buttons-in-forms/26254/6 "2020-03-18T11:25:08Z")

</div>

@small_bob glad you resolved it! you actually don’t need to create new intents though, you would just pass the intent and entity that you have defined in your nlu.md file. So the way I suggested above
