update readme

This commit is contained in:
Leifer Mendez
2022-01-18 20:58:16 +01:00
parent 82c5af9605
commit 7cdfcdac64
2 changed files with 105 additions and 13 deletions

View File

@@ -2,14 +2,10 @@
#### Actualizado Enero 2022
El siguiente proyecto se realizó con fines educativos para el canal de [Youtube (Leifer Mendez)](https://www.youtube.com/channel/UCgrIGp5QAnC0J8LfNJxDRDw?sub_confirmation=1) donde aprendemos como usando node.js podemos crear un chatbot increíble que además le agregamos inteligencia artificial gracias al servicio de dialogflow.
<p align="center">
<img src="https://i.giphy.com/media/OBDi3CXC83WkNeLEZP/giphy.webp">
</p>
![](https://i.giphy.com/media/OBDi3CXC83WkNeLEZP/giphy.webp)
> Si tienes una cuenta en __heroku__ puedes desplegar este proyecto con 1 click
[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/leifermendez/bot-whatsapp)
[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/leifermendez/bot-ventas)
> Comprarme un cafe!
@@ -20,14 +16,14 @@ El siguiente proyecto se realizó con fines educativos para el canal de [Youtube
#### Video Creación 🤖
- [Ver Video 1](https://www.youtube.com/watch?v=A_Xu0OR_HkE)
- [Ver Video 2 (Actulización)](https://www.youtube.com/watch?v=A_Xu0OR_HkE)
- [¿Como instalarlo? (Actulización)](https://youtu.be/5lEMCeWEJ8o)
#### ¿Que puedo hacer con este chatbot?
Puedes crear tus flujos de trabajo, ya sea usando mysql, dialogflow o simplemente condiciones en el codigo.
IMAGE
## Instruciones
### Instruciones
__Descargar o Clonar repositorio__
![](https://i.imgur.com/dSpUbFz.png)
@@ -54,7 +50,25 @@ Escanea el el código QR desde tu aplicación de Whatsapp
> Cuando sale este mensaje tu BOT está __listo__ para trabajar!
![](https://i.imgur.com/bhYHUyH.png)
## ¿Como usarlo el chatbot de whatsapp?
### Configurar
Recuerda debes de crear tu archivo __.env__ basado en el archivo __.env.example__
```
######DATABASE: none, mysql, dialogflow
DEFAULT_MESSAGE=true
SAVE_MEDIA=true
PORT=3000
DATABASE=none
LANGUAGE=es
SQL_HOST=
SQL_USER=
SQL_PASS=
SQL_DATABASE=
```
> Si quieres usar la conexion via _mysql_ puedes importar el archivo [sql-bot.sql](s)
### ¿Como usarlo el chatbot de whatsapp?
> Escribe un mensaje al whatsapp que vinculaste con tu BOT
![](https://i.imgur.com/OSUgljQ.png)
@@ -65,8 +79,7 @@ con el historial de conversación con el número de tu cliente
![](https://i.imgur.com/lrMLgR8.png)
![](https://i.imgur.com/UYcoUSV.png)
## Preguntar al BOT
> Puedes interactuar con el bot ejemplo escribele __Quieromeme__ y el bot debe responderte con la imagen
![](https://i.imgur.com/cNAS51I.png)
### Preguntar al BOT
> Puedes interactuar con el bot ejemplo escribele __hola__ y el bot debe responderte!
![](https://i.imgur.com/cNAS51I.png)