Temporal human approval workflows

Approval steps in Temporal pause a workflow until a person answers, so the decision, the approver and the reason must be recorded durably. This page covers the design, the options and what to confirm before building.

On this page

Temporal human approval workflows: when a person must decide before the process continues

A process that stops until a manager, compliance reviewer or approver decides is one of the most common workflows teams build on Temporal. The workflow starts, performs its earlier steps, then waits for a human decision that may arrive in minutes or weeks. Temporal supports this through signals, which are messages sent to a running workflow from outside. The approver's decision arrives as a signal, the workflow resumes, and the workflow history holds the record of what happened. Because workflow state is durable, a worker restart or deployment does not lose the pending approval. Within the workflow design patterns group, this page covers the case where the wait is for a person, while the polling and entity workflow pages cover waits for systems and long-lived business objects.

The signal payload should carry the decision itself, the approver's identity and the reason, so the workflow history becomes the audit trail for that step. Teams should decide who is allowed to send the approval signal and verify that claim inside the workflow or at the calling service, because a self-hosted Temporal cluster with no Authorizer configured accepts every API request. Confirm with your security team how approver identity will be asserted (for example, from your SSO provider) before the signal contract is fixed. Escalation and timeouts also belong in the design from the start: a workflow that waits without a deadline can stay open indefinitely if nobody answers. Check the timer and reminder behavior your team needs against the Temporal documentation for the SDK you use.

Choose Temporal over a ticketing or BPM tool when the approval is one step in a code-driven process that must call systems, retry safely and survive failures, and when engineers will own the logic. A ticketing tool fits when non-developers need to design and change the routing, and a BPM engine fits when the organization already runs a standardized process platform. Before building, ask the people who will audit approvals which fields they need, how long records must be kept, and whether the Temporal history alone satisfies them. For self-hosted deployments, the visibility store and access controls also determine who can later find and inspect those approvals.

How the approval request, decision and escalation paths connect

The workflow starts from the requesting application, runs a notification activity to reach the first approver, then waits on a decision signal with a timer. An approve or reject signal sends the workflow down its branch and completes it. If the timer fires first, the workflow escalates to a second approver and waits again. Check that the signal carries the approver identity and reason, and that the approver's client reaches the Temporal Frontend only through the trusted boundary.

Approval request, decision signal and timeout escalation paths in one workflow.

Which waiting and escalation options fit which approval

This table compares the main ways a Temporal workflow can wait for a person, escalate when nobody answers, and accept a decision. Read each row for the approval situation it suits, the workflow complexity it adds, and the tests that prove it behaves correctly before go-live.

OptionFits whenComplexity costWhat to test
Single signal with a deadlineOne named approver or one owning team decides, and a missed answer can simply end or reroute the requestLow. The workflow waits on one signal and one timer, and the signal handler must validate the approver and reasonDecision arrives before the deadline, late signals after close are ignored safely, and the timeout path is taken when no one answers
Timer-driven escalation chainApprovals must move up a defined chain of owners after set intervals, such as manager then risk ownerMedium. Each level needs its own timer, a way to cancel the timer on decision, and rules for who can act at each levelEach escalation level fires once, a decision at any level cancels the remaining timers, and reassignment is recorded in history
Quorum or multi-approver signalsPolicy requires several independent approvals, for example two of three reviewers, before the workflow proceedsMedium to high. The workflow must count distinct approvers, reject duplicates, and decide what a tie or a rejection meansDuplicate approvals from one person are counted once, a single rejection follows the defined rule, and the workflow reaches a decision when some approvers never respond
Update-based decision APIThe requester or a case tool needs a synchronous answer about whether a decision was accepted, or needs to inspect pending stateMedium to high. Update validators must reject invalid decisions without changing state, and callers must handle the resultValidators reject decisions from unauthorized identities or after closure, and the caller receives the accepted or rejected result
Escalation with human fallbackTimeouts route to a queue or administrator rather than auto-approving, because the business risk of a silent default is highMedium. Requires a defined fallback owner and an audit trail for every reassignmentConfirm no path auto-approves on timeout, and check that the fallback owner receives the task and can decide

How to build and test an approval workflow in Temporal

