Skip to content
← All AI workflows

n8n: review shipment queries before BigQuery execution

This public n8n template turns shipment questions into SQL, a database query language, and calls a separate BigQuery workflow. Its export uses gpt-4o-mini despite the page title. Production use needs corrected configuration, independent read-only restrictions and logistics review.

From the source

Public documentation page from Samir Saci / n8n
Samir Saci / n8n · Captured 2026-10-14Read the original

How it works

  • The source describes chat memory, a query-subworkflow call, code-fence removal and BigQuery execution. No evaluated SQL correctness or enforced read-only validation was demonstrated.
  • The export uses gpt-4o-mini, contains a fixed May 31, 2021 date and references an author-specific subworkflow ID. These require explicit reconfiguration.
  • Removing SQL fences is not a security check. Dataset restrictions, read-only credentials, row policies and query budgets need separate enforcement. No financial or environmental saving was verified.

Workflow guide

  1. Import workflow 3305 into an isolated pilot with an approved outbound-delivery view. Document column meanings, units, statuses and date boundaries.

  2. Copy query nodes into a separate workflow and select its new ID. Replace sample tables and the May 31, 2021 date. Review the gpt-4o-mini model setting.

  3. Give the query agent the permitted schema. Add independent read-only validation rather than relying on code-fence removal.

  4. Enforce dataset allowlists, row permissions, query budgets and result-size limits outside the model.

  5. Run only reviewer-approved queries with restricted credentials. Retain query text and source details.

  6. Check summaries against known answers on the fixed sample. Keep dispatch changes, customer sends and purchases outside this read-only workflow.

Sources and downloads

See this workflow in order-to-cash →Discuss this workflow →

Book a call

A free 30 minute call. Tell us where you are with AI, what your IT allows, and what management needs to see. We'll tell you honestly what we would do first.