Hi, I just wanted to check on how to integrate a DATO CMS webhook with a slack app or slack webflow. Do we need to use Zapier? If we do need to use Zapier, I donât see an established app for DATO, do we use the âGet Slack notifications for new information from a Webhookâ option on Zapier? Weâre wanting notifications each time someone unpublishes an article without alerting the developers first, so we can stay in the loop in case we need to put in redirects for said unpublished article.
Hello @webguys and welcome to the community!
As you said, the âGet Slack notifications for new information from a Webhookâ would indeed be the way to do it, as we donât have a direct integration with Zapier at the moment.
Simply by creating a webhook that is triggered on an âUnpublishâ event, you can set up a notification system that can notify through slack when it happens, on what record it happened, and several other pieces of information of the event that will be carried by the webhook payload.
Hi,
I have the webhook sending messages to our slack, but need help with the query to bring our key/values dynamically such as âtitleâ and âurlâ. Could you help suggest proper way to set up our payload?
Sure!
You can build a custom payload using this syntax: General concepts - Webhooks - DatoCMS Docs
If youâd like, you can send us over an email at support@datocms.com with how when youâd like a webhook to be triggered, on what model, and on what information youâd like the payload to contain and we can try and create a webhook example to send it over to you ![]()