botpress / v12

Botpress OSS – v12
https://v12.botpress.com
GNU Affero General Public License v3.0
71 stars 83 forks source link

How to integrate hitl in flows #504

Closed pankajdata4u closed 5 years ago

pankajdata4u commented 5 years ago

Make sure these checkboxes are checked before raising an issue, thank you!

Please also fill in these fields:


Botpress version: 10.50.0>>

Channels: channel-web

We want to integrate hitl into flows. My purpose is to when my bot is unable to answer any query then it should automatically switch to hitl so available agents can talk to customer. Now question is how to do that.

Is anybody has done so or its still under development. I don't want to give pause button or option for customer to talk to agent.

Please help.

epaminond commented 5 years ago

@pankajdata4u , did you check an example of pausing conversation programmatically?

Basically you need to run smth like bp.hitl.pause(event.platform, event.user.id) within your action.