Automation library · Alerts and monitoring

Monitor ISF-10 filing deadline risk with OpenAI and Telegram

Started by a clock, and works across Gmail, Telegram and n8n data table. It hands the judgement calls to OpenAI. 20 steps, 2 branches: a working afternoon to understand properly.

MediumCalls a model: OpenAI

20 stepsMedium: a working afternoon
2Branches: places the flow splits
0Loops or waits
3Services it connects to

The flow

Starts it 1Model 2Logic 10Service 7

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

  1. 1Poll Open Shipments Every 2 HoursSchedule triggerStarts it
  2. 2OpenAI Chat ModelLm Chat Open AiModel
  3. 3Fetch Open Ocean ShipmentsHttp RequestService
  4. 4Draft CBP Penalty Risk Escalation MemoChain LlmModel
  5. 5Read Prior Filing StateData TableService
  6. 6Keep Escalation DetailsCodeLogic
  7. 7Split Shipments by Bill of LadingCodeLogic
  8. 8Send Urgent Red-Tier AlertTelegramService
  9. 9Diff State & Compute Risk TierCodeLogic
  10. 10Submit Escalation to Compliance APIHttp RequestService
  11. 11Has Risk Tier Changed Since Last CheckIfLogic
  12. 12Restore Escalation OutcomeCodeLogic
  13. 13Is Red-Tier Imminent Penalty ExposureIfLogic
  14. 14Reconverge All PathsMergeLogic
  15. 15Check Vessel ScheduleHttp RequestService
  16. 16Log Yellow-Tier Change OnlySetLogic
  17. 17Update Filing StateData TableService
  18. 18Combine Shipment & Schedule ContextCodeLogic
  19. 19Aggregate Batch Run SummaryAggregateLogic
  20. 20Send Batch Watchdog SummaryGmailService

How it's built

Starts on
A clock
Steps
20, with 2 branches
Size
Medium: a working afternoon
Connects to
Gmail, Telegram, n8n data table
Model
OpenAI

Questions

What does it need to run?

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

What starts it?

It starts on a clock.

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?

Plan an afternoon. 20 steps is enough that you should read each one before running it.

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 20 steps before you point it at anything that matters.