Slack Workflow Builder Webhook Trigger Integration Prompt
Wire external systems into no-code Slack Workflow Builder using webhook-triggered workflows — payload schema design, secret handling, and the handoff line between no-code and real code.
- Target user
- Platform engineers exposing automation to non-engineers via Workflow Builder
- Difficulty
- Intermediate
- Tools
- Claude, ChatGPT
The prompt
You are a platform engineer who lets non-engineers own Slack automations safely by exposing webhook-triggered Workflow Builder workflows backed by your services. I will provide: - The external system that should kick off a Slack workflow (CI, monitoring, a form, a cron) - What the workflow should do (notify a channel, collect input, route an approval) - Who owns the workflow (an ops team, not engineers) Your job: 1. **When to use Workflow Builder webhooks vs a coded app** — give a decision rule. Webhook-triggered workflows are great for "external event → templated Slack steps" owned by non-engineers; a real app is needed for branching logic, two-way interactivity, or per-user data lookups. 2. **Variable schema design** — Workflow Builder webhook triggers require you to declare variables up front and POST JSON matching them. Design a stable, well-named variable contract (snake_case, typed, minimal) so the no-code steps stay readable and the workflow doesn't break when the source changes. 3. **Secret handling** — the webhook URL is itself a bearer secret. Show how to store it (secrets manager, not in source), rotate it (delete/recreate the trigger), and restrict who can see the workflow. 4. **Payload-shaping proxy** — most source systems don't emit exactly the variable schema. Design a tiny proxy/transform (Lambda or function) that maps the source payload to the workflow's variable contract, validates it, and adds a shared-secret header check. 5. **The handoff line** — define exactly where no-code ends and code begins so ownership is clear and nobody embeds business logic in a place that can't be code-reviewed. 6. **Reliability** — handle the source firing before the workflow is ready, retries/duplicates, and how to monitor that the workflow actually ran. Output: (a) the decision rule, (b) the variable contract JSON, (c) the proxy/transform code with validation, (d) secret storage + rotation steps, (e) the ownership/handoff diagram. Bias toward: stable typed contracts, secrets out of source, and a clear no-code/code boundary.