Skip to main content
Live. This area is documented as current, user-reliable behavior.

Goal

Pick the right target for a rule and fill in its fields.

Prerequisites

  • A rule in progress.

Workflow

1
In the rule panel, pick a target kind.
2
Fill in its fields.
3
Save, then use Send a test event.

Webhook

Pick a destination from Destinations, or Add a destination with its HTTPS URL. StackShift posts the event with a StackShift-Signature header; see Verify webhook signatures. The URL must be public HTTPS; StackShift follows up to 3 redirects and waits up to 10 seconds. A 2xx answer is success.

Function

Pick the project and the function, for example api/resize.ts. The function receives the event envelope. In JavaScript and Go, wrap the handler with onEvent so it only runs for matching types.
api/resize.ts

Job or queue

  • Add a job to a queue: pick one of your durable queues and the job name. The job payload is the envelope.
  • Wake a waiting job: give the event name a Durable Job is waiting for with waitForEvent, and Match on the field that holds the correlation key (subject.id by default; also id, type, project_id, or a path under subject., data. or actor.).
  • Both are for personal rules. Queue names starting with _ are reserved.

Agent or Stackie

  • One of your agents: wakes a hosted agent with a platform.event input.
  • Stackie: starts a Stackie task. Use What should it look into? to say what to do, up to 2,000 characters. By default Stackie investigates and proposes fixes for you to approve; it does not change anything by itself.

Slack, email, in-app

Choose In the dashboard, Email, Slack, or several, and an optional title. Team rules notify the team’s Owners and Admins. Slack must be connected in notification settings.

Automation

Starts a run of one of your automations, with the event as the run input. An automation can also have its own event trigger; see Automations.

Expected result

Matching events reach the target, and each attempt is listed in Deliveries.

Verify webhook signatures

Every webhook is signed with HMAC-SHA256 of the timestamp and raw body. Verify it with the SDK for JavaScript, Python, Go, Ruby or PHP.

Automations overview

An automation is a trigger plus steps that run by themselves: on an event, on a schedule, from a webhook URL, or when you press Run.

Durable Jobs overview

Durable Jobs is the reliable execution engine for backend work on StackShift. Deploy the app. Offload the work.