GenAiHub

Last checked 8 October 2026 — responded normally.

Optimize procurement approval workflows with OpenAI, Slack, and Gmail

Quick Overview

Live
Open / InstallLast updated October 8, 2026

Description

Quick Overview This workflow runs weekly to review procurement approval performance, detect policy changes, and generate a compliant optimization proposal using a demo recommendation or OpenAI. It validates the suggestion against company rules, waits for manager approval, versions the process update, and notifies stakeholders via Slack and Gmail. How it works Runs weekly on a schedule to start a procurement workflow review. Checks whether the company procurement policy version has changed, then loads recent purchase approval history, current approval-step rules, and buying policies. Normalizes the transaction and approval-step data, calculates per-role bottleneck metrics, and scores overall approval performance to decide whether optimization is needed. If optimization is needed, prepares a structured prompt and generates a recommendation using either a built-in demo output or OpenAI. Parses the AI response into JSON and validates it against compliance guardrails such as allowed roles, allowed actions, and mandatory approver preservation. If the recommendation is valid, creates a change request and pauses until a manager approves or rejects via the workflow’s resume webhook. When approved, creates a new version of the approval process (preserving the previous version for rollback), applies the updated configuration, records an audit log, and sends stakeholder notifications through Slack and Gmail. Setup (Optional for live AI) Add an OpenAI API credential for the OpenAI node and set the workflow to use live AI instead of the demo recommendation. Add Slack credentials and select the target channel for stakeholder notifications. Add a Gmail OAuth2 credential and update the recipient addresses used for approval and rejection emails. After enabling the workflow, copy the wait node’s resume webhook URL and use it to send manager approval payloads (for example, approvalStatus=APPROVED or REJECTED, and additionalApproval=APPROVED when required). An n8n automation workflow template by WeblineIndia.

Community Metrics

Views
0
Avg Rating
N/A
Ratings
0
Likes
0
Comments
—

Author

WeblineIndia

Platform

web

Pricing model

free

Categories

  • Automation
  • AI

Tags

  • n8n
  • workflow
  • slack
  • gmail
  • code
  • openai

Capabilities

  • 4 nodes

Information

TypeWorkflow
Sourcen8n
AddedOctober 7, 2026

Comments

?

Others in the same category, ranked by how often they are opened.