Slide 38
Slide 38 text
Hey, why not a Single Page App?
Anti Pattern
I've seen solutions online where the microphone directly got streamed to the Dialogflow, without a server part. The REST
calls were made directly in the web client with JavaScript. I would consider this as an anti-pattern. You will likely expose
your service account / private key in your client-side code. Anyone, who is handy with ChromeDev tools, could steal your
key, and make (paid) API calls via your account. It's a better approach to always let a server handle the Google Cloud
authentication. This way the service account won't be exposed to the public.