{"product_id":"n8n-gpt-4-1-deployment-windows-slack-approval-google-calendar","title":"n8n GPT-4.1 Deployment Windows: Slack Approval + Google Calendar","description":"\u003ch3\u003eGet a low-risk deployment window recommendation—then get it approved in Slack and scheduled in Google Calendar\u003c\/h3\u003e\n\u003cp\u003eThis n8n workflow receives deployment requests via webhook, uses OpenAI-powered internal HTTP lookups to recommend the safest deployment window, logs the decision to Postgres for audit, and routes approvals through Slack before it creates a Google Calendar hold and triggers your CI\/CD scheduling at the selected time.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eReceives a deployment request\u003c\/strong\u003e through an incoming webhook, including service name, version, change details, and optional \u003cem\u003eearliest\/latest deploy-by\u003c\/em\u003e constraints.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eAnalyzes risk using an OpenAI agent\u003c\/strong\u003e with session memory. The agent queries internal HTTP APIs for traffic analytics, incident history, deployment failure history, and team availability to select a primary and fallback deployment window with a risk score.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eGenerates a structured recommendation\u003c\/strong\u003e (including window, risk, rationale, approvers, and status) and parses the agent’s JSON output.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eAudits every decision in Postgres\u003c\/strong\u003e by logging the recommendation details (window, risk, rationale, approvers, status, timestamp) to a Postgres table.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eRequests approval in Slack\u003c\/strong\u003e. If the risk score is high, it posts a high-risk notice; otherwise it posts an approval request and waits for an approval webhook response.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSchedules the deployment only after approval\u003c\/strong\u003e: creates a Google Calendar event to hold the window, calls a CI\/CD scheduling API to dispatch at the window start, and confirms the result back in Slack.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eChoose safer release times by factoring traffic patterns, past incidents, and deployment failures.\u003c\/li\u003e\n  \u003cli\u003eEnforce change-control with Slack approvals before scheduling production deployments.\u003c\/li\u003e\n  \u003cli\u003eMaintain an auditable record of every recommended window and who approved it.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003en8n nodes\/workflow components\u003c\/strong\u003e: \u003ccode\u003ewebhook\u003c\/code\u003e, \u003ccode\u003eslack\u003c\/code\u003e, \u003ccode\u003epostgres\u003c\/code\u003e, \u003ccode\u003ewait\u003c\/code\u003e, \u003ccode\u003eset\u003c\/code\u003e, \u003ccode\u003eif\u003c\/code\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eModel\/agent behavior\u003c\/strong\u003e: OpenAI agent with session memory and internal HTTP API queries (traffic, incidents, deployment history, availability).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eCalendar + scheduling\u003c\/strong\u003e: Google Calendar event creation and CI\/CD scheduling API invocation at the window start.\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":45962010198195,"sku":"N8N-19230","price":21.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/b5y4BlwZhKZqVHP1eRQI2_nVAqbWS8.png?v=1788599039","url":"https:\/\/buyflowscripts.com\/products\/n8n-gpt-4-1-deployment-windows-slack-approval-google-calendar","provider":"N8N Commerce","version":"1.0","type":"link"}