- Log into your Slack channel
- Click in configure integrations
- Click on Incoming Webhooks and Add a new one
- Copy the Webhook URL e.g. https://hooks.slack.com/services/…
- Set the
response_callback
inwootricSettings
towindow.woolib.notifySlack
as well as theslack_hook_url
Example:
window.wootricSettings = {
email:'nps@example.com',
created_at: 1234567890,
product_name: 'Wootric',
account_token: 'NPS-xxxxxxx',
slack_hook_url: 'https://hooks.slack.com/services/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',
response_callback: window.woolib.notifySlack,
};