# Rasa ui

**URL:** <https://forum.rasa.com/t/rasa-ui/21031>\
**Category:** Rasa Open Source\
**Created:** [November 8, 2019, 6:43am UTC](https://forum.rasa.com/t/rasa-ui/21031 "2019-11-08T06:43:12Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Beherasaptami](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/beherasaptami/32/8005_2.png) [@Beherasaptami](https://forum.rasa.com/u/Beherasaptami)\
**Post date:** [November 8, 2019, 6:43am UTC](https://forum.rasa.com/t/rasa-ui/21031/1 "2019-11-08T06:43:12Z")

</div>

Hello there , i want to create a frontend to deploy my sample chatbot …any idea like how can change the front end an all of rasa sample bot

---

<div class="post-metadata">

**Author:** ![JiteshGaikwad](https://avatars.discourse-cdn.com/v4/letter/j/77aa72/32.png) [@JiteshGaikwad](https://forum.rasa.com/u/JiteshGaikwad)\
**Post date:** [November 8, 2019, 9:08am UTC](https://forum.rasa.com/t/rasa-ui/21031/2 "2019-11-08T09:08:32Z")

</div>

Hey @Beherasaptami, check this it will help you

[https://github.com/JiteshGaikwad/Rasa\_CustomUI-v\_2.0.git](https://github.com/JiteshGaikwad/Rasa_CustomUI-v_2.0.git)

😊

---

<div class="post-metadata">

**Author:** ![Beherasaptami](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/beherasaptami/32/8005_2.png) [@Beherasaptami](https://forum.rasa.com/u/Beherasaptami)\
**Post date:** [November 8, 2019, 9:44am UTC](https://forum.rasa.com/t/rasa-ui/21031/3 "2019-11-08T09:44:34Z")

</div>

hey @JiteshGaikwad how can i integrate this code with rasa …any suggestions will be heplful ,thanyou

---

<div class="post-metadata">

**Author:** ![Juste](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/juste/32/15_2.png) [@Juste](https://forum.rasa.com/u/Juste)\
**Post date:** [November 8, 2019, 2:44pm UTC](https://forum.rasa.com/t/rasa-ui/21031/4 "2019-11-08T14:44:43Z")

</div>

Hey @Beherasaptami. You can sue Webchat or Chatroom widgets for your Rasa assistant. We have some documentation on the here: [Your Own Website](https://rasa.com/docs/rasa/user-guide/connectors/your-own-website/)

---

<div class="post-metadata">

**Author:** ![Beherasaptami](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/beherasaptami/32/8005_2.png) [@Beherasaptami](https://forum.rasa.com/u/Beherasaptami)\
**Post date:** [November 11, 2019, 6:06am UTC](https://forum.rasa.com/t/rasa-ui/21031/5 "2019-11-11T06:06:27Z")

</div>

thanks @Juste and @JiteshGaikwad

---

<div class="post-metadata">

**Author:** ![Beherasaptami](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/beherasaptami/32/8005_2.png) [@Beherasaptami](https://forum.rasa.com/u/Beherasaptami)\
**Post date:** [November 12, 2019, 10:07am UTC](https://forum.rasa.com/t/rasa-ui/21031/6 "2019-11-12T10:07:11Z")

</div>

Hi All, I want to add restart button in custom ui like near type a message want to create one button for restart when user hit on that button it will restart the conversation .any suggestions like how can i do that .

---

<div class="post-metadata">

**Author:** ![Beherasaptami](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/beherasaptami/32/8005_2.png) [@Beherasaptami](https://forum.rasa.com/u/Beherasaptami)\
**Post date:** [November 13, 2019, 10:37am UTC](https://forum.rasa.com/t/rasa-ui/21031/7 "2019-11-13T10:37:50Z")

</div>

hey @JiteshGaikwad , I tried this rasa ui but some times m not getting proper response from bot i am getting default msg [msg = ‘I couldn’t get that. Let’s try something else!’]accroding to the js maybe its getting val as 0 …it should not get val as 0 but the the same conversation is working fine in rasa x and rasa interactive …am i missing something …and one more thing to ask like if i want to arrange buttons and all then how can i do that like want restart button in UI

---

<div class="post-metadata">

**Author:** ![JiteshGaikwad](https://avatars.discourse-cdn.com/v4/letter/j/77aa72/32.png) [@JiteshGaikwad](https://forum.rasa.com/u/JiteshGaikwad)\
**Post date:** [November 13, 2019, 11:37am UTC](https://forum.rasa.com/t/rasa-ui/21031/8 "2019-11-13T11:37:38Z")

</div>

hey @Beherasaptami, can you share the screenshot of the browser console logs of the error?

---

<div class="post-metadata">

**Author:** ![Beherasaptami](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/beherasaptami/32/8005_2.png) [@Beherasaptami](https://forum.rasa.com/u/Beherasaptami)\
**Post date:** [November 13, 2019, 11:54am UTC](https://forum.rasa.com/t/rasa-ui/21031/9 "2019-11-13T11:54:03Z")

</div>

I guess its not filling slots properly

 ![raasa_error](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/d/d27d0062bd1530148aed42f5116a40da0bf665e7.png) that’s why its throwing error its retriving length as 0 but it should retrive as 1 but these response are working fine with rasa x ![rasa](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/7/7426ae1491e5d3144e01fcf83f8a4c6b1b45e027.png)

---

<div class="post-metadata">

**Author:** ![JiteshGaikwad](https://avatars.discourse-cdn.com/v4/letter/j/77aa72/32.png) [@JiteshGaikwad](https://forum.rasa.com/u/JiteshGaikwad)\
**Post date:** [November 13, 2019, 12:00pm UTC](https://forum.rasa.com/t/rasa-ui/21031/10 "2019-11-13T12:00:13Z")

</div>

hey @Beherasaptami, I see you are testing with different utterances in custom ui & rasa-x,

- what I understand from the screenshot\_1 is that rasa has failed to get the response for the utterance `THE GOOD LIAR` and since there was no response from array, you got that error response in the ui
- while in rasa-x, I see you have passed something else and its working fine with that.

---

<div class="post-metadata">

**Author:** ![Beherasaptami](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/beherasaptami/32/8005_2.png) [@Beherasaptami](https://forum.rasa.com/u/Beherasaptami)\
**Post date:** [November 13, 2019, 12:02pm UTC](https://forum.rasa.com/t/rasa-ui/21031/11 "2019-11-13T12:02:28Z")

</div>

no not like that its working properly

 ![rasa_01](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/9/98ce6b425d19ccf3564d877e47b827605ff1a565.png) you can see

---

<div class="post-metadata">

**Author:** ![JiteshGaikwad](https://avatars.discourse-cdn.com/v4/letter/j/77aa72/32.png) [@JiteshGaikwad](https://forum.rasa.com/u/JiteshGaikwad)\
**Post date:** [November 13, 2019, 12:04pm UTC](https://forum.rasa.com/t/rasa-ui/21031/12 "2019-11-13T12:04:33Z")

</div>

ya I agree with that but you are sending the message as `/movies_chosen_byuser{"movie":"THE GOOD LIAR"}` and its working with that but can you test in rasa-x by just passing the text as `THE GOOD LIAR ` and check whether its working fine?

---

<div class="post-metadata">

**Author:** ![Beherasaptami](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/beherasaptami/32/8005_2.png) [@Beherasaptami](https://forum.rasa.com/u/Beherasaptami)\
**Post date:** [November 13, 2019, 12:07pm UTC](https://forum.rasa.com/t/rasa-ui/21031/13 "2019-11-13T12:07:19Z")

</div>

actually i have movie options as buttons and i need to choose any one from the options when i hit on anyone in rasa it will directly show like this i guess this is the syntax which i pass in my action file buttonsz = [{“title”:cinema, “payload”: ‘/area\_byuser {“area”: "’ +cinema+ ‘"}’}]

---

<div class="post-metadata">

**Author:** ![JiteshGaikwad](https://avatars.discourse-cdn.com/v4/letter/j/77aa72/32.png) [@JiteshGaikwad](https://forum.rasa.com/u/JiteshGaikwad)\
**Post date:** [November 13, 2019, 12:09pm UTC](https://forum.rasa.com/t/rasa-ui/21031/14 "2019-11-13T12:09:14Z")

</div>

so you can do the same in that custom ui using buttons.

---

<div class="post-metadata">

**Author:** ![Beherasaptami](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/beherasaptami/32/8005_2.png) [@Beherasaptami](https://forum.rasa.com/u/Beherasaptami)\
**Post date:** [November 13, 2019, 12:11pm UTC](https://forum.rasa.com/t/rasa-ui/21031/15 "2019-11-13T12:11:09Z")

</div>

where i can do that …can you give me some hints

---

<div class="post-metadata">

**Author:** ![JiteshGaikwad](https://avatars.discourse-cdn.com/v4/letter/j/77aa72/32.png) [@JiteshGaikwad](https://forum.rasa.com/u/JiteshGaikwad)\
**Post date:** [November 13, 2019, 12:18pm UTC](https://forum.rasa.com/t/rasa-ui/21031/16 "2019-11-13T12:18:35Z")

</div>

the custom ui support buttons, you can need to just tweak it bit more in the js code to send the message as you are sending in rasa-x:

> <https://github.com/JiteshGaikwad/Rasa_CustomUI-v_2.0/blob/525d9b4219a420f1947ec656123d981f0da6ffb3/static/js/script.js#L86>

---

<div class="post-metadata">

**Author:** ![JiteshGaikwad](https://avatars.discourse-cdn.com/v4/letter/j/77aa72/32.png) [@JiteshGaikwad](https://forum.rasa.com/u/JiteshGaikwad)\
**Post date:** [November 13, 2019, 12:20pm UTC](https://forum.rasa.com/t/rasa-ui/21031/17 "2019-11-13T12:20:28Z")

</div>

adding this thread for your reference,

> [@Rasa: How to add buttons](http://forum.rasa.com/t/rasa-how-to-add-buttons/5058/13):
>
> - text: "Hi! What's up?" buttons: - title: "Text 1" payload: '/\<intent 1\>' - title: "Text 2" payload: '/\<intent 2\>' You can add multiple buttons as shown above, As per the intent mentioned in the payload and story, bot will pick the response

---

<div class="post-metadata">

**Author:** ![Beherasaptami](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/beherasaptami/32/8005_2.png) [@Beherasaptami](https://forum.rasa.com/u/Beherasaptami)\
**Post date:** [November 13, 2019, 12:22pm UTC](https://forum.rasa.com/t/rasa-ui/21031/18 "2019-11-13T12:22:21Z")

</div>

in Rasa ui i havent add anything but its comming in buttons format and for few its filling slots but for few it is not filling

---

<div class="post-metadata">

**Author:** ![Beherasaptami](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/beherasaptami/32/8005_2.png) [@Beherasaptami](https://forum.rasa.com/u/Beherasaptami)\
**Post date:** [November 13, 2019, 12:30pm UTC](https://forum.rasa.com/t/rasa-ui/21031/19 "2019-11-13T12:30:27Z")

</div>

will try this and let you know if i got stuck anywhere

---

<div class="post-metadata">

**Author:** ![Beherasaptami](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/beherasaptami/32/8005_2.png) [@Beherasaptami](https://forum.rasa.com/u/Beherasaptami)\
**Post date:** [November 14, 2019, 6:30am UTC](https://forum.rasa.com/t/rasa-ui/21031/20 "2019-11-14T06:30:48Z")

</div>

hey @JiteshGaikwad i was figuring out like whats the error but i couldn’t and even for slots its working fine with rasa interactive but when i try to run this using ui then m getting previous slot values …how we can trigger the slots value in js file …for your refrence m attaching scrrenshot

 ![error](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/0/0241ef608d13cb770ed897123aa764d8b4657b78.png) ![scr1](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/3/38358c7ab4178967adb1279a88718d6ca7815259.png)its retriving value as 0 thats why its showing default msg

[Next page](https://forum.rasa.com/t/rasa-ui/21031.md?page=2)
