Intent Script
The intent_script
integration allows users to configure actions and responses to intents. Intents can be fired by any integration that supports it. Examples are Alexa (Amazon Echo), Dialogflow (Google Assistant) and Snips.
# Example configuration.yaml entry
intent_script:
GetTemperature: # Intent type
speech:
text: We have {{ states('sensor.temperature') }} degrees
action:
service: notify.notify
data:
message: Hello from an intent!
Inside an intent we can define these variables:
Configuration Variables
Name of the intent. Multiple entries are possible.
Defines an action to run to intents.
Set to True to have Home Assistant not wait for the script to finish before returning the intent response.
Card to display.
Text or template to return.
Text to speech.