Library / Tasks & Project Management
Tasks & Project Management
Score contract renewal risk and route approvals from webhook intake
Runs on each webhook POST to validate a contract, flag upcoming renewals, score risk through an HTTP analysis service, and return an approval decision with an audit trail.
What it does
## Contract Lifecycle Workflow Ingests a contract, detects upcoming renewals, runs risk analysis, evaluates dynamic approval requirements, and returns a full lifecycle decision with audit trail. ### All nodes (1-line each) 1. Webhook - Contract Intake – Receives new or updated contract data via POST. 2. Code - Validate & Normalize – Validates required fields and normalizes contract metadata. 3. Code - Renewal Detection – Calculates days-to-expiry and flags contracts needing renewal action. 4. Wait - Pre Risk – Short pause before risk analysis. 5. HTTP Request - Risk Analysis Engine – Sends contract details to an external risk scoring service. 6. Code - Process Risk Score – Interprets risk score and maps it to risk tier (low / medium / high). 7. Wait - Pre Policy – Pause before policy evaluation. 8. Code - Evaluate Approval Policy – Determines required approval levels based on value, risk and renewal status. 9. Wait - Pre Approval – Pause before approval routing. 10. HTTP Request - Approval System – Submits the contract for the required multi-level approvals. 11. Code - Process Approval Result – Records approval decision and final lifecycle status. 12. Code - Build Lifecycle Report – Creates a complete report including renewal, risk and approval outcomes. 13. Code - Finalize Response – Assembles the final response payload for the caller. 14. Respond to Webhook – Returns the contract lifecycle decision and audit trail.
The steps
- Webhook - Contract Intake
- Code - Validate & Normalize
- Code - Renewal Detection
- Wait - Pre Risk
- HTTP Request - Risk Analysis Engine
- Code - Process Risk Score
- Wait - Pre Policy
- Code - Evaluate Approval Policy
- Wait - Pre Approval
- HTTP Request - Approval System
- Code - Process Approval Result
- Code - Build Lifecycle Report
- Code - Finalize Response
- Respond to Webhook
Similar automations
AI Agents & AssistantsScore supplier risk and route approvals with OpenAI, Slack and ERP data57 stepsCRM & Sales PipelineRoute client onboarding and approvals with OpenAI, Gmail and Google Sheets15 stepsTasks & Project ManagementReview agency asset readiness and approvals from Google Sheets and Gmail21 stepsDocuments, PDF & OCRNotify Legal from Contract Documents and Send to SAP4 steps