<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Smart reply for voice with parameters]]></title><description><![CDATA[<p dir="auto">Just was wondering if there is a way to have a voice reply for different parameters sent in.</p>
<p dir="auto">Let's say I have a batch that can accept on, off, or no parameter. It would be cool to have the reply say something different for each one of these situations.</p>
<p dir="auto">"Ok Google, Ask TriggerCMD to run Plex with parameter on"<br />
Voice Reply: Turned on the plex server</p>
<p dir="auto">"Ok Google, Ask TriggerCMD to run Plex with parameter off"<br />
Voice Reply: Turned off the plex server</p>
<p dir="auto">Plex.bat</p>
<p dir="auto">if "%1"=="on" "Plex Media Server.exe"<br />
if "%1"=="" "Plex Media Server.exe"<br />
if "%1"=="off" taskkill /IM "Plex Media Server.exe"</p>
<p dir="auto">Now I can just have two different triggers and call the correct one for on/off control but I also have smartthings and have them hooked up there.  The Device Handler for that is defaulted to a switch with on/off states.  If I have two Virtual Switches on Smartthings I think that could get very confusing.  I think I can modify the DTH to be a button or something, but I like the idea of a state being reported to my screens.</p>
<p dir="auto">Anyway short of it is is there or can we have a way to have a more intelligent reply based on what parameter is passed in.</p>
<p dir="auto">Thanks!!! Having a blast with this, can't wait to subscribe so I can really have fun with it <img src="https://www.triggercmd.com/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=6sa9akdcpc2" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":)" alt="🙂" /> Just have to wait until after christmas, every dollar counts!</p>
]]></description><link>https://www.triggercmd.com/forum/topic/332/smart-reply-for-voice-with-parameters</link><generator>RSS for Node</generator><lastBuildDate>Tue, 16 Jun 2026 21:12:51 GMT</lastBuildDate><atom:link href="https://www.triggercmd.com/forum/topic/332.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 13 Dec 2018 20:14:42 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Smart reply for voice with parameters on Sat, 18 May 2019 18:03:35 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://www.triggercmd.com/forum/uid/129">@colegl</a> and <a class="mention plugin-mentions-user plugin-mentions-a" href="https://www.triggercmd.com/forum/uid/1961">@phil-tanguay</a>, I implemented this today for Google Assistant.  I'm working on Alexa now.</p>
<p dir="auto">I put this in my Voice Reply field of my Notepad command (I should have just created a new command):</p>
<pre><code>Running {{trigger}} on {{computer}} with params {{params}} with result {{result}}
</code></pre>
<p dir="auto">I put this in the Command field:</p>
<pre><code>%USERPROFILE%\.TRIGGERcmdData\sendresult "My command result"
</code></pre>
<p dir="auto">I said this:</p>
<pre><code>Ask trigger command to run notepad with parameter russ
</code></pre>
<p dir="auto">Google Assistant said this:</p>
<pre><code>Running notepad on DS with params russ with result My command result
</code></pre>
<p dir="auto">I'm pretty happy with how it turned out.</p>
<p dir="auto">I only gave about 4-5 seconds to send a result via that SendResult.bat script.  If you take too long, it will say "no result" in the {{result}} placeholder.</p>
<p dir="auto">EDIT:  Now you can do this with Alexa too.</p>
]]></description><link>https://www.triggercmd.com/forum/post/1401</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/1401</guid><dc:creator><![CDATA[Russ]]></dc:creator><pubDate>Sat, 18 May 2019 18:03:35 GMT</pubDate></item><item><title><![CDATA[Reply to Smart reply for voice with parameters on Fri, 19 Apr 2019 00:18:18 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://www.triggercmd.com/forum/uid/1">@russ</a> Awesome ! Looking forward to it but no rush <img src="https://www.triggercmd.com/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=6sa9akdcpc2" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
<p dir="auto">My brain is bubbling with ideas - triggercmd has opened a whole new avenue for cool automations.</p>
]]></description><link>https://www.triggercmd.com/forum/post/1356</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/1356</guid><dc:creator><![CDATA[Phil Tanguay]]></dc:creator><pubDate>Fri, 19 Apr 2019 00:18:18 GMT</pubDate></item><item><title><![CDATA[Reply to Smart reply for voice with parameters on Thu, 18 Apr 2019 23:23:41 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://www.triggercmd.com/forum/uid/1961">@phil-tanguay</a>, I do plan on implementing that ability soon, now that I've added the SendResult script to the .TRIGGERcmdData folder to send a result of a command back to the server.</p>
<p dir="auto">Currently the result just gets logged in the Runs log for the command.</p>
<p dir="auto">It's on my todo list.</p>
]]></description><link>https://www.triggercmd.com/forum/post/1354</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/1354</guid><dc:creator><![CDATA[Russ]]></dc:creator><pubDate>Thu, 18 Apr 2019 23:23:41 GMT</pubDate></item><item><title><![CDATA[Reply to Smart reply for voice with parameters on Thu, 18 Apr 2019 00:57:15 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://www.triggercmd.com/forum/uid/1">@russ</a> related to this - is it possible to include the script output in the voice reply ? For example - current lab temperature is {{result}} celcius.</p>
<p dir="auto">Just started using triggercmd and it’s fantastic - great service mate, we’ll worth the $ !</p>
]]></description><link>https://www.triggercmd.com/forum/post/1352</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/1352</guid><dc:creator><![CDATA[Phil Tanguay]]></dc:creator><pubDate>Thu, 18 Apr 2019 00:57:15 GMT</pubDate></item><item><title><![CDATA[Reply to Smart reply for voice with parameters on Sat, 09 Mar 2019 14:18:06 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://www.triggercmd.com/forum/uid/1880">@sim-wonkdonk</a>, the voice field is different from the voiceReply field.  Your example is missing the voiceReply field.</p>
<p dir="auto">Here's an example with that field:</p>
<pre><code> {
  "trigger": "test command",
  "command": "d: &amp; cd \\appdev\\test &amp; node t.js",
  "ground": "background",
  "voice": "test",
  "voiceReply": " ",
  "allowParams": "false"
 }
