<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Alan Nichol</title>
    <description>The latest articles on DEV Community by Alan Nichol (@alanfromrasa).</description>
    <link>https://dev.to/alanfromrasa</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3771092%2F0dc4a9c3-3a83-4e23-b2f0-aeeb500818a6.png</url>
      <title>DEV Community: Alan Nichol</title>
      <link>https://dev.to/alanfromrasa</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/alanfromrasa"/>
    <language>en</language>
    <item>
      <title>I Gave a Smart Home Assistant an Upgraded Brain and Personality</title>
      <dc:creator>Alan Nichol</dc:creator>
      <pubDate>Fri, 13 Feb 2026 14:12:32 +0000</pubDate>
      <link>https://dev.to/alanfromrasa/i-gave-a-smart-home-assistant-an-upgraded-brain-and-personality-mhf</link>
      <guid>https://dev.to/alanfromrasa/i-gave-a-smart-home-assistant-an-upgraded-brain-and-personality-mhf</guid>
      <description>&lt;p&gt;My heating wasn't working, so I tried the Hive smart home assistant. It can actually check your thermostat via API — pretty cool.&lt;/p&gt;

&lt;p&gt;It also takes &lt;strong&gt;70 seconds&lt;/strong&gt; to respond. And when you tell it you're unhappy, it says:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"I notice you seem unhappy."&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;So I rebuilt it. You can try it yourself:&lt;/p&gt;

&lt;p&gt;👉 &lt;a href="https://hello.rasa.com/go?repo=rasahq/smart-thermostat-skill" rel="noopener noreferrer"&gt;Launch the demo on Hello Rasa&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;👉 &lt;a href="https://github.com/RasaHQ/smart-thermostat-skill" rel="noopener noreferrer"&gt;GitHub repo&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  The Problems
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;1. Painfully slow&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Every response — even "hello" — took 10-12 seconds. The API call took 70 seconds with no feedback. Just... waiting.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Dead ends&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Ask something out of scope and you get:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"Sorry, I cannot answer."&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Full stop. No alternatives. No path forward.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Inconsistent capabilities&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;It checked my thermostat once. Then later, when I asked explicitly, it said it &lt;em&gt;couldn't&lt;/em&gt; check the thermostat. Same bot. Same session. Trust: broken.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. Robotic tone&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;"I notice you seem unhappy" sounds like a sentiment classifier readout, not a conversation.&lt;/p&gt;




&lt;h2&gt;
  
  
  The Fixes
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Instant acknowledgment
&lt;/h3&gt;

&lt;p&gt;The fix is simple — acknowledge immediately, then do the slow work:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;flows&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;check_heating&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;description&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;user wants to check their heating system&lt;/span&gt;
    &lt;span class="na"&gt;steps&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
      &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;action&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;utter_checking_heating&lt;/span&gt;  &lt;span class="c1"&gt;# "Let me check..." (instant)&lt;/span&gt;
      &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;action&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;action_check_heating_system&lt;/span&gt;  &lt;span class="c1"&gt;# API call&lt;/span&gt;
      &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;if&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;slots.heating_active&lt;/span&gt;
        &lt;span class="na"&gt;then&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
          &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;action&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;utter_heating_on&lt;/span&gt;
        &lt;span class="na"&gt;else&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
          &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;action&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;utter_heating_off&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That's it. A flow that describes the business logic. The user sees "Let me check your heating system" immediately. They'll wait for the API.&lt;/p&gt;

&lt;h3&gt;
  
  
  No dead ends
&lt;/h3&gt;

&lt;p&gt;When I asked the original bot to "set it to 25 degrees", I got:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"Sorry, I cannot answer."&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;That's a wall. The fix — a rephraser that acknowledges what they actually asked for:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;utter_unsupported_action&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;text&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;I'm&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;sorry&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;but&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;that's&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;not&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;something&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;I&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;can&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;do"&lt;/span&gt;
    &lt;span class="na"&gt;metadata&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
      &lt;span class="na"&gt;rephrase&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;True&lt;/span&gt;
      &lt;span class="na"&gt;rephrase_prompt&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="pi"&gt;|&lt;/span&gt;
        &lt;span class="s"&gt;Rephrase this to acknowledge what the user was asking for.&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now when I ask "set it to 25", I get: "I can't adjust the temperature for you, but I can check if the heating's working."&lt;/p&gt;

&lt;h3&gt;
  
  
  Consistent capabilities
&lt;/h3&gt;

&lt;p&gt;The original bot sometimes said it could check the thermostat, sometimes said it couldn't. The fix: a custom action that actually does the thing.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;ActionCheckHeatingSystem&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;Action&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;run&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;dispatcher&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;tracker&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;domain&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
        &lt;span class="n"&gt;data&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;_fetch_thermostat_status&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;user_id&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
            &lt;span class="nc"&gt;SlotSet&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;thermostat_online&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;thermostat_online&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;]),&lt;/span&gt;
            &lt;span class="nc"&gt;SlotSet&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;current_temp&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;current_temp&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;]),&lt;/span&gt;
            &lt;span class="nc"&gt;SlotSet&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;heating_active&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;heating_active&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;]),&lt;/span&gt;
        &lt;span class="p"&gt;]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The flow calls the action. The action returns slots. The flow decides what to say based on those slots. Simple.&lt;/p&gt;

&lt;h3&gt;
  
  
  Human tone
&lt;/h3&gt;

&lt;p&gt;The rephraser transforms robotic responses into natural ones:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Request&lt;/th&gt;
&lt;th&gt;Before&lt;/th&gt;
&lt;th&gt;After&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;"Set it to 25"&lt;/td&gt;
&lt;td&gt;"Sorry, I cannot answer."&lt;/td&gt;
&lt;td&gt;"I can't adjust the temperature, but I can check if it's working."&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;"Check my heating"&lt;/td&gt;
&lt;td&gt;"Your heating is ON. Current temp is 18.5°C."&lt;/td&gt;
&lt;td&gt;"The heating's running — sitting at 18.5°C, heading for 21°C."&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;":("&lt;/td&gt;
&lt;td&gt;"I notice you seem unhappy."&lt;/td&gt;
&lt;td&gt;"That sounds frustrating — let me see what I can do."&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Same capabilities. Human delivery.&lt;/p&gt;




&lt;h2&gt;
  
  
  The Patterns
&lt;/h2&gt;

&lt;p&gt;These work for any conversational AI:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Acknowledge instantly&lt;/strong&gt; — even if the real work takes time&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No dead ends&lt;/strong&gt; — always give the user a path forward&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Use a rephraser&lt;/strong&gt; — make functional responses sound human&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Flows over intents&lt;/strong&gt; — describe what should happen, not every way someone might ask&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The whole skill is ~100 lines of YAML and one Python file. Fork it and build your own.&lt;/p&gt;

&lt;p&gt;👉 &lt;a href="https://hello.rasa.io/go?repo=rasahq/smart-thermostat-skill" rel="noopener noreferrer"&gt;Try the demo&lt;/a&gt; | &lt;a href="https://github.com/RasaHQ/smart-thermostat-skill" rel="noopener noreferrer"&gt;View the code&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>api</category>
      <category>performance</category>
      <category>showdev</category>
    </item>
  </channel>
</rss>
