Versions Compared

Key

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

...

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

  1. Create a Slack app

  2. Enable Incoming Webhooks from the settings page

  3. After the settings page refreshes, click Add New Webhook to Workspace

  4. Pick a channel that the app will post to, then click Authorize

  5. Use the Webhook URL to post messages to Slack

Info

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

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

Prerequisites to be done in Slack

Create a Slack app on https://api.slack.com/apps?new_app=1

In this example, we use the option to start From scratch.

...

Give your app for this Mopinion integration a (A) name and (B) set the workspace it is allowed to send feedback data to.

...

Give the app the Incoming Webhooks functionality.

...

Turn on the toggle Activate Incoming Webhooks.

...

Select Add New Webhook to Workspace.

...

Select a channel where you want the feedback to be posted to.

...

Copy the Webhook URL

...

In Mopinion, you use the part after https://hooks.slack.com/services/ for the endpoint. E.g. https://hooks.slack.com/services/ABC/123/XYZ.

...

...

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":""}