全部範本

開發者工具

Run API Schema Queue in Google Sheets

Run documentation research, operation extraction, and schema export for queued services in Google Sheets.

在 Open Flow 中使用
Run API Schema Queue in Google Sheets 在 Open Flow 中的工作流程截圖Run API Schema Queue in Google Sheets 在 Open Flow 中的工作流程截圖

Run documentation research, operation extraction, and schema export for queued services in Google Sheets.

Setup

  1. Import the workflow bundle. In Run API Schema Queue in Google Sheets, set the spreadsheet ID, queue tab, and Qdrant collection in Set the queue spreadsheet. Connect Google Sheets in Read the service queue, Reserve eligible queue row, and Write the result to the same row with permission to read and update the queue.
  2. Configure and publish the three bundled workflows Index Public API Documentation, Extract Documented API Operations, and API Operations Schema Export. Connect Firecrawl, Gemini, and Qdrant Cloud for the research worker, Gemini, Qdrant Cloud, and Google Sheets for extraction, and Google Sheets and Google Drive for the export. The Qdrant collection needs an unnamed 768-dimensional cosine vector for Gemini Embedding 2. Set the extraction and export workers to the same spreadsheet and operations tab. They read and write the seven fields listed in the extraction workflow.
  3. Refresh the three published workflow interfaces in Run the selected stage. Put these headers in row 1 of the queue tab within columns A:AZ:
Column Purpose
Service Service name shared with its document index and operations rows
Website Official public HTTPS site whose documentation you may index
Stage 1 - Research Research response
Stage 2 - Extraction Extraction response
Stage 3 - Output File File export status
Output Destination Confirmed Drive filename
  1. Run Run the API schema queue manually. Keep one run active and leave the queue layout and row identities unchanged until it finishes.

Behavior

The workflow processes the queue in stage order. Research runs when Stage 1 is blank. Extraction runs when Stage 1 is exactly ok and Stage 2 is blank. Export runs when both are ok and Stage 3 is blank. Each eligible row is marked pending before its worker starts. The workflow waits for the worker, then writes its status to the same row. A confirmed Drive export sets Stage 3 to ok and writes its filename to Output Destination in the same Sheets update.

A worker failure writes error for that stage and the queue continues. Other responses stay in their respective stage cells and prevent later stages unless the response is ok. Rows already marked pending, error, or another nonempty value are left alone for that stage. Rows added during a run wait until the next manual run. If a row’s service or website changes, or Sheets cannot confirm a status write, the run stops. Check the affected row and any worker side effects before clearing a status for a retry.

In n8n

Import the three native worker templates and set their own credentials. Use Index Public API Documentation, Extract Documented API Operations, and API Operations Schema Export. Configure the extraction and export workers to use the same operations spreadsheet and tab.

Set the queue settings in Set the queue spreadsheet. Attach the same Google Sheets OAuth2 credential to Read the service queue, Read the current queue row, Mark the stage pending, Re-read the reserved row, and Record the stage status. In Run documentation research, Run operations extraction, and Run the schema export, select the corresponding imported workflow as the database source. Keep the waiting option enabled and allow this workflow to call each worker. Run the coordinator manually.

Inspiration & credits

Changes to the source

  • Reuse the three callable stages as same-platform workflows. Check each physical row and its service and website before recording a pending status or a result.
  • Verify Sheets receipts and record the filename only after the export worker reports a created file.

Adapted from the manual Google Sheets coordinator in API Schema Extractor from enescingoz/awesome-n8n-templates.

Source collection notice: © 2024–2026 Enes Cingoz, CC BY 4.0. This adaptation includes the changes above. See repository licensing.