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

Setting up hubot-apiai #13

Open
ordokr opened this issue Mar 3, 2018 · 2 comments
Open

Setting up hubot-apiai #13

ordokr opened this issue Mar 3, 2018 · 2 comments

Comments

@ordokr
Copy link

ordokr commented Mar 3, 2018

Hello, I just want to make sure I'm setting this up right, because it doesn't seem to be giving any responses, though I get what I inputted into my api.ai bot.

I put the API_AI_CLIENT_ACCESS_TOKEN and the token into bin/hubot file, with a line export API_AI_CLIENT_ACCESS_TOKEN=abc123

I have a script.coffee that looks like this

robot.on "greeting", (msg) ->
res.reply "Hi! To find out what I can do, say @bot display help. You can simply highlight that and quote it back to me as well."

In my api.ai there is an intent greeting, with hi recognized, and hi as a response. Do I just put all the dialogue that I want it to say in the api.ai and not have any conversation type stuff in the script?

When I boot up hubot with my adapter for discourse, I get this error

[Sat Mar 03 2018 19:32:29 GMT+0000 (UTC)] INFO Constructor
[Sat Mar 03 2018 19:32:29 GMT+0000 (UTC)] INFO Run
[Sat Mar 03 2018 19:32:29 GMT+0000 (UTC)] ERROR Not enough parameters provided. I need a username, key, and server

@ojacques
Copy link
Owner

Do I just put all the dialogue that I want it to say in the api.ai and not have any conversation type stuff in the script?

Yes exactly. The dialog itself is handled by api.ai.

When I boot up hubot with my adapter for discourse, I get this error: ...

This is not an error which comes from hubot-apiai. It may be that you are missing the token to connect to discourse.

@UtpalDas6
Copy link

UtpalDas6 commented Aug 20, 2018

Please can a video tutorial be made on this? I am really bad at following instructions.
where to put this line? API_AI_CLIENT_ACCESS_TOKEN=abc123?

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

No branches or pull requests

3 participants