Ujex Approvals

Pause for a human approval decision in Ujex.

Ujex Approvals

AI-generated

Summary

Pauses the workflow until a human approves or denies a request via Ujex, with an optional timeout.

Inputs

  • Prompt (required) — The question or statement to display to the approver.
  • Detail — Additional context or description for the approval request.
  • TTL (seconds) — The time in seconds to wait before auto-denying the request (default: 1800).
  • Poll Interval (seconds) — The interval in seconds to poll the Ujex service for a decision (default: 5).

Output shape

A single output item for each input item, appended with approval metadata.

If the timeout expires, the status is set to 'expired'. The operation returns the approval ID and the final status ('approved', 'denied', or 'expired').

Examples

Example 1: Request approval for a specific action with a 30-minute timeout.

Prompt: 'Approve deployment?', Detail: 'Deploying to production environment', TTL: 1800

Example 2: Fast polling for a decision with a 5-minute limit.

Prompt: 'Review this data?', Detail: 'Check attached report', TTL: 300, Poll Interval: 2

Links

Discussion