# Connect rasa to a web site with the recommeded plataform

**URL:** https://forum.rasa.com/t/connect-rasa-to-a-web-site-with-the-recommeded-plataform/4019
**Category:** Rasa Open Source
**Created:** [January 3, 2019, 8:40pm UTC](https://forum.rasa.com/t/connect-rasa-to-a-web-site-with-the-recommeded-plataform/4019 "2019-01-03T20:40:15Z")
**Posts on this page:** 20
**Page:** 3

<div class="post-metadata">

### Author: ![rishier827](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/rishier827/32/6957_2.png) [@rishier827](https://forum.rasa.com/u/rishier827)
#### Post date: [February 19, 2020, 10:33am UTC](https://forum.rasa.com/t/connect-rasa-to-a-web-site-with-the-recommeded-plataform/4019/43 "2020-02-19T10:33:03Z")

</div>

Here you will be able to find how to customize,

> [@Rasa Web chat customizing buttons,colors alligning etc](http://forum.rasa.com/t/rasa-web-chat-customizing-buttons-colors-alligning-etc/24716/3):
>
> Hey @rishier827, If you want customize the buttons, colors or other properties of the Rasa webchat, you try the below steps which worked for me: I have written style.css to customize the css properties of the webchat, I have inspected the UI and have got the class names of the elements that I wanted to change. Step1: Make sure you include the webchat.js before you import the style.css as shown below: Step2: updating the css properties in the style.css file: [style] Stpe3: N…

---

<div class="post-metadata">

### Author: ![Dany](https://avatars.discourse-cdn.com/v4/letter/d/5e9695/32.png) [@Dany](https://forum.rasa.com/u/Dany)
#### Post date: [February 19, 2020, 11:02am UTC](https://forum.rasa.com/t/connect-rasa-to-a-web-site-with-the-recommeded-plataform/4019/44 "2020-02-19T11:02:33Z")

</div>

Thank you @rishier827 😊

---

<div class="post-metadata">

### Author: ![Naveen733](https://avatars.discourse-cdn.com/v4/letter/n/5fc32e/32.png) [@Naveen733](https://forum.rasa.com/u/Naveen733)
#### Post date: [February 28, 2020, 12:34pm UTC](https://forum.rasa.com/t/connect-rasa-to-a-web-site-with-the-recommeded-plataform/4019/45 "2020-02-28T12:34:27Z")

</div>

Hi @Juste my bot is in the localhost and i wanted that to be host in a server(into my website) without using rasa x, please let me know

---

<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: [March 2, 2020, 10:02am UTC](https://forum.rasa.com/t/connect-rasa-to-a-web-site-with-the-recommeded-plataform/4019/46 "2020-03-02T10:02:58Z")

</div>

Hey @Naveen733. You can achieve the same thing without using Rasa X too. If you check out the section in the video regarding using socketio channel, the process is almost exactly the same:

- You start Rasa on a local server (using `rasa run`)
- You expose your Rasa assistant to the outside world using ngrok (or you can deploy it on your custom server, then you shouldn’t need ngrok)
- You update the credentials.yml file with the URL to your server just like shown in the video
- You add the WebChat Widget to your website, update the URL in the webchat configuration
- Your assistant should be connected to your custom website

---

<div class="post-metadata">

### Author: ![Ajay-007](https://avatars.discourse-cdn.com/v4/letter/a/aca169/32.png) [@Ajay-007](https://forum.rasa.com/u/Ajay-007)
#### Post date: [March 11, 2020, 2:51am UTC](https://forum.rasa.com/t/connect-rasa-to-a-web-site-with-the-recommeded-plataform/4019/47 "2020-03-11T02:51:07Z")

</div>

How to integrate chatbot to local host website Can you help me

---

<div class="post-metadata">

### Author: ![Naveen733](https://avatars.discourse-cdn.com/v4/letter/n/5fc32e/32.png) [@Naveen733](https://forum.rasa.com/u/Naveen733)
#### Post date: [March 18, 2020, 1:11pm UTC](https://forum.rasa.com/t/connect-rasa-to-a-web-site-with-the-recommeded-plataform/4019/48 "2020-03-18T13:11:08Z")

</div>

Hi @Juste

If user asks unwanted questions to the bot or the questions which are not listed so how can i handle them or how can predict the question and give them a default answer.

---

<div class="post-metadata">

### Author: ![lluchini](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/lluchini/32/7609_2.png) [@lluchini](https://forum.rasa.com/u/lluchini)
#### Post date: [March 18, 2020, 2:30pm UTC](https://forum.rasa.com/t/connect-rasa-to-a-web-site-with-the-recommeded-plataform/4019/50 "2020-03-18T14:30:27Z")

</div>

You can use the Fallback actions.

> **[Fallback and Human Handoff](https://rasa.com/docs/rasa/fallback-handoff/#fallbacks)**

---

<div class="post-metadata">

### Author: ![lluchini](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/lluchini/32/7609_2.png) [@lluchini](https://forum.rasa.com/u/lluchini)
#### Post date: [March 18, 2020, 2:40pm UTC](https://forum.rasa.com/t/connect-rasa-to-a-web-site-with-the-recommeded-plataform/4019/51 "2020-03-18T14:40:27Z")

</div>

Hello,

I’m trying to plug RASA on my page, but the widget doesn’t appear and the console keeps showing CORS error.

Below I put how I tried to put all to work.

HTML page:

```
<html>
<body>
	<div id="webchat"></div>
	<script src="https://storage.googleapis.com/mrbot-cdn/webchat-latest.js"></script>
	<script>
		WebChat.default.init({
			selector: "#webchat",
			initPayload: "/get_started",
			customData: { "language": "pt" }, // arbitrary custom data. Stay minimal as this will be added to the socket
			socketUrl: "http://localhost:5005",
			socketPath: "/socket.io/",
			title: "Global Antares",
			subtitle: "Antares",
			connectOn: "open",
			hideWhenNotConnected : "false"
		})
	</script>
</body>
</html>

```

RASA start command line:

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

Every time that widget tries to connect apears:

> 2020-03-18 11:11:18 DEBUG rasa.core.channels.socketio - User 196e28d40f8f4bf28903b66c7c693420 connected to socketIO endpoint. 2020-03-18 11:11:36 DEBUG rasa.core.channels.socketio - User ab11abcf07364e34866edede15987bed disconnected from socketIO endpoint.

And the console on browser shows:

> teste.html:1 Access to XMLHttpRequest at ‘[http://localhost:5005/socket.io/?EIO=3&transport=polling&t=N3j-F6b](http://localhost:5005/socket.io/?EIO=3&transport=polling&t=N3j-F6b)’ from origin ‘null’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.

Log from RASA initialization:

> 2020-03-18 09:41:41 DEBUG rasa.core.utils - Available web server routes: /conversations/\<conversation\_id\>/messages POST add\_message /conversations/\<conversation\_id\>/tracker/events POST append\_events /webhooks/rasa GET custom\_webhook\_RasaChatInput.health /webhooks/rasa/webhook POST custom\_webhook\_RasaChatInput.receive /webhooks/rest GET custom\_webhook\_RestInput.health /webhooks/rest/webhook POST custom\_webhook\_RestInput.receive /model/test/intents POST evaluate\_intents /model/test/stories POST evaluate\_stories /conversations/\<conversation\_id\>/execute POST execute\_action /domain GET get\_domain /socket.io GET handle\_request / GET hello /model PUT load\_model /model/parse POST parse /conversations/\<conversation\_id\>/predict POST predict /conversations/\<conversation\_id\>/tracker/events PUT replace\_events /conversations/\<conversation\_id\>/story GET retrieve\_story /conversations/\<conversation\_id\>/tracker GET retrieve\_tracker /webhooks/socketio GET socketio\_webhook.health /status GET status /model/predict POST tracker\_predict /model/train POST train /conversations/\<conversation\_id\>/trigger\_intent POST trigger\_intent /model DELETE unload\_model /version GET version
> 
> 2020-03-18 09:41:41 INFO root - Starting Rasa server on [http://localhost:5005](http://localhost:5005) 2020-03-18 09:41:41 DEBUG rasa.core.utils - Using the default number of Sanic workers (1). 2020-03-18 09:41:41 INFO root - Enabling coroutine debugging. Loop id 1621305365384. 2020-03-18 09:41:41 DEBUG rasa.model - Extracted model to ‘C:\Users\lluchini\AppData\Local\Temp\tmpar5dl75o’. 2020-03-18 09:41:42 INFO rasa.nlu.components - Added ‘SpacyNLP’ to component cache. Key ‘SpacyNLP-pt’. 2020-03-18 09:41:42 DEBUG rasa.utils.tensorflow.models - Loading the model … 2020-03-18 09:41:42.770020: W tensorflow/stream\_executor/platform/default/dso\_loader.cc:55] Could not load dynamic library ‘nvcuda.dll’; dlerror: nvcuda.dll not found 2020-03-18 09:41:42.775639: E tensorflow/stream\_executor/cuda/cuda\_driver.cc:351] failed call to cuInit: UNKNOWN ERROR (303) 2020-03-18 09:41:42.781225: I tensorflow/stream\_executor/cuda/cuda\_diagnostics.cc:169] retrieving CUDA diagnostic information for host: apdata676 2020-03-18 09:41:42.787204: I tensorflow/stream\_executor/cuda/cuda\_diagnostics.cc:176] hostname: apdata676 2020-03-18 09:41:42.790519: I tensorflow/core/platform/cpu\_feature\_guard.cc:142] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 2020-03-18 09:41:43 DEBUG rasa.utils.tensorflow.models - Finished loading the model. 2020-03-18 09:41:43 DEBUG rasa.utils.tensorflow.models - Building tensorflow prediction graph… 2020-03-18 09:41:43.669010: W tensorflow/core/kernels/data/generator\_dataset\_op.cc:103] Error occurred when finalizing GeneratorDataset iterator: Cancelled: Operation was cancelled 2020-03-18 09:41:47 DEBUG rasa.utils.tensorflow.models - Finished building tensorflow prediction graph. 2020-03-18 09:41:47 DEBUG rasa.nlu.classifiers.diet\_classifier - Failed to load model. Maybe the path ‘C:\Users\lluchini\AppData\Local\Temp\tmpar5dl75o\nlu’ doesn’t exist? 2020-03-18 09:41:47 DEBUG rasa.core.tracker\_store - Connected to InMemoryTrackerStore. 2020-03-18 09:41:47 DEBUG rasa.core.lock\_store - Connected to lock store ‘InMemoryLockStore’. 2020-03-18 09:41:47 DEBUG rasa.model - Extracted model to ‘C:\Users\lluchini\AppData\Local\Temp\tmp0up4ifrc’. 2020-03-18 09:41:47 DEBUG pykwalify.compat - Using yaml library: c:\venv\lib\site-packages\ruamel\yaml\__init_\_.py 2020-03-18 09:41:47 DEBUG rasa.utils.tensorflow.models - Loading the model … 2020-03-18 09:41:48 DEBUG rasa.utils.tensorflow.models - Finished loading the model. 2020-03-18 09:41:48 DEBUG rasa.utils.tensorflow.models - Building tensorflow prediction graph… 2020-03-18 09:41:48.085525: W tensorflow/core/kernels/data/generator\_dataset\_op.cc:103] Error occurred when finalizing GeneratorDataset iterator: Cancelled: Operation was cancelled 2020-03-18 09:41:48 DEBUG rasa.utils.tensorflow.models - Finished building tensorflow prediction graph. 2020-03-18 09:41:48 DEBUG rasa.core.nlg.generator - Instantiated NLG to ‘TemplatedNaturalLanguageGenerator’.

---

<div class="post-metadata">

### Author: ![Naveen733](https://avatars.discourse-cdn.com/v4/letter/n/5fc32e/32.png) [@Naveen733](https://forum.rasa.com/u/Naveen733)
#### Post date: [April 3, 2020, 6:11am UTC](https://forum.rasa.com/t/connect-rasa-to-a-web-site-with-the-recommeded-plataform/4019/52 "2020-04-03T06:11:56Z")

</div>

> [@Juste](#):
>
> Hello @Robert14. Do you mind sharing the configuration of the webhook for the widget?

Hi @Juste, I have uploaded the chatbot into my website(its on server) but its throwing below error

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/f/f0e187e846e7291fac38757e53466e43c92a2fb0.png)

please help me on this

---

<div class="post-metadata">

### Author: ![lluchini](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/lluchini/32/7609_2.png) [@lluchini](https://forum.rasa.com/u/lluchini)
#### Post date: [April 15, 2020, 7:17pm UTC](https://forum.rasa.com/t/connect-rasa-to-a-web-site-with-the-recommeded-plataform/4019/53 "2020-04-15T19:17:38Z")

</div>

If I’m not mistaken, the problem is that you website is usign HTTPS and the api is using HTTP the browsers don’t like mixed contents, try using you site as HTTP only or starting the rasa with HTTPS using a certificate.

---

<div class="post-metadata">

### Author: ![shanrock](https://avatars.discourse-cdn.com/v4/letter/s/3e96dc/32.png) [@shanrock](https://forum.rasa.com/u/shanrock)
#### Post date: [July 27, 2020, 10:24am UTC](https://forum.rasa.com/t/connect-rasa-to-a-web-site-with-the-recommeded-plataform/4019/54 "2020-07-27T10:24:55Z")

</div>

Hey @lluchini. I got the exact same issue with CORS and my widget was not displaying in my website. Have you found out a solution? By the way im using my rasa server on a remote server.

---

<div class="post-metadata">

### Author: ![lluchini](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/lluchini/32/7609_2.png) [@lluchini](https://forum.rasa.com/u/lluchini)
#### Post date: [July 27, 2020, 11:23am UTC](https://forum.rasa.com/t/connect-rasa-to-a-web-site-with-the-recommeded-plataform/4019/55 "2020-07-27T11:23:26Z")

</div>

Hi @shanrock,

my solution was to swap the single quote from the command line to double-quotes. ( from `'*'` to `"*"`).

---

<div class="post-metadata">

### Author: ![shanrock](https://avatars.discourse-cdn.com/v4/letter/s/3e96dc/32.png) [@shanrock](https://forum.rasa.com/u/shanrock)
#### Post date: [July 27, 2020, 11:56am UTC](https://forum.rasa.com/t/connect-rasa-to-a-web-site-with-the-recommeded-plataform/4019/57 "2020-07-27T11:56:10Z")

</div>

You the best. It worked.

---

<div class="post-metadata">

### Author: ![shanrock](https://avatars.discourse-cdn.com/v4/letter/s/3e96dc/32.png) [@shanrock](https://forum.rasa.com/u/shanrock)
#### Post date: [July 28, 2020, 4:43am UTC](https://forum.rasa.com/t/connect-rasa-to-a-web-site-with-the-recommeded-plataform/4019/58 "2020-07-28T04:43:57Z")

</div>

@lluchini. It worked one time. and when i restarted my system it stopped working? What are the steps to be followed? For ease : I’m running my rasa run actions in a remote server along with rasa server. I’m facing the same issue as yours but your solution yesterday worked but now its not working. What am i doing wrong???

---

<div class="post-metadata">

### Author: ![shanrock](https://avatars.discourse-cdn.com/v4/letter/s/3e96dc/32.png) [@shanrock](https://forum.rasa.com/u/shanrock)
#### Post date: [July 28, 2020, 4:53am UTC](https://forum.rasa.com/t/connect-rasa-to-a-web-site-with-the-recommeded-plataform/4019/59 "2020-07-28T04:53:55Z")

</div>

An update. If im removing the debug its showing. I wanna know how to properly run it.

---

<div class="post-metadata">

### Author: ![lluchini](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/lluchini/32/7609_2.png) [@lluchini](https://forum.rasa.com/u/lluchini)
#### Post date: [July 29, 2020, 12:18am UTC](https://forum.rasa.com/t/connect-rasa-to-a-web-site-with-the-recommeded-plataform/4019/60 "2020-07-29T00:18:08Z")

</div>

@shanrock,

I don’t want to sound a jerk, please don’t get me wrong, but triple check your command line…

This week I sent a command to a co-worker, and as he ctrl+c from Teams to his terminal, it swaped the double quotes for something different…

Let me know if works, if you want, try to reach me on LinkedIn, I’m at GMT -3…

---

<div class="post-metadata">

### Author: ![jkreyes](https://avatars.discourse-cdn.com/v4/letter/j/82dd89/32.png) [@jkreyes](https://forum.rasa.com/u/jkreyes)
#### Post date: [August 5, 2020, 3:44pm UTC](https://forum.rasa.com/t/connect-rasa-to-a-web-site-with-the-recommeded-plataform/4019/61 "2020-08-05T15:44:57Z")

</div>

Hello I have a question regarding the url if it is not a local host? If you have a server running Rasa and it needs to have a password to access that server would the widget be able to input that password?

---

<div class="post-metadata">

### Author: ![shanrock](https://avatars.discourse-cdn.com/v4/letter/s/3e96dc/32.png) [@shanrock](https://forum.rasa.com/u/shanrock)
#### Post date: [September 21, 2020, 6:22am UTC](https://forum.rasa.com/t/connect-rasa-to-a-web-site-with-the-recommeded-plataform/4019/62 "2020-09-21T06:22:23Z")

</div>

Send me your LinkedIN profile lets connect.

---

<div class="post-metadata">

### Author: ![poojasingh-code](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/poojasingh-code/32/13667_2.png) [@poojasingh-code](https://forum.rasa.com/u/poojasingh-code)
#### Post date: [March 25, 2021, 6:46am UTC](https://forum.rasa.com/t/connect-rasa-to-a-web-site-with-the-recommeded-plataform/4019/63 "2021-03-25T06:46:08Z")

</div>

hey I read the article, it is giving me 404 error even after following it step by step, could you please help?

---

<div class="post-metadata">

### Author: ![rajeshpolaki](https://avatars.discourse-cdn.com/v4/letter/r/c67d28/32.png) [@rajeshpolaki](https://forum.rasa.com/u/rajeshpolaki)
#### Post date: [April 11, 2021, 7:16pm UTC](https://forum.rasa.com/t/connect-rasa-to-a-web-site-with-the-recommeded-plataform/4019/64 "2021-04-11T19:16:31Z")

</div>

i have also same issue plz help

[Previous page](https://forum.rasa.com/t/connect-rasa-to-a-web-site-with-the-recommeded-plataform/4019.md?page=2)

[Next page](https://forum.rasa.com/t/connect-rasa-to-a-web-site-with-the-recommeded-plataform/4019.md?page=4)
