How can I add more than one intent in Amazon? From the documentation I see a bunch of scripts in the values under slots. Do I need to create a seperate skill for each domain, so one for scripts one for sensors and so on? I cant figure out how to add to the scheme, maybe I need to add certain syntax, and then after that how would I add a slot for sensors since it is already populated with scripts?
I have 1 intent working great, just need some help figuring out how to add. I can create a bunch of skills if needed…
One skill can have multiple intents.
You define intents in the “Interaction Model” of your skill at developer.amazon.com
Then you define the intents in the intent_script section of your home assistant configuration.
Each intent gets its own definition.
In my config, I have an include for intent_script.yaml then have entries in that file for each intent
I understand that. My question is what does your syntax look like in amazon when adding additional intents. My first intent is a script. So say I want to add a sensor. How do I add another “slot” and format the schema? First one works great and the ha side I get. Just need some help with the above. Thx
You say you want to add an additional intent. Using the alexa developer console you click the “NEW INTENT” button. The new intent is not related to your old intent in any way except they are both contained in the same skill.
Then you say you want to add a sensor. I don’t understand how adding a sensor is related to adding an intent.
Sorry, Im probably not explaining it very well. So I have an intent thats a script and I want to add more intents that are not scripts. I dont see a add intent button. I pasted some screen shots below.
First, do i add the next intent in this same window?
Second, would I click that add slot button?
Third, in the bottom box “utterences” do I add both sensors and scripts that I want to control?
Currently, you can see my schema above.Here is my ha config:
RunScriptIntent:
action:
service: script.turn_on
data_template:
entity_id: script.garage
speech:
type: plain
text: Whatever you want, deuche bag
I want to add more intents. So do I use that same schema and just add another intent below that even if it is not a script? And add a new slot? And add all sensors and scripts in the utterences window?
Then I would just take that intent name and add it in intent_script.yaml.
Yea, that’s the old version of the skills page. I switched to the new (beta) skill builder, so I’m not sure what to tell you.
But you are one level too deep to add an intent. You are in the intent editor. You can’t add a new intent there. You have to go back up one level
Then in you HA config, you just add a new intent below the current one like this:
Oh ok I didnt try the builder. Im messing with it now, thank you! Any chance theres some write up somewhere about what values its expecting where? Ive created the sensor slot but thats about it so far…