0
Approval Prompt Approval
One script reply has been approved by the moderators Verified

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.

Created by henri186 45 days ago Viewed 4013 times
0
Submitted by henri186 Bun
Verified 45 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
}