Analyze sales deal outcomes with Azure OpenAI and Google Sheets reporting
Ready for 3.0What this workflow does
This AI workflow has 14 nodes and runs manually, when you click “Execute workflow”. Along the way it connects Google Sheets and Azure OpenAI Chat Model.
How it runs
Trigger: Manually, when you click “Execute workflow”.
- Get row(s) in sheet (Google Sheets): uses Google Sheets
- Extract Notes/Emails (Code): runs custom JavaScript code
- Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
- Fetch Google Sheet Data (Google Sheets): uses Google Sheets
- AI Agent: runs an AI agent, with model: Azure OpenAI Chat Model
- AI Agent: runs an AI agent, with model: Azure OpenAI Chat Model
- Edit Fields (Edit Fields (Set)): sets or maps fields
- Filter Recent Data (Code): runs custom JavaScript code
- Parse AI Response (Code): runs custom JavaScript code
- Send Email: sends an email over SMTP
…plus 1 more step. See the full node list below.
Services it uses
Other Google Sheets + Azure OpenAI templates (88)
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 (8)
- Code
n8n-nodes-base.code - Google Sheets
n8n-nodes-base.googleSheets - Send Email
n8n-nodes-base.emailSend - Manual Trigger
n8n-nodes-base.manualTrigger - AI Agent
@n8n/n8n-nodes-langchain.agent - Azure OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatAzureOpenAi - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Edit Fields (Set)
n8n-nodes-base.set
From the author
Description: Turn raw sales deal outcomes into actionable insights with this smart n8n workflow template! Automatically pull deal data from Google Sheets, analyze won/lost reasons with AI, generate structured insights, and deliver polished weekly reports—no…