# Analyze sales deal outcomes with Azure OpenAI: n8n workflow

> Started by an event in a connected app, and works across Email and Google Sheets. It hands the judgement calls to Azure OpenAI.

Source: https://millionrounds.com/workflow/analyze-sales-deal-outcomes-with-azure-openai (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [CRM](https://millionrounds.com/workflows?category=CRM#library)

# Analyze sales deal outcomes with Azure OpenAI

Started by an event in a connected app, and works across Email and Google Sheets. It hands the judgement calls to Azure OpenAI. 14 steps, 1 loop or waits: a working afternoon to understand properly.

Medium Calls a model: Azure OpenAI

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fanalyze-sales-deal-outcomes-with-azure-openai)

**14 steps** Medium: a working afternoon

**0** Branches: places the flow splits

**1** Loop or waits

**2** Services it connects to

## The flow

Starts it 1 Model 4 Logic 5 Service 4

The steps in the order they run, from what starts it.

- 1 **When clicking ‘Execute workflow’** Manual trigger *Starts it*
- 2 **Azure OpenAI Chat Model** Lm Chat Azure Open Ai *Model*
- 3 **Azure OpenAI Chat Model1** Lm Chat Azure Open Ai *Model*
- 4 **Get row(s) in sheet** Google Sheets *Service*
- 5 **AI Agent** Agent *Model*
- 6 **AI Agent1** Agent *Model*
- 7 **Extract Notes/Emails** Code *Logic*
- 8 **Edit Fields** Set *Logic*
- 9 **Filter Recent Data** Code *Logic*
- 10 **Loop Over Items** Split In Batches *Logic*
- 11 **Parse AI Response** Code *Logic*
- 12 **Send Email Digest** Email Send *Service*
- 13 **Fetch Google Sheet Data** Google Sheets *Service*
- 14 **Save to Google Sheets** Google Sheets *Service*

## How it's built

- **Starts on:** An event in a connected app
- **Steps:** 14, 1 loop or waits
- **Size:** Medium: a working afternoon
- **Connects to:** Email, Google Sheets
- **Model:** Azure OpenAI

## Questions

What does it need to run?

An n8n account, plus your own Email and Google Sheets accounts, and a key for Azure OpenAI. You connect your own accounts after importing it; none are included.

What starts it?

It starts on an event in a connected app.

Does it use AI?

Yes. It calls Azure OpenAI. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Plan an afternoon. 14 steps is enough that you should read each one before running it.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

**Before you run it**

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 14 steps before you point it at anything that matters.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fanalyze-sales-deal-outcomes-with-azure-openai)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[Email](https://millionrounds.com/workflows?service=Email#library)[Google Sheets](https://millionrounds.com/workflows?service=Google+Sheets#library)

## Workflows like it

Also crm, with the same services where possible, closest in size first.

- [**AI web researcher for sales with OpenAI and Google Sheets** 14 steps · calls a model · Google Sheets](https://millionrounds.com/workflow/ai-web-researcher-for-sales-with-openai-and-google-sheets)
- [**Auto-reel generator Telegram AI Kie.AI YouTube pipeline** 14 steps · calls a model · Google Sheets, Telegram](https://millionrounds.com/workflow/auto-reel-generator-telegram-ai-kie-ai-youtube-pipeline)
- [**Turn webinar recordings into Salesforce follow-up emails** 14 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/turn-webinar-recordings-into-salesforce-follow-up-emails)
- [**Cost-free email follow-up sequence with Google Sheets** 14 steps · Gmail, Google Docs](https://millionrounds.com/workflow/cost-free-email-follow-up-sequence-with-google-sheets)
- [**Generate & edit images with Google Drive** 14 steps · Email, Google Drive](https://millionrounds.com/workflow/generate-and-edit-images-with-google-drive)
- [**GitHub developers with Hunter.io and Google Sheets CRM** 14 steps · Google Sheets](https://millionrounds.com/workflow/github-developers-with-hunter-io-and-google-sheets-crm)
