Automation library · Chat assistants

Detect multi-source transaction fraud and reconcile finances

Started by another system calling it, and works across Gmail, Postgres and Slack. 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
3Services it connects to

The flow

Starts it 2Model 3Logic 9Service 8

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

  1. 1Schedule Trigger - Periodic IngestionSchedule triggerStarts it
  2. 2Webhook - Real-time Transaction EventsWebhookStarts it
  3. 3OpenAI Chat ModelLm Chat Open AiModel
  4. 4Structured Output Parser - Fraud AnalysisOutput Parser StructuredModel
  5. 5Workflow ConfigurationSetLogic
  6. 6Merge All Transaction SourcesMergeLogic
  7. 7AI Agent - Fraud DetectionAgentModel
  8. 8Fetch Bank API TransactionsHttp RequestService
  9. 9Fetch Payment Gateway TransactionsHttp RequestService
  10. 10Normalize Transaction DataSetLogic
  11. 11Route by Risk LevelSwitchLogic
  12. 12Filter Valid TransactionsFilterLogic
  13. 13Flag for Manual ReviewSetLogic
  14. 14Reconcile with ERP SystemHttp RequestService
  15. 15Check IdempotencyCodeLogic
  16. 16Notify Finance Team - High RiskSlackService
  17. 17Send Customer Alert EmailGmailService
  18. 18Store Transaction RecordPostgresService
  19. 19Store Audit TrailPostgresService
  20. 20Aggregate for Financial ReportAggregateLogic
  21. 21Generate Financial ReportCodeLogic
  22. 22Send Financial Report to SlackSlackService

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
Gmail, Postgres, Slack
Model
OpenAI

Questions

What does it need to run?

An n8n account, plus your own Gmail, Postgres and Slack accounts, 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.