Quick overview
This workflow receives signed webhook events from ShowBits, posts clips in review to a Slack channel with an approve/send-back prompt, and then records the decision back in ShowBits while reporting the outcome in Slack.
How it works
- Receives a POST webhook from ShowBits and verifies the HMAC signature, event freshness (5 minutes), and event payload before immediately acknowledging or rejecting the request.
- Deduplicates events by event ID to prevent reprocessing repeated deliveries.
- When an episode is analysed, fetches up to 200 clips in review for that episode from the ShowBits Automation API; when a clip is submitted or forwarded, targets the single clip from the event.
- Processes clips one at a time with a short delay, retrieves the latest clip details from ShowBits, and skips asking if the clip is no longer in review.
- Builds a Slack review message (title, approval step, metadata, caption, hashtags, and a link to ShowBits) and uploads the clip video file to Slack when available.
- Sends a double-confirmation approval request to Slack that waits up to the configured time for an Approve or Send back response.
- Posts the selected decision back to ShowBits at the displayed approval stage and publishes a short status message to Slack (including timeouts or API errors).
Setup
- In ShowBits, create an automation connection and a webhook for the events
episode.analysed, clip.submitted, and clip.forwarded, using the workflow’s production webhook URL.
- Create an n8n HTTP Header Auth credential for ShowBits (Authorization:
Bearer ...) and use it for the ShowBits API requests.
- Create an n8n Crypto credential containing the ShowBits webhook secret used to validate the
ShowBits-Signature header.
- Add Slack bot credentials with permission to post messages and upload files, invite the bot to the target channel, and set the Slack channel ID in the workflow configuration.
- Adjust the approval wait time (
waitHours) if needed and publish the workflow.