# Using slots when running a rasa server

**URL:** <https://forum.rasa.com/t/using-slots-when-running-a-rasa-server/24629>\
**Category:** Rasa Open Source\
**Created:** [February 11, 2020, 11:33am UTC](https://forum.rasa.com/t/using-slots-when-running-a-rasa-server/24629 "2020-02-11T11:33:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sashaank](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/sashaank/32/5074_2.png) [@sashaank](https://forum.rasa.com/u/sashaank)\
**Post date:** [February 11, 2020, 11:33am UTC](https://forum.rasa.com/t/using-slots-when-running-a-rasa-server/24629/1 "2020-02-11T11:33:14Z")

</div>

I am working on a django appication. The application has a form with which a user can chat with a bot. This is just a test application for learning and the bot cannot do much.

For the chatbot, I trained a rasa model with a few intents and entities. Once the model was trained, I ran the model as a server with the following command

```auto
rasa run -m models --enable-api --log-file out.log

```

When the user types a message in the form and submits the form, a request is sent to the rasa server and the intent and entities of the message is received as a response.

Now my question is, is there any way for me to use [slots](https://rasa.com/docs/rasa/core/slots/) to store some of the entities, so as not ask the user for info already provided. And if this is not possible, how do I use rasa core features like stories and slots with django? When I tried researching on this, I could only find on how to use the bot with slack.

---

<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:** [February 11, 2020, 1:07pm UTC](https://forum.rasa.com/t/using-slots-when-running-a-rasa-server/24629/2 "2020-02-11T13:07:33Z")

</div>

Most likely you would want to look at our custom channel documentation, [Custom Connectors](https://rasa.com/docs/rasa/user-guide/connectors/custom-connectors/) so you can create your own connector, a webhook if you will that allows you to send communication into Rasa, have it process it, and then send it back out.

Depending on your use case there are already some chat widgets that work with basic HTML and stuff as well but I guess it depends on what you are wanting to do and if you want to just embed that in your django html and use it. One for example is [GitHub - botfront/rasa-webchat: A chat widget for Rasa and Botfront](https://github.com/botfront/rasa-webchat)

As for the slots and such you are right, you can look more into them here [Slots](https://rasa.com/docs/rasa/core/slots/#what-are-slots)

---

<div class="post-metadata">

**Author:** ![sashaank](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/sashaank/32/5074_2.png) [@sashaank](https://forum.rasa.com/u/sashaank)\
**Post date:** [February 13, 2020, 6:05pm UTC](https://forum.rasa.com/t/using-slots-when-running-a-rasa-server/24629/4 "2020-02-13T18:05:03Z")

</div>

I used rasa webchat as you suggested. It works fine now. Just another doubt. Can the design of the chat UI be manipulated with css? That would give me more control over the design of the layout

---

<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:** [February 14, 2020, 11:59am UTC](https://forum.rasa.com/t/using-slots-when-running-a-rasa-server/24629/5 "2020-02-14T11:59:52Z")

</div>

Yea pretty sure it can, I think they documented it on their Readme for that site. For example on the one I’m building out for my snake business you can see the CSS here, [nerdysite/global.css at master · the-nerdy-python/nerdysite · GitHub](https://github.com/the-nerdy-python/nerdysite/blob/master/src/styles/global.css) this basically makes mine fit my orange theme. The part for the website I’m using here is a Gatsby SSR piece to make it work where I reference the chat widget at [nerdysite/gatsby-ssr.js at master · the-nerdy-python/nerdysite · GitHub](https://github.com/the-nerdy-python/nerdysite/blob/master/gatsby-ssr.js)

Hopefully that steers you in the right direction on the CSS stuff. And the readme has some of it as well, [GitHub - botfront/rasa-webchat: A chat widget for Rasa and Botfront](https://github.com/botfront/rasa-webchat#styles)
