get_json () response = EventHandler ( payload, commands ). route ( '/', methods = ) def main (): payload = request. You need to use it with one solution.Įxample using Flask. HINT: If you need to specify multiple words for a parameter, use quotes ('). When invoked, it will return a message with available commands (example): Commands available: Response helpers: to create the responses with the right format.
If there is one, this command is called and the result is returned. It parses the payload and verifies if there is some command associated with the message. This framework was built to facilitate the creation of cli-like bots. In a nutshell, the bot receives a JSON payload via an HTTP POST request and should respond it with another JSON, following a defined message format. There are many ways to create a bot for Google Hangouts Chat and one of them is using HTTP endpoints. (You can read more about Google Hangouts Chat below.) This is a framework you can use to build bots for Google Hangouts Chat.