Touchless Chat for Google Home

Discussion in 'App/Feature Suggestion' started by capstan, Dec 26, 2017.

  1. capstan

    capstan Member

    Joined:
    Nov 18, 2017
    Messages:
    45
    Likes Received:
    4
    Hi,

    I would love to send WA-Messages directly with my Google Home.
    Could you implement touchless chat / sth. similar to the GH?
     
  2. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    You could do it with AutoVoice and AutoInput. Did you try that? :)
     
  3. capstan

    capstan Member

    Joined:
    Nov 18, 2017
    Messages:
    45
    Likes Received:
    4
    Thanky for your reply. Yeah, tried that and using it at the moment.
    I can say: "Tell Autoinput send whatsapp to *name* message *message text*.
    I can pick these information on my phone with TouchlessChat. It works good. But what bugs me, is that all interaction after I have spoken the command runs on my phone (phone reads the message and asks me, weather I want to send it)

    Is there a way to parse this back to the Google Home?
     
  4. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Unfortunately no, running it on the phone is really the only way to do it.. Sorry!
     
  5. capstan

    capstan Member

    Joined:
    Nov 18, 2017
    Messages:
    45
    Likes Received:
    4
    And there won't be a possibility for that? Would be neat to send WA from my GH.
     
  6. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Nope. WhatsApp doesn't have a public API as far as I know, so that isn't possible. Sorry!
     
  7. capstan

    capstan Member

    Joined:
    Nov 18, 2017
    Messages:
    45
    Likes Received:
    4
    And a way TouchlessChat sends the text back to GH with AutoCast?
     
  8. capstan

    capstan Member

    Joined:
    Nov 18, 2017
    Messages:
    45
    Likes Received:
    4
    sorry, to spam again.

    Couldn't it work like this:
    1. person says: "tell autovoice to send whatsapp to *contact* message *message content*"
    2. Autovoice sends it to Touchless Chat and TC processes it(already working)
    3. Touchless Chat writes "contact name" and "message input" to variables
    4. AutoVoice responds "Message recorded. Say "read" to check the message or "send"
    4.1: if it recognized "send" it will Trigger Touchless Chat to just send the message as it is and respond "message sent"
    4.2. if it recognized "read" it will respond "message to *contact* with the content *message content*. Do you want to send it?"
    5. If recognized "yes" go to 4.1., if "no", respond "what do you want to write?" and go to 2, if "cancel", well cancel

    If I'm right, all I would need to do this is step 3 (Touchless chat writes variables and waits for further "instructions") Wouldn't that be possible?

    As there is no sign of any messenger on GH natively, this would be very neat!
     
  9. capstan

    capstan Member

    Joined:
    Nov 18, 2017
    Messages:
    45
    Likes Received:
    4
    Got it partly working:

    First profile:

    Profile: Wa aufnehmen (59)
    Event: AutoVoice Recognized [ Configuration:Easy Commands: send whatsapp to (?<name>.+) with the text (?<text>.+)
    Responses: message to %name with the the text %text . . . Do you want to send it?]
    Enter: WA aufnehmen (5)
    A1: Popup [ Title: message to %name with the the text %text Background Image: Layout:popup Timeout (Seconds):5 Show Over Keyguard:On ]
    A2: Variable Set [ Name:%Contact To:%name Recurse Variables:Off Do Maths:Off Append:Off ]
    A3: Variable Set [ Name:%Content To:%text Recurse Variables:Off Do Maths:Off Append:Off ]

    this AutoVoice command doesn't quits itself and listens for second profile:

    Profile: Wa Senden (57)
    Event: AutoVoice Recognized [ Configuration:Easy Commands: yes
    Responses: message sent]
    Enter: Antwort (18)
    A2: [X] Popup [ Title: Text:Message to %Contact. The message is %Content Background Image: Layout:popup Timeout (Seconds):5 Show Over Keyguard:On ]
    A3: Send Message [ Configuration:App: WhatsApp
    Kontakt: %Contact
    Nachricht: %Content
    Confirm: false Timeout (Seconds):60 ]

    So what happens: Everything works, except that AutoVoice doesn't say what it recorded, it reads the variable-names instead of the content. All the Popups (which use the same variables) are displayed correctly. What should I do so that AutoVoice recognizes the variable (which AutoVoice itself created?)

    I noticed, I just can leave the response empty and it will repeat the recognized commands ("send whatsapp to X message Y"), which contains all the important information. But in this way I can't append "Do you want to send it?"

    Any ideas here? (Preferably without Natural Language as I don't have the subscription for it)
     
    Last edited: Feb 7, 2018
  10. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Sorry, can you just clarify where exactly you're setting the AutoVoice response?
     
  11. capstan

    capstan Member

    Joined:
    Nov 18, 2017
    Messages:
    45
    Likes Received:
    4
    In the part I wrote with bold letters. I want it to say the two variables it recognized before and don't stop listening and if I say "yes" start a task with Touchless Chat using the variables
     
  12. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    For that you have to use the "Easy Way" of doing it :) Can you try that please? Should be very straight forward for this use case. Check out this video at this time.
     
  13. capstan

    capstan Member

    Joined:
    Nov 18, 2017
    Messages:
    45
    Likes Received:
    4
    Wow, this way was really easy! And now it works like I want it!

    Expect a tutorial for sending chat messages with GH for the weekend!
     
  14. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Awesome :D Let me know when it's up!
     
  15. capstan

    capstan Member

    Joined:
    Nov 18, 2017
    Messages:
    45
    Likes Received:
    4
  16. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Thank you very much! :) You're getting really good at this!!
     
  17. capstan

    capstan Member

    Joined:
    Nov 18, 2017
    Messages:
    45
    Likes Received:
    4
    Thank you! Sadly there is something wrong with the tutorial and as my GH hardly understands me when speaking english, I wasn't able to test it until today in the morning. Hopefully will be able to correct it in the afternoon.
     
  18. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    No problem. :) thanks again!
     
  19. capstan

    capstan Member

    Joined:
    Nov 18, 2017
    Messages:
    45
    Likes Received:
    4
    One more question: does AutoVoice work the same on Echo Dot? So will the same tutorial apply for this as well?
     
  20. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Yes. :) The same applies!
     

Share This Page