Event-Driven Automation with StackStorm and Rundeck Prompt
Architect an event-driven automation system where webhooks, alerts, and platform events trigger sensors → rules → actions, with idempotency, deduplication, and safe-by-default execution in StackStorm, Rundeck, or a webhook router.
- Target user
- Automation and platform engineers wiring event-to-action pipelines
- Difficulty
- Intermediate
- Tools
- Claude, ChatGPT
The prompt
You are an automation architect who has run StackStorm and Rundeck in production and knows that the hard part of event-driven automation is not triggering actions — it is not triggering the wrong action twice. Design a pipeline that turns events into reliable, idempotent, auditable actions. I will provide: - The event sources we want (alert webhooks, cloud events, CI hooks, chat commands) - Our platform (StackStorm, Rundeck, or a custom webhook router) - Target actions (scale, restart, ticket creation, enrichment, notifications) - Existing auth/secrets setup - Volume and burst characteristics of the events Your tasks: 1. **Sensor/trigger design** — how each event source is ingested, authenticated, and validated. Reject unsigned or malformed payloads at the door. 2. **Rule mapping** — the criteria that route an event to an action pack; how you keep rules readable and testable. 3. **Idempotency and dedup** — derive a stable event key; ensure a redelivered webhook does not double-execute. Specify the dedup window and store. 4. **Action safety tiers** — read-only enrichment actions run freely; mutating actions require guardrails (rate limit, dry-run flag, approval for high-impact). 5. **Failure handling** — retries with backoff, poison-event handling, and what happens when a downstream API is down. 6. **Observability** — correlation IDs from event → rule → action → result; how an operator traces "why did this run?" Output as: (a) the event ingestion + validation flow, (b) one full example: webhook → sensor → rule → action with idempotency key, (c) the action safety-tier table, (d) retry/dedup/poison-handling config, (e) the audit/trace model. Anti-patterns to reject: trusting unauthenticated webhooks, at-least-once delivery without idempotency, mutating actions with no rate limit, and rules so clever no one can predict what fires.
Run this prompt with AI
Test it, get an AI-improved version, or compare models — live in the Prompt Workspace. No copy-paste.
Related prompts
-
Webhook Ingest Async Queue Decoupling Design Prompt
Design a webhook ingest tier that acknowledges deliveries fast, persists the raw payload to a durable queue, and processes automation work asynchronously so slow downstream logic never causes sender retries or lost events.
-
Event Trigger Debounce and Coalescing Design Prompt
Design debouncing and coalescing for an event-driven automation trigger so a burst of near-identical events (config saves, file writes, webhook floods, chatty change streams) collapses into one bounded run instead of firing the expensive downstream job dozens of times.
-
Outbound Webhook Dispatcher with Backoff Design Prompt
Design the sender side of a webhook system — a dispatcher that delivers events to customer endpoints with bounded retries, exponential backoff with jitter, per-endpoint circuit breaking, and a dead-letter path — so a slow or flapping receiver cannot cause a retry storm or unbounded queue growth.
-
StackStorm Sensor Event Detection Design Prompt
Design a StackStorm sensor that detects external events reliably — tracking what it has already seen, recovering missed events on restart, and emitting clean triggers so rules don't fire twice or miss events.
More Automation prompts & error guides
Browse every Automation prompt and troubleshooting guide in one place.
Reading prompts? Get all 500 in one free PDF
500 battle-tested, copy-paste AI prompts engineered by a senior systems engineer — every one with fill-in placeholders and safety/back-out notes. Drop your email and it's yours.
- 500 prompts: Linux · Kubernetes · Terraform · OpenStack · GitLab · Docker · Monitoring · Incident Response
- Instant PDF download — yours free, forever
- Plus one practical AI-workflow email a week (no spam)
Single opt-in · unsubscribe anytime · no spam.