Skip to content

Commit c328602

Browse files
committed
Readme updates
1 parent bc18181 commit c328602

4 files changed

+16
-5
lines changed

README.md

+16-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Google Assistant Demo
22
[![License: MPL 2.0](https://img.shields.io/badge/License-MPL%202.0-brightgreen.svg)](https://opensource.org/licenses/MPL-2.0)
33

4+
[Test this application for free on Heroku](https://heroku.com/deploy)
5+
46
[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy)
57

68
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
1719
## Installation
1820

1921
### DialogFlow
22+
2023
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.
2331
Read [the dialogflow docs](https://dialogflow.com/docs/agents/export-import-restore) for more information.
2432

2533

2634
### 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).
3038

3139
If you choose to host this project yourself, download the project to the location and run `composer install`. When configuring
3240
the web server, you need to use `/public` as the root directory of the project.
3341

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+
3445
## Forking, reporting issues and creating pull requests
3546

3647
This project is meant as an example and base to create your own, better version of it.
-13.1 KB
Binary file not shown.

docs/dialogflow-settings.png

53.9 KB
Loading
9.91 KB
Binary file not shown.

0 commit comments

Comments
 (0)