Automation library · Content

Decrypt legacy PDF archives with HTML and PostgreSQL

Runs on demand, and works across Gmail, Google Drive, Postgres and Slack. 14 steps, 2 branches: a working afternoon to understand properly.

Medium

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

The flow

Logic 4Service 10

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

  1. 1Code: Forensic Intake1CodeLogic
  2. 2IF: File ValidatorIfLogic
  3. 3Postgres: Key Vault1PostgresService
  4. 4Postgres: Validation FailurePostgresService
  5. 5IF: Key FoundIfLogic
  6. 6HTML to PDF: Unlock Engine1HtmlcsstopdfService
  7. 7Postgres: Quarantine LogPostgresService
  8. 8Code: Integrity Guard1CodeLogic
  9. 9Slack: Quarantine AlertSlackService
  10. 10Postgres: Audit LoggerPostgresService
  11. 11Google Drive: Quarantine VaultGoogle DriveService
  12. 12Google Drive: Audit Vault1Google DriveService
  13. 13Slack: Compliance Log1SlackService
  14. 14Gmail: Legal Summary1GmailService

How it's built

Starts on
Nothing automatic; you run it
Steps
14, with 2 branches
Size
Medium: a working afternoon
Connects to
Gmail, Google Drive, Postgres, Slack
Model
None. This is plumbing, not judgement

Questions

What does it need to run?

An n8n account, plus your own Gmail, Google Drive, Postgres and Slack accounts. You connect your own accounts after importing it; none are included.

What starts it?

Nothing starts it automatically. You run it by hand.

Does it use AI?

No. Every step is fixed logic or a call to a service, so it does the same thing every time.

How long does it take to set up?

Plan an afternoon. 14 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 14 steps before you point it at anything that matters.