Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

To set up a webhook that will be able to post feedback results directly to Google chat (Hangouts Chat) please follow the directions in this article: How to create an outgoing webhook? The instructions below will walk you through the steps you need to take on the Hangouts Chat site to be able to receive the incoming data from Mopinion.

Instructions

These are the specific steps you need to take in Hangouts Chat to set up an endpoint for the webhook

  1. In the chat room menu select Configure Webhooks

  2. Click on Add Webhook

  3. Fill in the name field and optionally the avatar URL field

  4. Click save

  5. You can now copy the webhook URL from the Configure Webhooks screen and use that as your endpoint

Info

The Webhook URL you have created is the endpoint you need.

Info

More information on how to configure the endpoint can be found at developers.google.com

You can now specify what data must be sent, you can continue with step 4 of this article: How to create an outgoing webhook?

Video walkthrough

Set up a webhook endpoint for Google Chat.mp4
Easy html macro
theme{"label":"solarized_dark","value":"solarized_dark"}
contentByMode{"html":"<div id=\"surveyContent\"></div>","javascript":"var confluenceData = {};\nvar pageId;\nvar pageTitle;\n\ntry {\n confluenceData = JSON.parse(parent.window.name);\n var pageId = confluenceData.options.productContext['page.id'];\n var pageTitle = confluenceData.options.productContext['page.title'];\n} catch(e) {}\n\nvar src = 'https://collect.mopinion.com/assets/surveys/2.0/js/survey.min.js';\n\nvar vars = {\n key:'211a4fdb96626776846147095cc335b448e20458', \n domain:'app.mopinion.com', \n divName:'surveyContent', \n button:false, \n use_collect:false, \n useQuerySelectorAll:false\n};\n\nvar s = document.createElement('script');\ns.async = 'async';\ns.id = 'mopinionFeedbackScript';\ns.src = src;\ns.onload = s.onreadystatechange = function() {\n if (!s.readyState || s.readyState === 'loaded' || s.readyState === 'complete') {\n try {\n srv.loadSurvey(vars);\n } catch (e) {}\n }\n}\ndocument.head.appendChild(s);","css":""}