This sequence takes an approval step from a written decision model to a tested workflow that waits for a person, handles silence through timeouts and escalation, and can be audited in the Web UI and event history. Each step ends with a check you can run before moving on.

  1. Define the decision and signal schema

    Before writing workflow code, the team that owns the approval process (not the engineers alone) writes down the possible decisions, the fields each one must carry, and who may send them. The schema should include the decision value, the approver identity as the system of record sees it, a free-text reason, and a request identifier so a decision can be matched to one specific request. Store the schema in the same repository as the workflow so reviews cover both. The step is done when a reviewer can read the schema and say which signal payload a given approval will produce, and when the team agrees which states (pending, approved, rejected, escalated, expired) the workflow can end in.

  2. Implement the notification activity with retries

    Sending the request to an approver (an email, chat message or ticket) belongs in an activity, not in workflow code, because it touches an external system that can fail. Give the activity a retry policy that fits the notification channel, and mark errors that will never succeed, such as an invalid recipient address, as non-retryable so they surface quickly. Make the activity idempotent by passing the request identifier to the downstream system so a retry does not send the approver two requests. The step is done when a test run against a sandbox channel delivers one message, a forced failure is retried as configured, and a permanent failure stops the activity with a clear error in the workflow history.

  3. Write the wait with timeout and escalation

    The workflow waits for the decision signal with a timeout, using a condition that checks for a decision or the timer to expire. If the timer fires with no decision, the workflow runs a second notification activity to an escalation recipient defined by the approval policy, then waits again. The number of escalation levels and the wait periods come from your own policy, not from Temporal defaults, so confirm them with the business owner before coding. Record the final state explicitly so that expiry is a decision outcome rather than a silent stop. The step is done when a test run with the timer shortened in a test environment moves from pending to escalated to expired, and each transition is visible in the history.

  4. Add the approver identity check

    A signal is only as trustworthy as the identity behind it, so the workflow must not accept a decision from just any caller. Validate in the workflow or in the component that sends the signal that the approver is on the list of eligible approvers for this request, and reject signals from anyone else. Where your platform uses authorization, confirm how the identity reaches the signal (through your application layer or an authenticated API) and what the Temporal server itself enforces. Self-hosted Temporal with no Authorizer configured allows every API request, so the access control in front of the signal path is your responsibility to confirm. The step is done when a test with an ineligible identity produces a rejected signal and no state change, and an eligible identity produces one recorded decision with its reason.

  5. Test timeouts and duplicate signals

    Use the Temporal test environment and its time-skipping support to exercise the cases that cause real approval incidents: no response before expiry, a decision arriving just after escalation, two approvers answering the same request, and the same signal delivered twice. For duplicates, the workflow should keep the first valid decision and ignore later ones, recording the ignored attempt if your audit needs it. Replay tests should also confirm that changing the wait logic does not break running approvals. The step is done when every case has a named test, the tests pass in continuous integration, and a replay of recorded histories from a previous version completes without a non-determinism error.

  6. Verify the approval in the Web UI and history

    Run the workflow end to end in a non-production namespace, then check the Web UI and the event history for each approval. The history should show the notification activities, the timer events, the signal with its payload, and the final result, and a reviewer should be able to answer who approved, when, and why without reading code. Confirm that the workflow search attributes you rely on for finding pending approvals are populated, and confirm with your platform team what visibility store backs the search in your deployment. The step is done when an auditor-style walkthrough of three test approvals (approved, rejected and expired) can be completed from the Web UI alone, and the screenshots and history exports are saved with the test record.

Securing approver identity and decisions in self-hosted Temporal

An approval step is only as trustworthy as the signal that records the decision. In self-hosted Temporal, the controls below decide who can send that signal, how traffic is protected, and whether reasons containing personal data stay readable only to authorized staff. Work through them together before any approver reaches production.

Default authorizer allows every request

If no Authorizer is configured, self-hosted Temporal uses the default noopAuthorizer, which allows every API request with no authentication or access control. Any client that can reach the frontend could send an approval or rejection signal as someone else. Confirm the Authorizer is set before the first approval workflow runs, and test that an unauthorized caller is refused.

Self-hosted security docs

Map approver claims to namespace roles

Approval signals should only be accepted from identities holding the right namespace role. A ClaimMapper translates JWT or certificate claims into roles that the Authorizer evaluates. Decide which group claim marks an approver, which role may send signals, and which role may only read history. Document the mapping so reviewers can trace why a given approver was allowed to decide.

Authorizer plugin for signal permissions

The Authorizer plugin is where signal permissions are enforced against the roles the ClaimMapper produces. Write rules that restrict decision signals to the approver role for the specific namespace and task queue, and keep administrative actions separate. Ask your Temporal engineers to show a test where a requester, who must not approve their own request, is denied.

Mutual TLS between services

Self-hosted Temporal supports mTLS with separate settings for internode traffic and frontend traffic. Internode mTLS protects communication between Temporal services, while frontend mTLS protects clients such as workers and API callers. Plan certificate issuance, rotation and revocation for both, since an expired certificate can stop approvals from being delivered.

OIDC single sign-on for the Web UI

Approvers and reviewers often inspect workflow state in the Web UI, so that access needs the same identity controls as the signal path. Self-hosted Temporal supports OIDC single sign-on for the Web UI. Connect it to your existing identity provider, confirm that offboarded staff lose access, and check that the UI roles match the namespace roles used for signals.

Encrypt reasons that contain personal data

Approval reasons often include names, account details or case notes, which then persist in workflow history. Payload encryption through a custom codec, served by a codec server, keeps that data unreadable in storage and in the Web UI for users without the key. Decide which fields are sensitive, who holds the keys, and how the codec server is protected.

Keep Temporal services off the public internet

