# Run API Schema Queue in Google Sheets

Source: https://openflow.run/ja/templates/run-api-schema-queue-in-google-sheets/
Content language: en
Template revision: d291811835b4d4defcd934c79186ed436e74219f

開発者ツール

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

[Open Flow で使用](https://console.openflow.run/flows?importUrl=https%3A%2F%2Fraw.githubusercontent.com%2Foomol-lab%2Fawesome-workflow-templates%2Fd291811835b4d4defcd934c79186ed436e74219f%2Fworkflows%2Frun-api-schema-queue-in-google-sheets%2Ftemplates%2Frun-api-schema-queue-in-google-sheets.openflow.json)

*   [Open Flow JSON](https://github.com/oomol-lab/awesome-workflow-templates/blob/d291811835b4d4defcd934c79186ed436e74219f/workflows/run-api-schema-queue-in-google-sheets/templates/run-api-schema-queue-in-google-sheets.openflow.json)
*   [n8n JSON](https://github.com/oomol-lab/awesome-workflow-templates/blob/d291811835b4d4defcd934c79186ed436e74219f/workflows/run-api-schema-queue-in-google-sheets/templates/run-api-schema-queue-in-google-sheets.n8n.json)

![Open Flow の Run API Schema Queue in Google Sheets ワークフロー](https://openflow.run/template-previews/run-api-schema-queue-in-google-sheets/light.webp)

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 |

4.  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](https://github.com/oomol-lab/awesome-workflow-templates/blob/d291811835b4d4defcd934c79186ed436e74219f/workflows/index-public-api-documentation/templates/index-public-api-documentation.n8n.json), [Extract Documented API Operations](https://github.com/oomol-lab/awesome-workflow-templates/blob/d291811835b4d4defcd934c79186ed436e74219f/workflows/extract-documented-api-operations/templates/extract-documented-api-operations.n8n.json), and [API Operations Schema Export](https://github.com/oomol-lab/awesome-workflow-templates/blob/d291811835b4d4defcd934c79186ed436e74219f/workflows/api-operations-schema-export/templates/api-operations-schema-export.n8n.json). 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](https://github.com/enescingoz/awesome-n8n-templates/blob/827110332c21cbe000ab13f6d292d5adb1f1f8db/Other_Integrations_and_Use_Cases/API%20Schema%20Extractor.json) from [enescingoz/awesome-n8n-templates](https://github.com/enescingoz/awesome-n8n-templates).

Source collection notice: © 2024–2026 Enes Cingoz, [CC BY 4.0](https://github.com/enescingoz/awesome-n8n-templates/blob/827110332c21cbe000ab13f6d292d5adb1f1f8db/LICENSE). This adaptation includes the changes above. See [repository licensing](https://github.com/oomol-lab/awesome-workflow-templates/blob/d291811835b4d4defcd934c79186ed436e74219f/README.md#licensing).

## 使用するアプリ

*   [**Firecrawl**`firecrawl`](https://openflow.run/ja/integrations/firecrawl.md)
*   [**Gemini**`gemini`](https://openflow.run/ja/integrations/gemini.md)
*   [**Google Drive**`googledrive`](https://openflow.run/ja/integrations/googledrive.md)
*   [**Google Sheets**`googlesheets`](https://openflow.run/ja/integrations/googlesheets.md)
*   [**Qdrant Cloud**`qdrant`](https://openflow.run/ja/integrations/qdrant.md)

## 必要な設定

*   Google Sheets, Google Drive, Firecrawl, Gemini and Qdrant Cloud connections
*   A queue tab and a separate operations tab in the same spreadsheet

*   api
*   documentation
*   google sheets
*   qdrant
*   google drive

[GitHub で見る](https://github.com/oomol-lab/awesome-workflow-templates/blob/d291811835b4d4defcd934c79186ed436e74219f/workflows/run-api-schema-queue-in-google-sheets/README.md)
