Automation library · E-commerce

Generate AI inventory reorder recommendations from Airtable

Started by an event in a connected app, and works across Airtable, Asana, Gmail, Google Sheets and two others. It hands the judgement calls to Azure OpenAI. 17 steps, 1 branch: a working afternoon to understand properly.

MediumCalls a model: Azure OpenAI

17 stepsMedium: a working afternoon
1Branch: places the flow splits
0Loops or waits
6Services it connects to

The flow

Starts it 2Model 6Logic 2Service 7

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

  1. 1When clicking ‘Execute workflow’Manual triggerStarts it
  2. 2Configure GPT-4o ModelLm Chat Azure Open AiModel
  3. 3Configure GPT-4o Model1Lm Chat Azure Open AiModel
  4. 4Configure GPT-4o, Inventory Optimization ModelLm Chat Azure Open AiModel
  5. 5Workflow Error HandlerError triggerStarts it
  6. 6Fetch Inventory Records from AirtableAirtableService
  7. 7Generate Inventory Email Summary AgentModel
  8. 8Generate Inventory Slack SummaryAgentModel
  9. 9Generate Inventory Optimization Output (AI)AgentModel
  10. 10Send a message1GmailService
  11. 11Validate Inventory Record StructureIfLogic
  12. 12Email Inventory Summary to ManagerGmailService
  13. 13Notify Operations Team on SlackSlackService
  14. 14Merge AI Optimization Results CodeLogic
  15. 15Log Invalid Inventory Rows to Google SheetGoogle SheetsService
  16. 16Create Asana Task for Inventory DbAsanaService
  17. 17Log Trade Decision to Notion (inventory db)NotionService

How it's built

Starts on
An event in a connected app
Steps
17, with 1 branch
Size
Medium: a working afternoon
Connects to
Airtable, Asana, Gmail, Google Sheets, Notion, Slack
Model
Azure OpenAI

Questions

What does it need to run?

An n8n account, plus your own Airtable, Asana, Gmail, Google Sheets, Notion 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?

Plan an afternoon. 17 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 17 steps before you point it at anything that matters.