dialogflow-botkit-client icon indicating copy to clipboard operation
dialogflow-botkit-client copied to clipboard

slack outgoing webhook with api.ai

Open JadyLiu opened this issue 8 years ago • 2 comments

Hi @xVir ,

We are working on a slack channel integrating with api gateway and lambda, which backed by api.ai. The workflow: slack channel(outgoing webhook)--> post api-gateway --> invoke lambda --> call api.ai

  1. In the lambda function, what is the best sdk to use when we try to integrate with api.ai, there are api-ai-botkit and api-ai-slack-bot and etc. Or we should build our own ?

  2. Shall we use slack-command instead of outgoing-webhook, as it is easier to get response ?

Thank you in advance, Jady

JadyLiu avatar Feb 01 '17 10:02 JadyLiu

Hi @JadyLiu

Sorry, our current samples is not intended to be used with outgoing webhook... So, it seems, you have to implement your own service for this. But it seems, the service could be rather simple. But you could try to adapt api-ai-botkit because of it uses botkit lib and rather independent from particular protocol type. Please take a look at this botkit docs https://github.com/howdyai/botkit/blob/master/readme-slack.md#working-with-slack-integrations

Shall we use slack-command instead of outgoing-webhook, as it is easier to get response ?

It depends on your case. It seems outgoing-webhook is more flexible.

Thanks!

xVir avatar Feb 01 '17 10:02 xVir

@xVir Thank you for your prompt reply, I will have a look.

Cheers, Jady

JadyLiu avatar Feb 01 '17 10:02 JadyLiu