Library / Building Blocks & Utilities
Building Blocks & Utilities
Create and wait for approval requests in Inistate from sub-workflows
When another workflow calls it, it provides a reusable building block using Inistate.
What it does
## Wait for an approval in Inistate ### How it works This workflow is designed to be called by another n8n workflow to create an approval request in Inistate and wait for a final decision. It initializes polling settings, creates the request, then repeatedly waits and checks the request state. When the request reaches an approved or rejected state it returns the decision; if the maximum number of checks is reached, it stops with an error. ### Setup steps - Configure the Inistate credentials used by the Inistate nodes. - Review the Settings node and set the approvedState, rejectedState, checkEveryMinutes, and maxChecks values to match your Inistate process. - Ensure the parent workflow passes any required request or document data expected by the Create approval request node. - Confirm the Return decision node exposes the fields your calling workflow needs, such as approved, state, and documentId. ### Customization Adjust the polling interval and max check count to control how long the workflow waits before timing out, and update the approved/rejected state names if your Inistate workflow uses different labels.
The steps
- Workflow Triggered
- Set Approval Parameters
- Initiate Approval Request
- Wait for Approval Interval
- Verify Approval Status
- Check Approval Decision
- Evaluate Waiting Condition
- Terminate on Max Checks
- Output Approval Decision
Similar automations
Building Blocks & UtilitiesRun Sub-Workflows in Parallel and Wait for Completion14 stepsBuilding Blocks & UtilitiesValidate and enrich refund approval requests in an n8n sub-workflow4 stepsBuilding Blocks & UtilitiesRate Limit and Wait for External Approval10 stepsTasks & Project ManagementRoute webhook approval requests through policy rules and multi-level sign-off15 steps