Skip to content

kajinose-field/travis-ci-VUI-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

travis-ci-VUI-bot

The voice user interface bot application that tell build status of sync repository on travis-ci.

untitled

Set up

Repository side

first, clone this repository

git clone https://github.com/kajinose-field/travis-ci-VUI-bot

install dependencies

bundle install 

export enviroment variable that use in app.rb

export GITHUB_API_TOKEN=xxxxx...
export NAME_AND_REPO_NAME=your_github_name/your_repository_name

publish webhook

start the webhook on local

bundle exec ruby app.rb

way to easy publish

./ngrok http 4567 

sinatra default port is 4567. If you want to change this, use -p <PORT> flag

If you dont use ngrok to publish webhook, you should deploy to the cloud server(required SSL)

Dialogflow side

create the two intent

intent name format. .Response is easy to check kind of intent

HogeIntent
HogeIntent.Response

HogeIntent Settings

Input some training phrases

screenshot from 2018-05-20 17-11-17

In this time, no problem in Responses content is empty.

After that, enable webhook in fulfillment.

screenshot from 2018-05-20 17-15-44

HogeIntent.Response Settings

Make a event which name is WEBHOOK_RECEIVED

screenshot from 2018-05-20 17-22-10

Set parameter build_status screenshot from 2018-05-20 17-24-44

Input $build_status to Responses of DEFAULT and GOOGLE ASISTANT

fulfillment

Set the random url which is made by ngrok

screenshot from 2018-05-20 17-32-37

All settins finished. you can quickly try talking on chat on dialogflow console

About

Dialogflow webhook ruby example

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages