Automation library · Data collection

Automating SAP B1 journal entries with JSON and Google Sheets

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

LargeCalls a model: OpenAI

21 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 7Service 11

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

  1. 1Webhook TriggerWebhookStarts it
  2. 2SAP LoginHttp RequestService
  3. 3Route by SourceSwitchLogic
  4. 4Map JSON FieldsSetLogic
  5. 5Set SAP DataSetLogic
  6. 6LLM Transform (Manual)Open AiModel
  7. 7Post Journal (JSON)Http RequestService
  8. 8Load Sheet DataGoogle SheetsService
  9. 9Merge Header & LinesMergeLogic
  10. 10Post Journal (Manual)Http RequestService
  11. 11Log Success (JSON)Google SheetsService
  12. 12Log Error (JSON)Google SheetsService
  13. 13Shape Sheet LinesSetLogic
  14. 14Post Journal (Sheet)Http RequestService
  15. 15Log Success (Manual)Google SheetsService
  16. 16Log Error (Manual)Google SheetsService
  17. 17Parse Sheet JSONCodeLogic
  18. 18Log Success (Sheet)Google SheetsService
  19. 19Log Error (Sheet)Google SheetsService
  20. 20LLM Transform (Sheet)Open AiModel
  21. 21Build Journal BodySetLogic

How it's built

Starts on
Another system calling it
Steps
21, 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 21 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 21 steps before you point it at anything that matters.