Google Assistant Adapter for Botfuel
Installation
In your botfuel project, run :
npm install --save botfuel-module-adapter-assistant
Set-up
Botfuel
Create a new config file in the root directory of your project (eg: assistant-config.js)
moduleexports = adapter: name: 'assistant' modules: 'botfuel-module-adapter-assistant';
Assistant
In order to make your bot work with the assistant, you need to create an action.json file
Once your have this file, you need to deploy it using the gactions
CLI
gactions update --action_package action.json --project <YOUR_GOOGLE_ACTIONS_PROJECT_ID>
For more info on how to use gactions
, visit this link https://developers.google.com/actions/tools/gactions-cli
Run your bot
BOTFUEL_APP_TOKEN=<YOUR_APP_TOKEN> BOTFUEL_APP_ID=<YOUR_APP_TOKEN> BOTFUEL_APP_KEY=<YOUR_APP_TOKEN> npm start assistant-config.js