Optimize procurement approval workflows with OpenAI, Slack, and Gmail
Ready for 3.0What this workflow does
This AI workflow has 33 nodes and runs on a schedule (every week). Along the way it connects OpenAI, Slack and Gmail.
How it runs
Trigger: On a schedule (every week).
- Changes Check If Company Policies Changed (Code): runs custom JavaScript code
- Get Past Purchase Approval History (Code): runs custom JavaScript code
- Get Current Approval Steps (Code): runs custom JavaScript code
- Get Company Buying Rules (Code): runs custom JavaScript code
- Clean and Organize the Data (Code): runs custom JavaScript code
- Find What Is Slowing Approvals (Code): runs custom JavaScript code
- Score Overall Approval Performance (Code): runs custom JavaScript code
- Do We Need to Improve the Process? (If): checks a condition and branches into true / false
- Prepare Information for AI (Code): runs custom JavaScript code
- No Change Needed — Stop Here (Code): runs custom JavaScript code
…plus 22 more steps. See the full node list below.
Services it uses
Other OpenAI + Gmail templates (1,623) · Other OpenAI + Slack templates (979) · Other Gmail + Slack templates (957)
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (7)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - OpenAI
@n8n/n8n-nodes-langchain.openAi - Wait
n8n-nodes-base.wait - Slack
n8n-nodes-base.slack - Gmail
n8n-nodes-base.gmail
From the author
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…