# Rasa User Authenticate

**URL:** <https://forum.rasa.com/t/rasa-user-authenticate/46733>\
**Category:** Rasa Open Source\
**Created:** [August 10, 2021, 3:41pm UTC](https://forum.rasa.com/t/rasa-user-authenticate/46733 "2021-08-10T15:41:20Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![syednoormujassum](https://avatars.discourse-cdn.com/v4/letter/s/a87d85/32.png) [@syednoormujassum](https://forum.rasa.com/u/syednoormujassum)\
**Post date:** [August 10, 2021, 3:41pm UTC](https://forum.rasa.com/t/rasa-user-authenticate/46733/1 "2021-08-10T15:41:20Z")

</div>

@nik202 I have created user details form where I am collecting users information (using slots) and storing in database. So how do I authenticate the user to direct the user to my bot and also how do I store the bot and user conversation in data base?

---

<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:** [August 10, 2021, 3:55pm UTC](https://forum.rasa.com/t/rasa-user-authenticate/46733/2 "2021-08-10T15:55:34Z")

</div>

Heya @syednoormujassum !

For storing the bot/user conversation you can use tracker store:

Update this code in **endpoints.yml**

**For Postgres:**

```
tracker_store:
   type: SQL
   dialect: "postgresql" # the dialect used to interact with the db
   url: "localhost" # (optional) host of the sql db, e.g. "localhost"
   db: "chatbot" # path to your db
   username: "postgres" # username used for authentication
   password: "123" # password used for authentication
   # query: # optional dictionary to be added as a query string to the connection URL
   # driver: my-driver

```

**For MySQL:**

```
tracker_store:
   type: SQL
   dialect: "mysql+pymysql" # the dialect used to interact with the db
   url: "localhost" # (optional) host of the sql db, e.g. "localhost"
   db: "rasa" # path to your db
   username: "root" # username used for authentication
   password: "root" # password used for authentication

```

**Note:** You also need to install psycopg2-binary and pymysql. You will see when it will thrown error.

@syednoormujassum You need to create a database schema i.e rasa (or whatever you feel like) and update same in `db: rasa`, train the bot and run rasa and rasa actions in separate terminals; whilst running you will get above mention errors or some other please install in your condo environment and again train and follow the process.

Good Luck!

---

<div class="post-metadata">

**Author:** ![syednoormujassum](https://avatars.discourse-cdn.com/v4/letter/s/a87d85/32.png) [@syednoormujassum](https://forum.rasa.com/u/syednoormujassum)\
**Post date:** [August 10, 2021, 4:27pm UTC](https://forum.rasa.com/t/rasa-user-authenticate/46733/3 "2021-08-10T16:27:51Z")

</div>

The above is the model right? Like post this what do I give to record the conversation in dB@nik202

---

<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:** [August 10, 2021, 4:30pm UTC](https://forum.rasa.com/t/rasa-user-authenticate/46733/4 "2021-08-10T16:30:21Z")

</div>

@syednoormujassum This need to update in endpoints.yml under tracker store and you will be able to store the conversation log of bot/user, for that you need to open mysql and postures backend, so they will communicate.

---

<div class="post-metadata">

**Author:** ![syednoormujassum](https://avatars.discourse-cdn.com/v4/letter/s/a87d85/32.png) [@syednoormujassum](https://forum.rasa.com/u/syednoormujassum)\
**Post date:** [August 10, 2021, 4:32pm UTC](https://forum.rasa.com/t/rasa-user-authenticate/46733/5 "2021-08-10T16:32:07Z")

</div>

oh ok @nik202 will look into it and get back to you. Can we do this using sqlalchemy?

---

<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:** [August 10, 2021, 4:38pm UTC](https://forum.rasa.com/t/rasa-user-authenticate/46733/6 "2021-08-10T16:38:33Z")

</div>

@syednoormujassum Yes and do ref this for more information [Tracker Stores](https://rasa.com/docs/rasa/tracker-stores/)

Good Luck!
