title: Setting up a very simple "turn on device" with Google Home and NodeJS?
body: <p>So far I've found plenty of guides online that shows how to set up a NodeJS backend, that Dialogflow can talk to. However, Dialogflow was previously API.AI and all the old guides are basically wrong now.</p>
  
  <p>When I try to do this:</p>
  
  <pre><code>require('actions-on-google').ApiAiAssistant
  </code></pre>
  
  <p>It will tell me:</p>
  
  <blockquote>
    <p>Importing the class name ApiAiAssistant is <em>DEPRECATED</em>, use DialogflowApp</p>
  </blockquote>
  
  <p>But even changing <code>ApiAiAssistant</code> to <code>DialogflowApp</code> won't work. Here's an example of some Action: <a href="https://github.com/greenido/bitcoin-info-action/" rel="nofollow noreferrer">https://github.com/greenido/bitcoin-info-action/</a></p>
  
  <p>As you can see, it has not been updated in a long time, nor does the code actually work (even if I import the intents and so on into Dialogflow).</p>
  
  <p>What I basically want: Give Google Home parameters (like <code>turn on TV</code> which would take <code>TV</code> as a parameter) and handle that in my NodeJS backend. How would I do something like that? It can be with or without Dialogflow.</p>
  
  <p>Also, is it even possible to say <code>Hey Google, turn on TV</code>? So far all examples I've seen it like <code>Hey Google, launch MY_ACTION</code> or <code>Hey Google, ask MY_ACTION to INTENT</code> which is slow and annoying.</p>