Merge pull request #6206 from hobbypunk90/patch-3

Add information about HangoutsHelp and default_conversations
This commit is contained in:
DubhAd 2018-09-29 13:24:40 +01:00 committed by GitHub
commit ac7d5e2dd8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,12 +34,17 @@ The authentication token will be generated and stored internally.
# Example configuration.yaml entry
hangouts:
intents:
HangoutsHelp:
sentences:
- Help
LivingRoomTemperature:
sentences:
- What is the temperature in the living room
conversations:
- id: CONVERSATION_ID1
- id: CONVERSATION_ID2
default_conversations:
- id: CONVERSATION_ID1
error_suppressed_conversations:
- id: CONVERSATION_ID2
@ -70,6 +75,16 @@ intents:
description: "Specifies the id of the conversation. *The conversation id can be obtained from the `hangouts.conversations` entity.*"
required: true
type: string
default_conversations:
description: "A list of conversations that are used for intents if no `conversations` entry for an intent is given."
required: false
type: [map]
default: empty
keys:
id:
description: "Specifies the id of the conversation. *The conversation id can be obtained from the `hangouts.conversations` entity.*"
required: true
type: string
error_suppressed_conversations:
description: "A list of conversations that won't get a message if the intent is not known."
required: false
@ -84,6 +99,8 @@ error_suppressed_conversations:
The conversations has to be precreated, the conversation id can be obtained from the `hangouts.conversations` entity. Make sure to use quotes around the conversation id or alias to escape special characters (`!`, and `#`) in YAML.
The intent `HangoutsHelp` is part of the component and return a list of all sentences the component unterstand in this conversation.
## {% linkable_title Adding sentences %}
```yaml