# Chatbot Widget for Rasa using Rest Channel

**URL:** <https://forum.rasa.com/t/chatbot-widget-for-rasa-using-rest-channel/21500>\
**Category:** Tutorials, Resources & Videos\
**Tags:** contribution\
**Created:** [November 20, 2019, 2:51pm UTC](https://forum.rasa.com/t/chatbot-widget-for-rasa-using-rest-channel/21500 "2019-11-20T14:51:11Z")\
**Posts on this page:** 20\
**Page:** 1

<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 20, 2019, 2:51pm UTC](https://forum.rasa.com/t/chatbot-widget-for-rasa-using-rest-channel/21500/1 "2019-11-20T14:51:11Z")

</div>

Hi Community,

I have developed a ChatBot widget easy to connect to RASA bot through [Rest](https://rasa.com/docs/rasa/user-guide/connectors/your-own-website/#rest-channels) Channel.

Check it out the code here:

> **[GitHub - JiteshGaikwad/Chatbot-Widget](https://github.com/JiteshGaikwad/Chatbot-Widget)**
>
> Contribute to JiteshGaikwad/Chatbot-Widget development by creating an account on GitHub.

## Screens:

 ![ui_1](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/e/e2a74e0bc27acfc214489d34598bc5e616211e9c.png) ![ui_2](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/e/eaea5a3da8e26a156968a13fd33ad158df2b45e6.png) ![cardsUi](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/0/04f802f580ede13b0025199f57dcd0b8136315ce.png) ![cardsUi_2](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/3/3a43decbfec513bd3341a0cf78ea41d965499733.png) ![cardsUi_3](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/4/42e7444bf2c213f46eeb5ddf448dd59d4efb0dc6.png) ![chats](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/5/512a616c541d8e22bfa7c1a8ab91dd82e967bec1.png)

Thanks 🙂

---

<div class="post-metadata">

**Author:** ![btotharye](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/btotharye/32/5321_2.png) [@btotharye](https://forum.rasa.com/u/btotharye)\
**Post date:** [November 20, 2019, 7:06pm UTC](https://forum.rasa.com/t/chatbot-widget-for-rasa-using-rest-channel/21500/2 "2019-11-20T19:06:30Z")

</div>

nice work @JiteshGaikwad

---

<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 20, 2019, 11:15pm UTC](https://forum.rasa.com/t/chatbot-widget-for-rasa-using-rest-channel/21500/3 "2019-11-20T23:15:11Z")

</div>

Hey @btotharye, thanks.

---

<div class="post-metadata">

**Author:** ![Saranya96](https://avatars.discourse-cdn.com/v4/letter/s/d26b3c/32.png) [@Saranya96](https://forum.rasa.com/u/Saranya96)\
**Post date:** [April 15, 2020, 8:04am UTC](https://forum.rasa.com/t/chatbot-widget-for-rasa-using-rest-channel/21500/4 "2020-04-15T08:04:56Z")

</div>

How to get conversation history made in Chatbot Widget @JiteshGaikwad

---

<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:** [April 15, 2020, 8:45am UTC](https://forum.rasa.com/t/chatbot-widget-for-rasa-using-rest-channel/21500/5 "2020-04-15T08:45:04Z")

</div>

@Saranya96 you can use tracker store for that and could please open another topic for this discussion since this topic is related to the chatbot widget. 🙂

---

<div class="post-metadata">

**Author:** ![Saranya96](https://avatars.discourse-cdn.com/v4/letter/s/d26b3c/32.png) [@Saranya96](https://forum.rasa.com/u/Saranya96)\
**Post date:** [May 15, 2020, 8:08am UTC](https://forum.rasa.com/t/chatbot-widget-for-rasa-using-rest-channel/21500/6 "2020-05-15T08:08:23Z")

</div>

Hi @JiteshGaikwad

I have implemented [Reminders](https://rasa.com/docs/rasa/core/reminders-and-external-events/#scheduling-reminders).how to handle EXTERNAL\_reminder in chatbot widget.

---

<div class="post-metadata">

**Author:** ![ZordoC](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/zordoc/32/8785_2.png) [@ZordoC](https://forum.rasa.com/u/ZordoC)\
**Post date:** [May 15, 2020, 8:45am UTC](https://forum.rasa.com/t/chatbot-widget-for-rasa-using-rest-channel/21500/7 "2020-05-15T08:45:08Z")

</div>

> [@Saranya96](#):
>
> Reminders

Have been using it! Good stuff!

---

<div class="post-metadata">

**Author:** ![iveen](https://avatars.discourse-cdn.com/v4/letter/i/f14d63/32.png) [@iveen](https://forum.rasa.com/u/iveen)\
**Post date:** [September 18, 2020, 1:16pm UTC](https://forum.rasa.com/t/chatbot-widget-for-rasa-using-rest-channel/21500/8 "2020-09-18T13:16:52Z")

</div>

Great Stuff Jitesh, I’ve started using it, but now I am facing a CORS issue when accessing the Chatbot from the outside, locally it works fine, any ideas?

---

<div class="post-metadata">

**Author:** ![Yash\_kals](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/yash_kals/32/17304_2.png) [@Yash\_kals](https://forum.rasa.com/u/Yash_kals)\
**Post date:** [November 3, 2020, 6:06am UTC](https://forum.rasa.com/t/chatbot-widget-for-rasa-using-rest-channel/21500/9 "2020-11-03T06:06:39Z")

</div>

Are you got solution how to handle reminder in this chatbot widget? @Saranya96 @JiteshGaikwad

---

<div class="post-metadata">

**Author:** ![raskin](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/raskin/32/7046_2.png) [@raskin](https://forum.rasa.com/u/raskin)\
**Post date:** [December 7, 2020, 10:54am UTC](https://forum.rasa.com/t/chatbot-widget-for-rasa-using-rest-channel/21500/10 "2020-12-07T10:54:06Z")

</div>

Excellent job!

---

<div class="post-metadata">

**Author:** ![amardeep](https://avatars.discourse-cdn.com/v4/letter/a/ba8739/32.png) [@amardeep](https://forum.rasa.com/u/amardeep)\
**Post date:** [February 11, 2021, 2:59pm UTC](https://forum.rasa.com/t/chatbot-widget-for-rasa-using-rest-channel/21500/11 "2021-02-11T14:59:12Z")

</div>

Hi @JiteshGaikwad great work. I have faced one issue that I feel is worth sharing. The sender\_id is hardcoded in script.js.

const sender\_id = “jitesh97”; Issue faced : This creates confusion is rasa db while filtering unique sessions and also using Tracker Object inside custom actions. This can be made dynamic using uuid generator so that new session starts with unique id . Imagine 100 users talking to bot using same sender\_id in parallel , It may cause unintended behavior of assistant.

---

<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:** [February 16, 2021, 4:12am UTC](https://forum.rasa.com/t/chatbot-widget-for-rasa-using-rest-channel/21500/12 "2021-02-16T04:12:11Z")

</div>

@amardeep I have added `uuid` generator for sender\_id, please check the updated code, thanks.

---

<div class="post-metadata">

**Author:** ![amardeep](https://avatars.discourse-cdn.com/v4/letter/a/ba8739/32.png) [@amardeep](https://forum.rasa.com/u/amardeep)\
**Post date:** [February 16, 2021, 4:25am UTC](https://forum.rasa.com/t/chatbot-widget-for-rasa-using-rest-channel/21500/13 "2021-02-16T04:25:23Z")

</div>

Awesome !!! You are a Rockstar Jitesh . I will check

---

<div class="post-metadata">

**Author:** ![Prototyp42](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/prototyp42/32/13805_2.png) [@Prototyp42](https://forum.rasa.com/u/Prototyp42)\
**Post date:** [February 24, 2021, 8:56am UTC](https://forum.rasa.com/t/chatbot-widget-for-rasa-using-rest-channel/21500/14 "2021-02-24T08:56:33Z")

</div>

It was asked a few times by others, but no answers… how do you get links in this widget? Tried as buttons with payload url, tried with link name and tried with custom actions… none of this worked. I really like the widget, but I also really need links.

---

<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:** [February 24, 2021, 2:27pm UTC](https://forum.rasa.com/t/chatbot-widget-for-rasa-using-rest-channel/21500/15 "2021-02-24T14:27:14Z")

</div>

@Prototyp42 Welcome to the community. Sorry If you didn’t find an answer but I had replied way back in Dec’20 in a post, you can have a look here

> [@Rasa Button Payload and User Response](http://forum.rasa.com/t/rasa-button-payload-and-user-response/21758/11):
>
> @Pritesh you can send response as shown below for rendering it as a hyperlink: text: \<a href='url'\>Some Text\</a\>

---

<div class="post-metadata">

**Author:** ![kisal](https://avatars.discourse-cdn.com/v4/letter/k/d6d6ee/32.png) [@kisal](https://forum.rasa.com/u/kisal)\
**Post date:** [May 18, 2021, 8:00pm UTC](https://forum.rasa.com/t/chatbot-widget-for-rasa-using-rest-channel/21500/16 "2021-05-18T20:00:22Z")

</div>

@JiteshGaikwad this git link not working .could you plz consider this matter??

---

<div class="post-metadata">

**Author:** ![krkc](https://avatars.discourse-cdn.com/v4/letter/k/90ced4/32.png) [@krkc](https://forum.rasa.com/u/krkc)\
**Post date:** [July 6, 2021, 12:53pm UTC](https://forum.rasa.com/t/chatbot-widget-for-rasa-using-rest-channel/21500/17 "2021-07-06T12:53:34Z")

</div>

Hi @JiteshGaikwad , Thank you very much for your bot UI code. And i’m new to RASA dev. Could you please help me on the below queries. 1\> How do we complete initial payload using the UI created by you. 2\> Also, the instructions you have provided on adding buttons didn’t worked for me. Am i missing something on it. It will be helpful if you can provide steps to do the same. Thanks again Best Regards, Ravi

---

<div class="post-metadata">

**Author:** ![a1exsta](https://avatars.discourse-cdn.com/v4/letter/a/74df32/32.png) [@a1exsta](https://forum.rasa.com/u/a1exsta)\
**Post date:** [December 3, 2021, 8:11am UTC](https://forum.rasa.com/t/chatbot-widget-for-rasa-using-rest-channel/21500/19 "2021-12-03T08:11:40Z")

</div>

Hi @JiteshGaikwad , could you help me, please. I want to show the link (url) in the text response from my chat-bot and my user must have click on it. How do I make it in your widget? May be you have other ways to do it. 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:** [December 3, 2021, 4:32pm UTC](https://forum.rasa.com/t/chatbot-widget-for-rasa-using-rest-channel/21500/20 "2021-12-03T16:32:36Z")

</div>

@a1exsta Welcome to our community!

Are you using Jitesh widget or another widgets and what is your rasa. --version?

---

<div class="post-metadata">

**Author:** ![a1exsta](https://avatars.discourse-cdn.com/v4/letter/a/74df32/32.png) [@a1exsta](https://forum.rasa.com/u/a1exsta)\
**Post date:** [December 7, 2021, 2:15pm UTC](https://forum.rasa.com/t/chatbot-widget-for-rasa-using-rest-channel/21500/21 "2021-12-07T14:15:43Z")

</div>

@nik202 Hi 👋Yes, I use Jitesh widget and Rasa v2.8.2

[Next page](https://forum.rasa.com/t/chatbot-widget-for-rasa-using-rest-channel/21500.md?page=2)
