What are the differences between conversation, intents, intent_script, and responses?
What are the differences between conversation, intents, intent_script, and responses?
I'm confused by the different elements of HA's voice assistant sentences.
- What's the difference between a
conversationand anintent_script? Per HA's custom sentence example, aconversationhas anintentssub-element, and anintent_scriptdoesn't. Does aconversation'sintentmerely declare the element that will respond to the sentence, while anintent_scriptis purely the response (i.e., does anintentspoint to anintent_script)? - HA then explains that while the example above defined the
conversationandintent_scriptinconfiguration.yaml, you can also defineintentsinconfig/custom_sentences/. Should you use both of these methods simultaneously or will it cause conflict or degrade performance? I wouldn't think you should define the same sentence in both places, but the data structure for their 2 examples are different - is 1 better than the other?
In configuration.yaml:
conversation:
intents:
YearOfVoice:
- "how is the year of voice going"
In config/custom_sentences/en:
intents:
SetVolume:
data:
- sentences:
- "(set|change) {media_player} volume to {volume} [percent]"
- "(set|change) [the] volume for {media_player} to {volume} [percent]"
- Then they say
responsesfor existing intents can be customized as well inconfig/custom_sentences/. What's the difference between aresponseand anintent_script? It seems likeintent_scriptcan only be defined inconfiguration.yamlandresponsescan only be defined in config/custom_sentences/` - is that right?
Thanks for any clarification you can share.