Approvals
AI-generatedSummary
Create and submit an approval request of a specified type (Order, LinkedIn Post, or Gmail Reply) with related assets stored in a MinIO bucket and generate presigned URLs for these assets for external access.
Inputs
- approvalType (required) — Select the type of approval to create: Order, LinkedIn Post, or Gmail Reply.
- title (required) — Provide a short title identifying the approval, e.g. "Order BR-2025-1042".
- bucketName (required) — Choose the MinIO bucket (approvals, documents, or workflows) where associated files will be stored.
- keyPrefix — Specify the S3/MinIO path prefix used for object keys; final keys include prefix, role, and filename.
- expirySeconds — Set the validity duration for presigned URLs granting access to stored assets.
- sourceEmailHtmlProp — Binary property name containing the source (customer) email HTML (applicable for Order and Gmail Reply approvals).
- sourceEmailAttachmentProp — Binary property name for a single optional attachment from the source email (Order approvals only).
- draftEmailHtmlProp — Binary property name containing the draft reply email HTML (Order and Gmail Reply approvals).
- orderConfirmationProp — Binary property name for the draft order confirmation PDF (Order approvals only).
- orderSummaryHtmlProp — Binary property name containing the order summary HTML (Order approvals only).
- linkedinInputTextProp — Binary property name containing input text used by AI to generate the LinkedIn post (LinkedIn Post approvals only).
- linkedinOutputPostProp — Binary property name containing the generated LinkedIn post HTML (LinkedIn Post approvals only).
- gmailSourceEmailHtmlProp — Binary property name containing the source email HTML for Gmail Reply approvals.
- gmailDraftEmailHtmlProp — Binary property name containing the draft reply email HTML for Gmail Reply approvals.
- includeOtherAttachments — Flag to include all other binary properties as additional source attachments (Order approvals only).
- previewFrom — Reply email sender address preview (Order approvals only).
- previewTo — Reply email recipient address preview (Order approvals only).
- previewSubject — Reply email subject preview (Order approvals only).
- previewDate — Reply email date preview, defaults to current date/time if not set (Order approvals only).
- gmailMailId — The Gmail message ID (Gmail Reply approvals only).
- gmailPreviewDate — Date of the Gmail message for preview (Gmail Reply approvals only).
Output shape
a list with one item per input; each item is a JSON object reflecting the approval data submitted and responded from the external Workflow Reporter API.
Each output item contains the server response JSON under the 'json' property and pairs with the corresponding input item. On failure, workflow continues with an error message if 'Continue On Fail' is enabled; otherwise, the node throws an error. Requires MinIO API credentials. Uploaded assets are stored in the specified MinIO bucket under paths composed of the key prefix, role, and filename, and accessible via generated presigned URLs expiring per configuration.