JustPaid Workflows
Blocks

Approval Block

Pause workflow execution for human approval before continuing

The Approval block implements human-in-the-loop workflows. It pauses execution and waits for a human to approve or reject before the workflow continues. Use it for high-value transactions, sensitive operations, or compliance-required review steps.

Configuration

OptionTypeDescription
titlestringTitle displayed in the approval request
descriptionstringDetails about what is being approved (supports template variables)
notifyChannelstringSlack channel to post the approval request
approversarrayList of users who can approve
timeoutHoursnumberAuto-reject after this many hours (optional)

How It Works

  1. The workflow reaches the Approval block and pauses execution
  2. A notification is sent to the configured channel with approve/reject buttons
  3. An authorized approver clicks Approve or Reject
  4. The workflow resumes along the approved or rejected path

Outputs

OutputTypeDescription
approvedbooleanWhether the request was approved
approvedBystringName/email of the approver
approvedAtstringTimestamp of the approval decision
commentstringOptional comment from the approver

Example Patterns

High-Value Invoice Approval

Stripe (create invoice) -> Condition (amount > $5,000?)
    -> True: Approval (finance manager review)
        -> Approved: Stripe (finalize and send)
        -> Rejected: Slack (notify requester)
    -> False: Stripe (finalize and send)

Discount Authorization

HubSpot (deal with discount) -> Condition (discount > 20%?)
    -> True: Approval (VP Sales review)
        -> Approved: Stripe (create invoice with discount)
        -> Rejected: Slack (notify sales rep)

Best Practices

  • Set timeouts for time-sensitive workflows. A 48-hour timeout prevents workflows from hanging indefinitely when approvers are unavailable.
  • Include context in the description. Use template variables to show the approver exactly what they are approving: amounts, customer names, and relevant details.
  • Notify via Slack for fast response. Approval requests sent to Slack channels get faster responses than email notifications.

Frequently Asked Questions

On this page