1
1
# Google Assistant Demo
2
2
[ ![ License: MPL 2.0] ( https://img.shields.io/badge/License-MPL%202.0-brightgreen.svg )] ( https://opensource.org/licenses/MPL-2.0 )
3
3
4
+ [ Test this application for free on Heroku] ( https://heroku.com/deploy )
5
+
4
6
[ ![ Deploy] ( https://www.herokucdn.com/deploy/button.svg )] ( https://heroku.com/deploy )
5
7
6
8
This project is a small demo on how you can use data from Trafiklab.org, with the help of the Trafiklab PHP SDKs,
@@ -17,20 +19,29 @@ The project is based on Laravel Lumen. It requires PHP 7.1 or higher on the host
17
19
## Installation
18
20
19
21
### DialogFlow
22
+
20
23
The DialogFlow project which is used to link Google Assistant has been exported to
21
- [ a zip file] ( https://raw.githubusercontent.com/trafiklab/google-assistant-demo/master/dialogflow-stockholm-public-transport.zip ) ,
22
- and can be downloaded and imported to your own DialogFlow project.
24
+ [ a zip file] ( https://raw.githubusercontent.com/trafiklab/google-assistant-demo/master/docs/dialogflow-stockholm-public-transport.zip ) ,
25
+ and can be downloaded and imported to your own DialogFlow project. In order to do this, you need to create a new agent first.
26
+ After creating a new agent, you click the gear wheal in the top left, next to your agent name.
27
+
28
+ ![ Dialogflow settings] ( https://raw.githubusercontent.com/trafiklab/google-assistant-demo/master/docs/dialogflow-settings.png )
29
+
30
+ After going to the settings, choose the Export and Import tab. Choose ` Restore from zip ` to clone the project from the zip file.
23
31
Read [ the dialogflow docs] ( https://dialogflow.com/docs/agents/export-import-restore ) for more information.
24
32
25
33
26
34
### Webhook
27
- In order to deploy your webhook, you can use Heroku as a free and easy hosting service. This repository already contains the needed
28
- configuration. [ A good tutorial on how you can deploy to Heroku can be found here] ( https://github.com/dwyl/learn-heroku ) ,
29
- or you can read read the official documentation(https://devcenter.heroku.com/articles/github-integration ).
35
+ In order to deploy your webhook, you can use Heroku as a free and easy hosting service. This repository already contains
36
+ the needed configuration. [ A good tutorial on how you can deploy to Heroku can be found here] ( https://github.com/dwyl/learn-heroku ) ,
37
+ or you can read read [ the official documentation] ( https://devcenter.heroku.com/articles/github-integration ) .
30
38
31
39
If you choose to host this project yourself, download the project to the location and run ` composer install ` . When configuring
32
40
the web server, you need to use ` /public ` as the root directory of the project.
33
41
42
+ Ensure that you update your DialogFlow project with the correct fulfillment URL. This is the URL to which dialogflow will send
43
+ its requests.
44
+
34
45
## Forking, reporting issues and creating pull requests
35
46
36
47
This project is meant as an example and base to create your own, better version of it.
0 commit comments