</code></pre>
]]></description><link>https://www.triggercmd.com/forum/post/1307</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/1307</guid><dc:creator><![CDATA[Russ]]></dc:creator><pubDate>Sat, 09 Mar 2019 14:18:06 GMT</pubDate></item><item><title><![CDATA[Reply to Smart reply for voice with parameters on Sat, 09 Mar 2019 08:31:43 GMT]]></title><description><![CDATA[<p dir="auto">I'm using a raspberry pi, so I have to edit the commands via the commands.json</p>
<p dir="auto">{"trigger":"STANDBY","command":"/opt/TIVO/ircode-script.sh STANDBY","ground":"background","voice":"STANDBY","allowParams": "false"},</p>
<p dir="auto">Putting a space in the "voice" parameter stops the command work, as thats the trigger word for the command, not the response the command gives.</p>
<p dir="auto">I guess there's no work around?</p>
]]></description><link>https://www.triggercmd.com/forum/post/1306</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/1306</guid><dc:creator><![CDATA[Sim Wonkdonk]]></dc:creator><pubDate>Sat, 09 Mar 2019 08:31:43 GMT</pubDate></item><item><title><![CDATA[Reply to Smart reply for voice with parameters on Sat, 23 Feb 2019 00:19:06 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://www.triggercmd.com/forum/uid/1880">@sim-wonkdonk</a>, you could minimize the response by putting a space in that voice reply field.</p>
]]></description><link>https://www.triggercmd.com/forum/post/1276</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/1276</guid><dc:creator><![CDATA[Russ]]></dc:creator><pubDate>Sat, 23 Feb 2019 00:19:06 GMT</pubDate></item><item><title><![CDATA[Reply to Smart reply for voice with parameters on Fri, 22 Feb 2019 22:41:32 GMT]]></title><description><![CDATA[<p dir="auto">Can I ask a follow up question?</p>
<p dir="auto">I'd like to have editable voice response too, and I'm running triggercmd on pi, I assume it would be a case of updating the installation and editing the json file (I have no ui on my pi).</p>
<p dir="auto">I'd actually like to be able to disable any feedback at all, currently it says "Getting triggercmd" and then "blah blah blah on pi"</p>
]]></description><link>https://www.triggercmd.com/forum/post/1275</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/1275</guid><dc:creator><![CDATA[Sim Wonkdonk]]></dc:creator><pubDate>Fri, 22 Feb 2019 22:41:32 GMT</pubDate></item><item><title><![CDATA[Reply to Smart reply for voice with parameters on Wed, 09 Jan 2019 21:13:53 GMT]]></title><description><![CDATA[<p dir="auto">I just saw this!! Awesome I'll try it out today and let you know!</p>
]]></description><link>https://www.triggercmd.com/forum/post/1146</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/1146</guid><dc:creator><![CDATA[MysticNynja]]></dc:creator><pubDate>Wed, 09 Jan 2019 21:13:53 GMT</pubDate></item><item><title><![CDATA[Reply to Smart reply for voice with parameters on Fri, 16 Oct 2020 20:34:59 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://www.triggercmd.com/forum/uid/129">@colegl</a>, thanks for the reminder.  I did it just now, and it's awesome!</p>
<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://www.triggercmd.com/forum/uid/1718">@mysticnynja</a>, thanks for the suggestion.</p>
<p dir="auto">Now you can use these placeholders in your Voice Reply field:</p>
<ul>
<li>{{trigger}}</li>
<li>{{computer}}</li>
<li>{{params}}</li>
<li>{{result}}</li>
</ul>
<p dir="auto"><img src="https://triggercmdagents.s3.amazonaws.com/Pics/Forum/VoiceReplyPlaceholders.PNG" alt="Voice Reply Placeholders" class=" img-fluid img-markdown" /></p>
]]></description><link>https://www.triggercmd.com/forum/post/1100</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/1100</guid><dc:creator><![CDATA[Russ]]></dc:creator><pubDate>Fri, 16 Oct 2020 20:34:59 GMT</pubDate></item><item><title><![CDATA[Reply to Smart reply for voice with parameters on Sun, 23 Dec 2018 20:30:36 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://www.triggercmd.com/forum/uid/1">@russ</a><br />
Did this ever get implemented?  It would be useful to me.</p>
]]></description><link>https://www.triggercmd.com/forum/post/1097</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/1097</guid><dc:creator><![CDATA[colegl]]></dc:creator><pubDate>Sun, 23 Dec 2018 20:30:36 GMT</pubDate></item><item><title><![CDATA[Reply to Smart reply for voice with parameters on Fri, 14 Dec 2018 04:42:54 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://www.triggercmd.com/forum/uid/1718">@mysticnynja</a>, that's a good idea, and I don't think it would be too difficult.  I'd have to let you put a placeholder like {{param}} in the voice reply field.  I'll add this to my todo list.</p>
]]></description><link>https://www.triggercmd.com/forum/post/1061</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/1061</guid><dc:creator><![CDATA[Russ]]></dc:creator><pubDate>Fri, 14 Dec 2018 04:42:54 GMT</pubDate></item></channel></rss>