Automation library · AI assistants

Match lost and found items with OpenAI and SendGrid

Started by another system calling it. It calls services over plain HTTP rather than through connectors. It hands the judgement calls to OpenAI. 22 steps, 1 branch, 1 loop or waits: 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
1Loop or waits
0Services by connector: it calls them over plain HTTP

The flow

Starts it 4Model 3Logic 10Service 5

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

  1. 1Webhook - New Item ReportWebhookStarts it
  2. 2Poll - Periodic Rematch SweepSchedule triggerStarts it
  3. 3OpenAI Chat ModelLm Chat Open AiModel
  4. 4Prepare Report ContextSetLogic
  5. 5AI - Normalize & Validate ReportAgentModel
  6. 6AI - Generate Match Notification MessageAgentModel
  7. 7JS - Parse AI NormalizationCodeLogic
  8. 8Wait For ResultWaitLogic
  9. 9Filter - Valid ReportFilterLogic
  10. 10JS - Format Match EmailsCodeLogic
  11. 11Fetch Existing Opposite ReportsHttp RequestService
  12. 12Send Email to Original ReporterHttp RequestService
  13. 13Send Email to Matched ReporterHttp RequestService
  14. 14Log Matched ReportHttp RequestService
  15. 15JS - Parse Existing ReportsCodeLogic
  16. 16Webhook Response - Match FoundRespond To WebhookStarts it
  17. 17Python - Score Candidate MatchesCodeLogic
  18. 18JS - Select Best MatchCodeLogic
  19. 19IF - Confident Match FoundIfLogic
  20. 20JS - Format Pending RecordCodeLogic
  21. 21Log Pending ReportHttp RequestService
  22. 22Webhook Response - No Match YetRespond To WebhookStarts it

How it's built

Starts on
Another system calling it
Steps
22, with 1 branch, 1 loop or waits
Size
Large: read it before trusting it with anything live
Connects to
Nothing by connector; it calls services over plain HTTP
Model
OpenAI

Questions

What does it need to run?

An n8n 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.