dialogflow-esactions-on-googlevui

Does Google Actions Support Websockets?


I am trying to build a Rocket Chat Google Action and one of the major advantage of RC is it's Realtime API's however they require Websocket to get access. I know that Dialogflow can be used for Websocket's but does Google Actions support it?

I am using Dialogflow along with Firebase as backend for my Action.


Solution

  • Actions on Google is a platform for stateless applications running through a REST API call. In this model, the user sends one request to your server and they get back one response.

    Actions on Google itself doesn't support web sockets, but you are able to define a cloud function like Firebase to do advanced fulfillment. While you may be able to get web sockets to work in your function, you'd still need to adjust the Action's conversational flow to work in a request/response fashion instead of listening to web sockets continually.