RocketChat / Apps.Rasa

Integration between Rocket.Chat and the RASA Chatbot platform
17 stars 11 forks source link

Handoff action.py? #25

Closed bshowket closed 3 years ago

bshowket commented 3 years ago

Not an issue, most likely I haven't figured something obvious.

Setup done according to instruction. Everything works, except handoff to human agent.

Do I need to write an custom action for handoff, as I saw in setting has default handoff Department in app setting, I thought it was handled by rasa.app.

Thanks in advance.

bshowket commented 3 years ago

this is the log i can see after ask to transfer

Instance: mFLeQ7gAjHo4JgzBd debug: 2021-05-06T09:56:29.591Z Caller: anonymous OR constructor [ "callback's post is being executed...", { "method": "post", "headers": { "host": "192.168.20.244:3000", "content-type": "application/json", "accept": "/", "accept-encoding": "gzip, deflate", "user-agent": "Python/3.8 aiohttp/3.6.3", "content-length": "83" }, "query": {}, "params": {}, "content": { "recipient_id": "iGtweT539jrfXQzsy", "text": "Alright, I'll try to transfer you." } } ] info: 2021-05-06T09:56:29.592Z Caller: post -> post [ "Endpoint received a request" ] debug: 2021-05-06T09:56:29.656Z Caller: anonymous OR constructor [ "callback's post was successfully executed." ]

murtaza98 commented 3 years ago

Hey @bshowket Are you referring to the custom action on Rasa? If so then yes, you'll have to define a custom action there which will trigger an handover by using the app's endpoint. Here's a sample action I'd developed for testing for your reference.

bshowket commented 3 years ago

Hey @bshowket Are you referring to the custom action on Rasa? If so then yes, you'll have to define a custom action there which will trigger an handover by using the app's endpoint. Here's a sample action I'd developed for testing for your reference.

yes thats right! thanks for your help.