Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

slack outgoing webhook with api.ai #7

Open
JadyLiu opened this issue Feb 1, 2017 · 2 comments
Open

slack outgoing webhook with api.ai #7

JadyLiu opened this issue Feb 1, 2017 · 2 comments

Comments

@JadyLiu
Copy link

JadyLiu commented Feb 1, 2017

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

@xVir
Copy link
Contributor

xVir commented Feb 1, 2017

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!

@JadyLiu
Copy link
Author

JadyLiu commented Feb 1, 2017

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

Cheers,
Jady

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants