Update dialogflow instructions (#15295)

Co-authored-by: Franck Nijhof <git@frenck.dev>
This commit is contained in:
Gareth Ellis 2020-10-20 21:01:38 +02:00 committed by GitHub
parent 5bc0525c26
commit 4327dc245f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -35,21 +35,21 @@ To use this integration, you should define a conversation (intent) in Dialogflow
To get the webhook URL, go to the integrations page in the configuration screen and find "Dialogflow". Click on "configure". Follow the instructions on the screen. To get the webhook URL, go to the integrations page in the configuration screen and find "Dialogflow". Click on "configure". Follow the instructions on the screen.
- [Login](https://console.dialogflow.com/) with your Google account - [Login](https://console.dialogflow.com/) with your Google account.
- Click on "Create Agent" - Click on "Create Agent".
- Select name, language (if you are planning to use Google Actions check their [supported languages](https://support.google.com/assistant/answer/7108196?hl=en)) and time zone - Select name, language (if you are planning to use Google Actions check their [supported languages](https://support.google.com/assistant/answer/7108196?hl=en)) and time zone.
- Click "Save" - Click "Save".
- Now go to "Fulfillment" (in the left menu) - Now go to "Fulfillment" (in the left menu).
- Enable Webhook and set your Dialogflow webhook URL as the endpoint, e.g., `https://myhome.duckdns.org/api/webhook/800b4cb4d27d078a8871656a90854a292651b20635685f8ea23ddb7a09e8b417` - Enable Webhook and set your Dialogflow webhook URL as the endpoint, e.g., `https://myhome.duckdns.org/api/webhook/800b4cb4d27d078a8871656a90854a292651b20635685f8ea23ddb7a09e8b417`
- Click "Save" - Click "Save".
- Create a new intent - Create a new intent.
- Below "User says" write one phrase that you, the user, will tell Dialogflow, e.g., `What is the temperature at home?` - Below "User says" type one phrase that you, the user, will say to Dialogflow, e.g., `What is the temperature at home?`.
- In "Action" set some key (this will be the bind with Home Assistant configuration), e.g.,: GetTemperature - In "Action" enter an action name. This should match the name of an IntentScript within your Home Assistant configuration, e.g., in the example below "Temperature".
- In "Response" set "Cannot connect to Home Assistant or it is taking to long" (fall back response) - In "Response" enter "Cannot connect to Home Assistant or it is taking to long" (fall back response).
- At the end of the page, click on "Fulfillment" and check "Use webhook" - At the bottom of the page, expand "Fulfillment" and check "Use webhook".
- Click "Save" - Click "Save".
- On the top right, where is written "Try it now...", write, or say, the phrase you have previously defined and hit enter - At the top right of the screen where it says "Try it now...", type, or say, the phrase you have previously defined and hit enter.
- Dialogflow has send a request to your Home Assistant server - Dialogflow will now send a request to your Home Assistant server and display the response.
<div class='note warning'> <div class='note warning'>