---
title: "Building Workflows, Part 1 — Core concepts and the Workflow Builder"
description: "incident.io's Workflows feature (\"when X happens, if Y, do Z\") is built as a small, statically typed programming language in Go."
url: "https://swe.quest/articles/building-workflows-part-1-core-concepts-and-the-workflow-builder-afa9deefdc8b5feb"
canonical: "https://incident.io/blog/building-workflows-part-1"
source: "incident.io"
published: "2022-09-14"
difficulty: "medium"
kind: "Case study"
reading_minutes: 18
tags: ["system-design","go","product-engineering","api-design"]
---

# Building Workflows, Part 1 — Core concepts and the Workflow Builder

A post on [incident.io](https://swe.quest/sources/incident-io.md), published 2022-09-14, 18 min read, Case study. Original: [https://incident.io/blog/building-workflows-part-1](https://incident.io/blog/building-workflows-part-1)

## Summary

incident.io's Workflows feature ("when X happens, if Y, do Z") is built as a small, statically typed programming language in Go. Resources act as the type system, steps are functions over resources, triggers build a scope of named references, and the Workflow Builder UI serves as the IDE. Each resource, step and trigger lives in its own file, implements a narrow interface and registers itself. Reflection-backed operation methods on filterable resources let the backend type-check conditions and drive dynamic form generation in the frontend through an HTTP API.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [System design](https://swe.quest/tags/system-design.md) (Architecture & design)
- [Go](https://swe.quest/tags/go.md) (Languages)
- [Product engineering](https://swe.quest/tags/product-engineering.md) (Engineering organization)
- [API design](https://swe.quest/tags/api-design.md) (Backend & APIs)

## Prerequisites

- Go interfaces ([easy posts on Go](https://swe.quest/tags/go.md?difficulty=easy))
- REST APIs ([easy posts on API design](https://swe.quest/tags/api-design.md?difficulty=easy))
- basic type systems ([easy posts on Type systems](https://swe.quest/tags/type-systems.md?difficulty=easy))

## Keywords

incident.io, Workflow Builder, Go, PagerDuty, Slack

## Related posts

- [Ready, steady, goa: our API setup](https://swe.quest/articles/ready-steady-goa-our-api-setup-f9a8a900b508af76.md): incident.io · 2025-08-11 · Medium · 10 min read · API design, Go, TypeScript, Developer productivity
  incident.io defines its HTTP API in Goa's design-first DSL, which generates net/http transport handlers, validation code, typed Go service interfaces, OpenAPI 3.0 specs and Go clients.
- [Building a great developer experience at a startup](https://swe.quest/articles/building-a-great-developer-experience-at-a-startup-9f652c5e6c2db88a.md): incident.io · 2022-10-04 · Medium · 8 min read · Developer productivity, Go, TypeScript, Observability, CI/CD
  incident.io treats developer experience as leverage for sustaining engineering pace without accruing technical or product debt.
- [Building Workflows, Part 2 – the executor and evaluation](https://swe.quest/articles/building-workflows-part-2-the-executor-and-evaluation-b966efc6ca5866f8.md): incident.io · 2022-09-14 · Medium · 19 min read · PostgreSQL, Scheduling, Queues & messaging, System design, Go
  incident.io's workflow executor listens for trigger events, evaluates workflow conditions against a scope, and creates a workflow run before executing steps.
- [How Zillow runs 100 million daily notifications on AWS Step Functions](https://swe.quest/articles/how-zillow-runs-100-million-daily-notifications-on-aws-step-functions-43ac4ec68597baa8.md): AWS Architecture Blog · 2026-11-11 · Medium · 15 min read · Serverless, Communications, System design, Cloud platforms, Configuration management
  Zillow replaced more than 10 per-campaign notification generator services with a configuration-driven Campaign Orchestrator that runs each of 100M+ daily email and push notifications as a short-lived AWS Step Functions Express Workflow, calling a shared library of stateless, schema-driven content modules (the Universal Content Generator) via HTTP Invoke.
- [Build custom API integrations with incident.io](https://swe.quest/articles/build-custom-api-integrations-with-incident-io-ae5fbcbf065c8d25.md): incident.io · 2022-04-25 · Medium · 7 min read · API design, Incidents & postmortems
  incident.io launched a public API focused on three use cases: creating incidents automatically from other systems, exporting incidents and their actions and follow-ups to BI tools, and configuring roles, severities and custom fields from external sources such as Terraform.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
