Approval Processes¶
An approval process defines who reviews a request, how they are notified, and which rules determine the approval route. Create and publish the process in Approvals, then select it in the Human Approval node of each workflow that uses it. The workflow pauses at the node while the request is reviewed and resumes when the required outcome is received.
Create and publish an approval process¶
- In AI Agent Studio, open Approvals and select Add. In Create approval process, enter the Name and Description. Studio populates Code from the name. Select Create.
- In Approvals Process Settings, under Notifications, select at least one notification channel.
- Under Payloads, select Add for each field the workflow supplies to the process. In New Parameter, enter Name, set Type to Text, Number, or Date, and select Save field. Use field names and types that match the values passed by the workflow.
- In Approval levels, edit New Level. Enter a Title and optionally a Description. Under Approver Strategy, set Approver Type and configure the corresponding fields. Select Add Level to add another level.
- For a conditional level, under Rules, select Condition and set Field, Operator, and Value. Close the condition editor after entering the value. A level without conditions applies to every request that reaches it.
- Select Publish in the toolbar. The process becomes available in the Approval Process list in a Human Approval node.
Notification channels¶
| Channel | Description |
|---|---|
| Sends approval notifications by email. Select the registered approver account in Email account. | |
| SMS | Sends approval notifications by text message. |
| App Push | Sends approval notifications as app push notifications. |
| Bell Notification | Shows approval notifications in the Fusion Applications notification bell. |
Register an email account under Credentials → Email Accounts with the Approver designation. See Email account setup.
Approver types¶
| Approver type | Configuration |
|---|---|
| Users | Select one or more named approvers in Users. |
| Representative | Select the applicable Representative Type to route the request to a representative. |
| Manager Chain | Set Start With to Employee or Manager. In Approval chain of, select Requestor or User Selected At Runtime. Set Number of Levels and select a Manager Type, such as Line manager. |
Use the process in a workflow¶
- In Workflows, edit the workflow and add a Human Approval node before the action that needs review.
- Set Channel to Approval Process and select the published process.
- Set Approval Rule JSON Payload to an object whose keys and value types match the process payload fields. Map the values from workflow inputs or upstream node outputs.
- Configure the Timeout Unit, Timeout After, and Error Handler for the review. If reviewers can request changes, enable feedback, select the Loop Back Node, and set Maximum Iterations.
- Use the process defaults for the review subject and message, or override them in the node.
- Route approved requests to the next business action and route rejected, timed-out, or failed requests away from it. Test the paths with a test approver before publishing the workflow.
See the Human Approval node configuration and approval and feedback routing.
Purchase request example¶
Create a process named Purchase Request Review and select Bell Notification. Define the two payload fields below.
| Field | Type | Value supplied by the workflow |
|---|---|---|
requestId |
Text | Identifier of the purchase request to review |
amountUsd |
Number | Total in USD read from the purchasing system |
Configure the routing rule¶
- Set the first level's Title to Purchasing Review. Set Approver Type to Users and select a purchasing reviewer. Leave Rules empty so this level applies to every request sent to the process.
- Select Add Level and enter Manager Review in Title. Set Approver Type to Manager Chain. Set Start With to Manager, Approval chain of to Requestor, Number of Levels to
1, and Manager Type to Line manager. - In Manager Review → Rules, select Condition. Set Field to amountUsd, Operator to Greater Than or Equals, and Value to
25000. Close the condition editor and publish the process.
For requests sent to this process, an amount of 24,999 USD requires purchasing review only. An amount of 25,000 USD meets the manager review condition and requires both levels.
Map workflow data to the rule¶
In the workflow, use an If Condition to request review for amounts of at least 5,000 USD. On that branch, add a Code node with code APPROVAL_PAYLOAD and set its return type to Object. Read the request ID from the webhook and the validated total from the Read Purchase Request node.
return {
requestId: $context.$triggers.REST.$input.requestId,
amountUsd: $context.$nodes.GET_PURCHASE_REQUEST.$output.amountUsd
};
For request REQ-1042 at the manager review threshold, the Code node returns the following object.
In the Human Approval node, select Purchase Request Review and set Approval Rule JSON Payload to {{$context.$nodes.APPROVAL_PAYLOAD.$output.result}}. With node code APPROVE_PURCHASE_REQUEST, use {{$context.$nodes.APPROVE_PURCHASE_REQUEST.$output.$actionPerformed == 'APPROVED'}} to continue to submission only after approval. A rejection stops the submission path.