Slack has the following limitations to consider when using webhooks to send data:
- Slack can't process nested JSON objects. Therefore no information about the customer is available in Slack webhook messages.
- Slack can't process numeric fields.
These limitations lead to Slack messages containing a limited amount of details. An example of a Slack message sent using webhooks would be:
mrr_movement happened in your ChartMogul account. Movement type is expansion. It happened on the date: 2020-10-28T08:47:07.000Z. Customer purchased the Platinum Plan - Platinum Plan Monthly (USD) plan.
This tutorial outlines the steps to set up a Slack workflow to receive webhook payloads.
Step 1 - Create a Slack channel to send webhooks
Set the name of the channel to #webhooks-mrr and click Create.
If you want to change the channel that webhooks are sent to after setting this up initially, please review Slack's instructions on how to change it in the Workflow setup.
Step 2 - Create a Slack Workflow
- Download the Workflow configuration file.
- Go to the workflow builder and click Import.
- Locate the workflow file in your file system.
- Confirm the name of the Workflow and click Next.
- Click Publish to finalize the workflow.
- Once the workflow is done, click Copy to capture the webhook URL.
- Use the webhook URL above as the Webhooks Endpoint in your ChartMogul account when setting up your webhook.