# Use RasaX and rasa-webchat at the same time

**URL:** <https://forum.rasa.com/t/use-rasax-and-rasa-webchat-at-the-same-time/52014>\
**Category:** \[Deprecated\] Rasa X Community Edition\
**Created:** [March 16, 2022, 4:13pm UTC](https://forum.rasa.com/t/use-rasax-and-rasa-webchat-at-the-same-time/52014 "2022-03-16T16:13:41Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![angel08012000](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/angel08012000/32/15178_2.png) [@angel08012000](https://forum.rasa.com/u/angel08012000)\
**Post date:** [March 16, 2022, 4:13pm UTC](https://forum.rasa.com/t/use-rasax-and-rasa-webchat-at-the-same-time/52014/1 "2022-03-16T16:13:41Z")

</div>

To run my rasa X, I change my rasa version like the photo

 ![截圖 2022-03-17 上午12.00.43](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/3X/1/0/1068bf7adad743aafb6748e6002aab3617dc77be.png)  

* * *
  
I want to show my chatBot on my own web no matter rasa chat widget or rasa-webchat both cannot work!!!

I’ve already set my credentials.yml like

```auto
socketio:
 user_message_evt: user_uttered
 bot_message_evt: bot_uttered
 session_persistence: true

```

  

* * *
  

**- In rasa chat widget**

- index.html

- My web get this error

///////////////////////////////////////////////////////////  
  
**- In rasa-webchat**

I guess this is a version problem someone said rasa-webchat need version 3.0.1 or up but rasaX need 2.8.1

**So, if I use rasaX, then I can’t use rasa-webchat, is that true?**

- index.html

- my web is blank, this is my error

* * *
  

@nik202 Can you help me??? please 😢I’m so confused 😗

---

<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:** [March 16, 2022, 5:08pm UTC](https://forum.rasa.com/t/use-rasax-and-rasa-webchat-at-the-same-time/52014/2 "2022-03-16T17:08:24Z")

</div>

@angel08012000 Yes, sure, please don’t be sad. It’s easy peasy 🙂

1. Can you share with me an original file of `credentials.yml`
2. Can you share with me the Sanic version using `pip list` whilst activating the conda env.

Now comes your major doubts:

> [@angel08012000](#):
>
> I want to show my chatBot on my own web no matter rasa chat widget or rasa-webchat both cannot work!!!

Yes, that we can do and we will do it soon. I will guide you.

> [@angel08012000](#):
>
> **- In rasa-webchat**
> 
> I guess this is a version problem someone said rasa-webchat need version 3.0.1 or up but rasaX need 2.8.1

No, I guess it should work on any version. I personally implemented it on every version starting from 1.x and the latest 3.x using Rasa webchat (botfront)

I’m not sure what you basically meant by Rasa X needing 2.8.1? As you have installed rasa x local mode version 0.39.3 still you can not use it for the deployment of bot or production purposes.

Good luck!

---

<div class="post-metadata">

**Author:** ![angel08012000](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/angel08012000/32/15178_2.png) [@angel08012000](https://forum.rasa.com/u/angel08012000)\
**Post date:** [March 16, 2022, 5:49pm UTC](https://forum.rasa.com/t/use-rasax-and-rasa-webchat-at-the-same-time/52014/3 "2022-03-16T17:49:46Z")

</div>

> [@nik202](#):
>
> can do and we

@nik202 Thanks for your reply 🥰

1. this is my `credentials.yml`

* * *

1. the result of `pip list`

* * *

- about Rasa webchat

  

- about Rasa X needing 2.8.1

* * *

thanks again for your help~ 😚

---

<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:** [March 17, 2022, 11:22am UTC](https://forum.rasa.com/t/use-rasax-and-rasa-webchat-at-the-same-time/52014/4 "2022-03-17T11:22:53Z")

</div>

@angel08012000

Check the indentation of this code please or upload the original file .yml

```auto
socketio:
  user_message_evt: user_uttered
  bot_message_evt: bot_uttered
  session_persistence: true

```

> [@angel08012000](#):
>
> Rasa X needing 2.8.1

At the time of suggesting this solution, it was Rasa Open Source 2.8.1 ( stable version) best fit for the installation, you can extend now up to 2.8.15. So, yes you clearly misunderstand this 😉

I hope this will help you?

---

<div class="post-metadata">

**Author:** ![angel08012000](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/angel08012000/32/15178_2.png) [@angel08012000](https://forum.rasa.com/u/angel08012000)\
**Post date:** [March 18, 2022, 6:05am UTC](https://forum.rasa.com/t/use-rasax-and-rasa-webchat-at-the-same-time/52014/5 "2022-03-18T06:05:50Z")

</div>

@nik202

I found the problem about indentation, and fixed it. Thanks 🥰

But there are other errors 😭

In rasa X, my bot responses me

 ![截圖 2022-03-18 下午1.52.00](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/3X/d/1/d16bb99ffc80bef6d1b67b3dd9ccb9ace9b79f60.png)

But in the web, no matter in _ **rasa chat widget** _ or in _ **rasa-webchat** _ can’t work

* * *

- **In rasa chat widget**

* * *

- **In rasa-webchat**

* * *

thank you for your help, and now I understand the question of version 🥰

---

<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:** [March 18, 2022, 10:32am UTC](https://forum.rasa.com/t/use-rasax-and-rasa-webchat-at-the-same-time/52014/6 "2022-03-18T10:32:10Z")

</div>

@angel08012000 share with me the command you are using for running rasa?

---

<div class="post-metadata">

**Author:** ![angel08012000](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/angel08012000/32/15178_2.png) [@angel08012000](https://forum.rasa.com/u/angel08012000)\
**Post date:** [March 18, 2022, 10:35am UTC](https://forum.rasa.com/t/use-rasax-and-rasa-webchat-at-the-same-time/52014/7 "2022-03-18T10:35:44Z")

</div>

@nik202

`conda activate rasa3` (To activate my environment)

`rasa run -m models --enable-api --cors "*"`

---

<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:** [March 18, 2022, 10:41am UTC](https://forum.rasa.com/t/use-rasax-and-rasa-webchat-at-the-same-time/52014/8 "2022-03-18T10:41:52Z")

</div>

@angel08012000 hmmm strange. Do you want me to assist you online?

---

<div class="post-metadata">

**Author:** ![angel08012000](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/angel08012000/32/15178_2.png) [@angel08012000](https://forum.rasa.com/u/angel08012000)\
**Post date:** [March 18, 2022, 11:01am UTC](https://forum.rasa.com/t/use-rasax-and-rasa-webchat-at-the-same-time/52014/9 "2022-03-18T11:01:29Z")

</div>

@nik202 Sure! But I’m outside now

Do you have time in **3/22(Tue) PM7:00(UTC+8)**…?

And~ Can we use **discord** , or …?

Btw my English is not good 😭

Thank you so much!!! 🥰 🥰 🥰

---

<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:** [March 18, 2022, 1:32pm UTC](https://forum.rasa.com/t/use-rasax-and-rasa-webchat-at-the-same-time/52014/10 "2022-03-18T13:32:24Z")

</div>

@angel08012000 share your email id, please. I am sorry I am not active so missed your message.

---

<div class="post-metadata">

**Author:** ![angel08012000](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/angel08012000/32/15178_2.png) [@angel08012000](https://forum.rasa.com/u/angel08012000)\
**Post date:** [March 19, 2022, 2:18pm UTC](https://forum.rasa.com/t/use-rasax-and-rasa-webchat-at-the-same-time/52014/11 "2022-03-19T14:18:42Z")

</div>

@nik202 It’s ok 😊

Thank you soooo much 🥰

---

<div class="post-metadata">

**Author:** ![geeknvoip](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/geeknvoip/32/19883_2.png) [@geeknvoip](https://forum.rasa.com/u/geeknvoip)\
**Post date:** [March 22, 2022, 10:53pm UTC](https://forum.rasa.com/t/use-rasax-and-rasa-webchat-at-the-same-time/52014/13 "2022-03-22T22:53:49Z")

</div>

@nik202 wanted to know if the issue was resolved as I’m about to undertake the same activity. If there was an error in setup can you please share?

---

<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:** [March 23, 2022, 12:10pm UTC](https://forum.rasa.com/t/use-rasax-and-rasa-webchat-at-the-same-time/52014/14 "2022-03-23T12:10:57Z")

</div>

@angel08012000 please use these commands:

cross-check the rasa version

```auto
pip install rasa==2.8.1
pip install rasa-sdk==2.8.1

```

and then use the command:

`rasa run -m models --enable-api --cors "*" --debug`

I hope this will help you.
