rauldpm / ChatbotTFG

This project houses a chatbot built with the Open Source Rasa software.
GNU General Public License v3.0
0 stars 0 forks source link

Local deploy using Docker #19

Closed rauldpm closed 1 year ago

rauldpm commented 1 year ago

This issue aims to add the local deployment of the bot using Docker, so as to provide an automated means of deployment with everything needed.

rauldpm commented 1 year ago

Update report

╰─➤  curl -XPOST http://localhost:5005/webhooks/rest/webhook -H "Content-type: application/json" -d '{"sender": "test", "message": "Horario"}'
[{"recipient_id":"test","text":"Nuestro horario es:"},{"recipient_id":"test","text":"Lunes: 08:00 - 22:00.\nMartes: Cerrado.\nMiercoles: 08:00 - 22:00.\nJueves: 08:00 - 22:00.\nViernes: 08:00 - 22:00.\nSabado: 08:00 - 22:00.\nDomingo: 08:00 - 22:00."}]%   
╰─➤  curl -XPOST http://localhost:5005/webhooks/rest/webhook -H "Content-type: application/json" -d '{"sender": "test", "message": "identificarme"}'
[{"recipient_id":"test","text":"Introduce solo tu nombre, escribe \"stop\" para parar el formulario."}]%               

╰─➤  curl -XPOST http://localhost:5005/webhooks/rest/webhook -H "Content-type: application/json" -d '{"sender": "test", "message": "Manuel"}'       
[{"recipient_id":"test","text":"Hola Manuel!"}]% 
╰─➤  curl -XPOST http://localhost:5005/webhooks/rest/webhook -H "Content-type: application/json" -d '{"sender": "test", "message": "mi menu"}'
[{"recipient_id":"test","text":"No se ha establecido ningun plato aun. Introduce \"Establecer menu\" para a\u00f1adir un plato."}]%                                                                                

╰─➤  curl -XPOST http://localhost:5005/webhooks/rest/webhook -H "Content-type: application/json" -d '{"sender": "test", "message": "añadir plato entrante"}'
[{"recipient_id":"test","text":"\u00bfQuieres establecer el plato de la categoria: entrante?"}]%                                 

╰─➤  curl -XPOST http://localhost:5005/webhooks/rest/webhook -H "Content-type: application/json" -d '{"sender": "test", "message": "si"}'                   
[{"recipient_id":"test","text":"Entrantes:\n0E: Alcachofa de temporada con foie caramelizado y velo panceta ib\u00e9rica - (4,5\u20ac \/ unidad)\n1E: Tempura de langostinos y esparragos trigueros con salsa Japo - (16\u20ac)\n2E: Garbanzos pedrosillanos salteados con carabinero - (16\u20ac)\n3E: Carpaccio de gamba, sriracha, tomate y ajoblanco - (10\u20ac \/ unidad)\n4E: Carpaccio de vacuno con foie y ali\u00f1o de trufa - (12\u20ac)"},{"recipient_id":"test","text":"Selecciona el plato introduciendo el identificador."}]%                                                                                                            

╰─➤  curl -XPOST http://localhost:5005/webhooks/rest/webhook -H "Content-type: application/json" -d '{"sender": "test", "message": "0E"}'
[{"recipient_id":"test","text":"Guardado plato entrantes:\n- Alcachofa de temporada con foie caramelizado y velo panceta ib\u00e9rica (4,5\u20ac \/ unidad)"}]%  

╰─➤  curl -XPOST http://localhost:5005/webhooks/rest/webhook -H "Content-type: application/json" -d '{"sender": "test", "message": "mi menu"}'              
[{"recipient_id":"test","text":"Entrante:\n- 0E: Alcachofa de temporada con foie caramelizado y velo panceta ib\u00e9rica - (4,5\u20ac \/ unidad)"}]% 
rauldpm commented 1 year ago

Update report