google-assistant icon indicating copy to clipboard operation
google-assistant copied to clipboard

How to make it work?

Open arthurabreu1 opened this issue 2 years ago • 5 comments

Hello,

I am new to JS / NODE.js... sorry in advance for the silly question. Wondering how I can make this work... I have installed node.js on my PC. Trying to run executing npm run and the only script there is called test. when I try npm run test it just have a code to exit... wondering how to make the examples work.

Thanks

arthurabreu1 avatar Oct 03 '21 21:10 arthurabreu1

You have to create a JS script with the provided example : https://github.com/endoplasmic/google-assistant#usage

Make sure to modify with your own information. Then run node with the created script.

Aymkdn avatar Oct 03 '21 21:10 Aymkdn

thank you, it worked... I am now trying to use the text-based conversation with my google assistant... auth is working fine apparently but can't seem to get an answer... image

arthurabreu1 avatar Oct 03 '21 21:10 arthurabreu1

You may want to try this sample : https://github.com/endoplasmic/google-assistant/blob/master/examples/console-input.js

Aymkdn avatar Oct 03 '21 21:10 Aymkdn

Yah sadly even though you hear the response it doesn't always come with a text string :( Glad you got it working though!

endoplasmic avatar Oct 04 '21 00:10 endoplasmic

yeah, that's exactly what I noticed. some commands return a text response but others don't. not sure why. but thanks a lot for helping me to get this working.

arthurabreu1 avatar Oct 04 '21 12:10 arthurabreu1