Automation library · Data collection

Flexible currency rate uploads for SAP B1 with OpenAI

Started by another system calling it, and works across Google Sheets. It hands the judgement calls to OpenAI. 22 steps, 1 branch: large, and worth reading before you trust it with anything live.

LargeCalls a model: OpenAI

22 stepsLarge: read it before trusting it with anything live
1Branch: places the flow splits
0Loops or waits
1Service it connects to

The flow

Starts it 1Model 2Logic 4Service 15

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

  1. 1WebhookWebhookStarts it
  2. 2Conectar SAPHttp RequestService
  3. 3SwitchSwitchLogic
  4. 4OpenAIOpen AiModel
  5. 5Extraer QuerySetLogic
  6. 6Google SheetsGoogle SheetsService
  7. 7Enviar SAP (MANUAL)Http RequestService
  8. 8Split OutSplit OutLogic
  9. 9Microsoft SQLMicrosoft SqlService
  10. 10Enviar SAP (SHEET)Http RequestService
  11. 11Success3Google SheetsService
  12. 12Fallo3Google SheetsService
  13. 13Enviar SAP (JSON)Http RequestService
  14. 14LimitLimitLogic
  15. 15Success2Google SheetsService
  16. 16Fallo2Google SheetsService
  17. 17SuccessGoogle SheetsService
  18. 18FalloGoogle SheetsService
  19. 19Comprobar FechaOpen AiModel
  20. 20Enviar SAP (SQL)Http RequestService
  21. 21Success1Google SheetsService
  22. 22Fallo1Google SheetsService

How it's built

Starts on
Another system calling it
Steps
22, with 1 branch
Size
Large: read it before trusting it with anything live
Connects to
Google Sheets
Model
OpenAI

Questions

What does it need to run?

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

What starts it?

It starts on another system calling it.

Does it use AI?

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

How long does it take to set up?

Take your time. At 22 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 22 steps before you point it at anything that matters.