0

Approval Prompt

by
Published Mar 15, 2024

A prompt is simply an approval step that can be self-approved. To do this, include the resume url in the returned payload of the step. The UX will automatically adapt and show the prompt to the operator when running the flow.

Scriptยท approval windmill Verified

The script

Submitted by henri186 Bun
Verified 406 days ago
1
import * as wmill from "windmill-client"
2
        
3
export async function main() {
4
    const resumeUrls = await wmill.getResumeUrls("approver1")
5

6
    return {
7
        resume: resumeUrls['resume'],
8
        default_args: {}, // optional
9
        enums: {} // optional
10
    }
11
}