← 开源
fossasia

susi_gassistantbot

SUSI AI for Google Assistant

AI EngineeringBring agent to usersJavaScript
在 GitHub 打开
增长势头
+024 小时新增 Star0.0%
1.47k
Star
12
Fork
+0
本周
3
贡献者
创建于 2017-07-11 · 更新于 2026-10-08 · 今日第 10248 名
主要开发者
AliAyub007mariobehlingThatDNS
README

Setup:

  1. First of all we will make a project on developer's console of Actions on Google and after that you will set up action on your project using API.AI

  1. Above step will open API.AI console create an agent there for the project you created above.

  2. Now we have an agent. In order to create SUSI action on Google, we will define an "intent" from options in the left menu on API.AI, but as we have to receive responses from SUSI API so we have to set up webhook first.

  1. See "fulfillment" option in the left menu. Open to enable it and to enter the url. We have to deploy the above written code onto heroku, but first make a github repository and push the files in the folder we created above.

    In command line change current directory to folder we created above and write git init git add . git commit -m"initial" git remote add origin <URL for remote repository> git remote -v git push -u origin master

You will get URL for remote repository by making repository on your github and copying this link of your repository.

  1. Now we have to deploy this github repository to heroku to get url.

    If you don't have account on heroku sign up here https://www.heroku.com/ else just sign in and create a new app.

Deploy your repository onto heroku from deploy option and choosing github as a deployment method.

Select automatic deployment so that when you make any changes in github repository, they are automatically deployed to heroku.
  1. Open your app from option on top right and copy the link of your heroku app and append it with /webhook and enter this url into fulfillment url.

        https://{Your\_App\_Name}.herokuapp.com/webhook
    
  2. After setting up webhook we will make an intent on API.AI, which will get what user is asking from SUSI. To create an intent, select "intent" from the left menu and create an intent with information given in screenshot below and save your intent.

  1. After creating the intent, your agent is ready. You just have to integrate your agent with Actions on Google. Turn on its integration from the "integration" option in left menu.

  2. Your SUSI action on Google Assistant is ready now. To test it click on actions on Google in integration menu and choose "test"option.

  1. You can only test it with the same email you have used for creating the project in step 7. To test it on Google Assistant follow this demo video https://youtu.be/wHwsZOCKaYY
排名相邻
同类项目