# Invoice processing with Slack: n8n workflow template

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

Source: https://millionrounds.com/workflow/invoice-processing-with-slack (Millionrounds; every figure on the page links to its filing or article)

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

# Invoice processing with Slack

Started by an event in a connected app, and works across Google Drive and Slack. It hands the judgement calls to Azure OpenAI. 25 steps, 2 branches, 1 loop or waits: large, and worth reading before you trust it with anything live.

Large Calls a model: Azure OpenAI

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Finvoice-processing-with-slack)

**25 steps** Large: read it before trusting it with anything live

**2** Branches: places the flow splits

**1** Loop or waits

**2** Services it connects to

## The flow

Starts it 1 Model 3 Logic 4 Service 17

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

- 1 **Slack File Upload Trigger** Slack trigger *Starts it*
- 2 **Azure OpenAI Chat Model** Lm Chat Azure Open Ai *Model*
- 3 **Structured Output Parser** Output Parser Structured *Model*
- 4 **Create a bill** Quickbooks *Service*
- 5 **Create a bill1** Quickbooks *Service*
- 6 **Get a file** Slack *Service*
- 7 **OCR Extraction and Classification Agent** Agent *Model*
- 8 **Download File** Http Request *Service*
- 9 **Edit Fields** Set *Logic*
- 10 **Upload file** Google Drive *Service*
- 11 **Send Approval Request** Slack *Service*
- 12 **Share file** Google Drive *Service*
- 13 **Check Approval** If *Logic*
- 14 **Azure OCR POST Request** Http Request *Service*
- 15 **Check Vendor** Http Request *Service*
- 16 **Send Rejection Notification** Slack *Service*
- 17 **Wait** Wait *Logic*
- 18 **If** If *Logic*
- 19 **Azure OCR GET Request** Http Request *Service*
- 20 **Create Bill1** Http Request *Service*
- 21 **Create a vendor** Quickbooks *Service*
- 22 **Get Chart of Accounts** Http Request *Service*
- 23 **Send Success Notification** Slack *Service*
- 24 **Create Bill** Http Request *Service*
- 25 **Send Success Notification1** Slack *Service*

## How it's built

- **Starts on:** An event in a connected app
- **Steps:** 25, with 2 branches, 1 loop or waits
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Google Drive, Slack
- **Model:** Azure OpenAI

## Questions

What does it need to run?

An n8n account, plus your own Google Drive and Slack 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?

Take your time. At 25 steps it is large: read it before trusting it with anything live.

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 25 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%2Finvoice-processing-with-slack)
- **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.

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

## Workflows like it

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

- [**Create AI proposals from Fireflies transcripts with OpenAI** 25 steps · calls a model · Gmail, Google Docs](https://millionrounds.com/workflow/create-ai-proposals-from-fireflies-transcripts-with-openai)
- [**Extract Amazon invoice data with Airtop and OpenAI** 25 steps · calls a model · Google Drive, Google Sheets](https://millionrounds.com/workflow/extract-amazon-invoice-data-with-airtop-and-openai)
- [**Track receipt expenses from Telegram with Gemini** 25 steps · calls a model · Google Drive, Google Sheets](https://millionrounds.com/workflow/track-receipt-expenses-from-telegram-with-gemini)
- [**Generate and track invoices with HubSpot and Gmail** 25 steps · Gmail, Google Sheets](https://millionrounds.com/workflow/generate-and-track-invoices-with-hubspot-and-gmail)
- [**Log receipt expenses in Notion with Gmail and Telegram** 24 steps · calls a model · Airtable, Gmail](https://millionrounds.com/workflow/log-receipt-expenses-in-notion-with-gmail-and-telegram)
- [**Process e-commerce orders with Gmail and Slack** 26 steps · Gmail, Slack](https://millionrounds.com/workflow/process-e-commerce-orders-with-gmail-and-slack)
