# Match lost and found items with OpenAI and SendGrid: n8n workflow

> Started by another system calling it. It calls services over plain HTTP rather than through connectors. It hands the judgement calls to OpenAI.

Source: https://millionrounds.com/workflow/match-lost-and-found-items-with-openai-and-sendgrid (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [AI assistants](https://millionrounds.com/workflows?category=AI+assistants#library)

# 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.

Large Calls a model: OpenAI

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fmatch-lost-and-found-items-with-openai-and-sendgrid)

**22 steps** Large: read it before trusting it with anything live

**1** Branch: places the flow splits

**1** Loop or waits

**0** Services by connector: it calls them over plain HTTP

## The flow

Starts it 4 Model 3 Logic 10 Service 5

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

- 1 **Webhook - New Item Report** Webhook *Starts it*
- 2 **Poll - Periodic Rematch Sweep** Schedule trigger *Starts it*
- 3 **OpenAI Chat Model** Lm Chat Open Ai *Model*
- 4 **Prepare Report Context** Set *Logic*
- 5 **AI - Normalize & Validate Report** Agent *Model*
- 6 **AI - Generate Match Notification Message** Agent *Model*
- 7 **JS - Parse AI Normalization** Code *Logic*
- 8 **Wait For Result** Wait *Logic*
- 9 **Filter - Valid Report** Filter *Logic*
- 10 **JS - Format Match Emails** Code *Logic*
- 11 **Fetch Existing Opposite Reports** Http Request *Service*
- 12 **Send Email to Original Reporter** Http Request *Service*
- 13 **Send Email to Matched Reporter** Http Request *Service*
- 14 **Log Matched Report** Http Request *Service*
- 15 **JS - Parse Existing Reports** Code *Logic*
- 16 **Webhook Response - Match Found** Respond To Webhook *Starts it*
- 17 **Python - Score Candidate Matches** Code *Logic*
- 18 **JS - Select Best Match** Code *Logic*
- 19 **IF - Confident Match Found** If *Logic*
- 20 **JS - Format Pending Record** Code *Logic*
- 21 **Log Pending Report** Http Request *Service*
- 22 **Webhook Response - No Match Yet** Respond To Webhook *Starts 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.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fmatch-lost-and-found-items-with-openai-and-sendgrid)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Workflows like it

Also ai assistants, with the same services where possible, closest in size first.

- [**5 ways to process images & PDFs with Gemini** 22 steps · calls a model](https://millionrounds.com/workflow/5-ways-to-process-images-and-pdfs-with-gemini)
- [**Automated project kickoff with Dropbox MCP and OpenAI** 22 steps · calls a model · Gmail](https://millionrounds.com/workflow/automated-project-kickoff-with-dropbox-mcp-and-openai)
- [**Automatic email categorization and organization with Outlook** 22 steps · calls a model · Outlook](https://millionrounds.com/workflow/automatic-email-categorization-and-organization-with-outlook)
- [**Build a cost engineering RAG with Google Drive and OpenAI** 22 steps · calls a model · Google Drive, Pinecone](https://millionrounds.com/workflow/build-a-cost-engineering-rag-with-google-drive-and-openai)
- [**Convert websites to Instagram Reels with Gemini and OpenAI TTS** 22 steps · calls a model](https://millionrounds.com/workflow/convert-websites-to-instagram-reels-with-gemini-and-openai-t)
- [**Create AI news digests from RSS feeds with Groq and Gmail** 22 steps · calls a model · Gmail, RSS](https://millionrounds.com/workflow/create-ai-news-digests-from-rss-feeds-with-groq-and-gmail)