The Temporal deployment docs say services should run on hosts not reachable from the public internet, with network access restricted to trusted internal networks. Place the frontend, persistence and visibility stores behind private addresses, and expose only the paths that approver clients need. Verify this from outside your network, not just from the configuration file.

Self-hosted deployment docs

Questions buyers ask before building approvals on Temporal

What drives the cost of a Temporal approval workflow build?

The main driver is how many approval paths exist and how many systems they touch. Each approval type needs a workflow definition, a signal contract for the decision, an identity lookup for approvers, notification delivery, escalation rules and tests that replay the path. Costs split into one-time build work, recurring infrastructure and, if you use a partner, the fixed-scope engagement agreed in writing before work starts. Ask any quote to itemize approval types, integrations, notification channels, environments and whether testing and handover documentation are included.

How long does it take to build human approval steps on Temporal?

Duration depends on the number of approval paths, the depth of integration with your identity and ticketing systems, and whether a Temporal environment already exists. A single approval type on an existing cluster is far smaller than a multi-tier, multi-system process on a new deployment. Ask for a timeline tied to written milestones: design of signals and approver model, build, failure-path testing including timeouts, and a production cutover plan. No timeline should be accepted without a written scope behind it.

What does our team need to provide for approvals to work?

Three inputs decide most of the effort. First, identity: approvers must map to stable user IDs, group membership and manager relationships from your directory or SSO provider. Second, notification channels: email, chat or ticketing endpoints, with credentials kept in your secrets store. Third, policy owners: named people who define who may approve what, the reason codes that must be recorded, and the escalation and timeout rules. Without these owners, engineers end up guessing approval policy, which is the most common source of rework.

Can our internal engineering team build approvals on Temporal without a partner?

Yes, if the team already knows Temporal's workflow and signal model and can run a self-hosted or cloud service with on-call support. The harder parts are rarely the workflow code. They are approver identity checks, authorization of who may send a decision signal, audit records of approver and reason, and tests for timeouts and duplicate decisions. Assess your team against those specifics. A partner is most useful when security review, compliance evidence or an unfamiliar Temporal deployment model adds time to the internal plan.

How do self-hosted and Temporal Cloud costs compare?

Self-hosted Temporal has no license fee for the server, which is published under the MIT license, so your costs are infrastructure, database and visibility store, staff time for upgrades and on-call, and the security controls you configure. Temporal Cloud is priced by usage and support tier. Its pay-as-you-go pricing starts at 50 US dollars per million actions, with active storage at 0.042 dollars per GB-hour and retained storage at 0.00105 dollars per GB-hour, according to Temporal's pricing page. Support add-ons start with Business at 500 US dollars per month, while Enterprise and Mission Critical are quoted by sales. Approval workflows spend most of their life waiting, so storage and retention can matter as much as action counts. Model both options against your expected volume and retention.

How are escalation rules changed after the workflow is live?

Escalation rules should be data, such as approver chains and timeout durations, rather than hard-coded branches, so policy changes do not require workflow code changes. Workflows already running keep the version they started with, so you need a versioning plan: new executions use new rules, while in-flight approvals either finish under old rules or are migrated deliberately. Plan a change process with policy owners signing off, a test that replays affected executions, and a record of which rule version applied to each decision for audit.

Who is allowed to send an approval decision, and how is that enforced?

Only the named approver or an authorized delegate should be able to send a decision. A self-hosted deployment without an Authorizer configured uses a default no-authentication authorizer that allows every API request, so access control must be configured before approvals carry real decisions. Temporal supports a ClaimMapper that maps JWT or certificate claims to namespace roles and an Authorizer plugin. Your design should check approver identity in the signal path or a gateway in front of it, and record the approver ID and reason in the workflow history for audit.

How DeployOpen scopes and delivers approval workflows

DeployOpen plans, builds, tests, documents and supports Temporal human approval workflows inside infrastructure you control, including the self-hosted Temporal Service and its workers. Engagements are fixed-scope, with the scope, deliverables and timelines agreed in writing before work starts.

How we scope

  • Map each approval step, approver group, decision options and the data an approver must see
  • Agree how signals carry the decision, approver identity and reason, and how escalation and timeouts behave
  • Write down the deployment target, identity provider, namespace layout and who owns each approval queue

How we build

  • Implement the approval workflow with signals, timers and validated decision payloads under your SDK of choice
  • Configure escalation paths and timeout handling, then test workflows that receive late, duplicate or missing decisions
  • Test replay and versioning of the approval code so in-flight approvals survive later changes

How we hand over

  • Deliver the workflow code, configuration, deployment manifests and a runbook for approvers and operators
  • Document the approval audit trail, what is stored in workflow history and how payload encryption is applied
  • Walk your engineers through testing, upgrades and how to add a new approval step safely

How we support

  • Offer ongoing support, upgrades and continuous testing for approval workflows as a retainer
  • Plan Temporal Server upgrades one minor version at a time with your team, including schema steps
  • Retest approval paths after changes to identity, roles, escalation rules or Temporal versions

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.