#is there a way to reuse "set conversation response" scripts?
1 messages · Page 1 of 1 (latest)
like sentence triggers
but if the "set conversation response" is inside a script, it doesnt work
As the first sentence in the Action description states "The set_conversation_response script action allows returning a custom response when an automation is triggered by a conversation engine"... what you are showing is not an automation using a Sentence/conversation trigger.
Use a TTS or Notify action. Make sure to pass the device ID of the initiating device to the script so you can use it as a target.
Another option would be to set your random response generator up as a custom template macro. That would let you use set_conversation_response in the originating automations while still only maintaining a single copy of the response list.
Unrelated to your question, but I just wanted to say I really love your creative responses and might use or take inspiration from a couple of them.
And if you take suggestions, here's one from Anna of Green Gables I really like: "Tomorrow is always fresh." (or alternatively "Tomorrow is always fresh, with no mistakes in it yet.")
It is a sentence trigger though
I took the idea from my old Alexa having a "random good night phrase" and I had chatgot generate a bunch
I mean sometimes
Sometimes the LLM has to point it there
Neat!
My good morning routine has something similar
Once I figure out this specific issue I'll share whatever I end up making
I'll keep an eye out then!
You said it was a script.... A script isn't an automation and it doesn't have a trigger. Post the complete script or automation so we can see what you are actually doing.
Gimme a sec and I will, I just worded it poorly
It's an automation sentence trigger, multiple of them that I want the same complex response, so I put the "set response" inside a script to call it multiple times
Starting to wonder if maybe MCP assist just handles sentence trigger responses weirdly
Logically the below may work (or I might me totally off topic)
-
use Helper | Random | Sensor to generate a number between a range (set maximum equal to total number of responses).
-
Each response is a numeric variable and based on the number generated the corresponding phrase is called.