← All N8N workflows
AI & researchAggregateCodeDocument Default Data LoaderEmbeddings Google GeminiExecute Workflow

Stage 1 - Research for API Documentation

Configured with Aggregate, Document Default Data Loader, Embeddings Google Gemini, Execute Workflow, and additional nodes. Review the connections and setup before adapting this template.

Workflow preview
TriggerWhen clicking ‘Testworkflow’Manual TriggerWeb / APIWeb Search For APISchemaHTTP RequestWeb / APIScrape Webpage ContentsHTTP RequestTransformResults to ListSplit OutTransformRecursive CharacterText Splitter1Text Splitter Recursive …TransformContent Chunking @ 50kCharsEdit FieldsTransformSplit Out ChunksSplit OutFiles / mediaDefault Data LoaderDocument Default Data Lo…TransformSet Embedding VariablesEdit FieldsTriggerExecute WorkflowTriggerExecute Workflow TriggerIntegrationExecution DataExecution DataRoutingEventRouterSwitchAI & modelsGoogle Gemini ChatModelLM Chat Google GeminiRoutingSuccessful RunsFilterRoutingFor Each Document...Loop Over ItemsAI & modelsEmbeddings GoogleGeminiEmbeddings Google GeminiAI & modelsHas API Documentation?Text ClassifierData storeStore DocumentEmbeddingsVector Store QdrantAI & modelsEmbeddings GoogleGemini1Embeddings Google GeminiAI & modelsGoogle Gemini ChatModel1LM Chat Google GeminiAI & modelsExtract API OperationsInformation ExtractorData storeSearch in Relevant DocsVector Store QdrantWaitWaitWaitTransformRemove DupesRemove DuplicatesRoutingFilter ResultsFilterSubworkflowResearchExecute WorkflowRoutingHas Results?IfTransformResponse EmptyEdit FieldsTransformResponse OKEdit FieldsTransformCombine DocsAggregateTransformTemplate to ListSplit OutTransformQuery TemplatesEdit FieldsAI & modelsGoogle Gemini ChatModel2LM Chat Google GeminiRoutingFor Each Template...Loop Over ItemsTransformQuery & DocsEdit FieldsAI & modelsIdentify ServiceProductsInformation ExtractorTransformExtract API TemplatesEdit FieldsAI & modelsEmbeddings GoogleGemini2Embeddings Google GeminiData storeSearch in RelevantDocs1Vector Store QdrantTransformCombine Docs1AggregateTransformQuery & Docs1Edit FieldsRoutingFor Each Template...1Loop Over ItemsCodeMerge ListsCodeTransformRemove DuplicatesRemove DuplicatesData storeAppend RowGoogle SheetsTransformResponse OK1Edit FieldsRoutingHas Operations?IfTransformResponse Empty1Edit FieldsData storeResearch PendingGoogle SheetsData storeResearch ResultGoogle SheetsData storeResearch ErrorGoogle SheetsData storeExtract PendingGoogle SheetsTransformResearch EventEdit FieldsTransformExtract EventEdit FieldsSubworkflowExtractExecute WorkflowData storeExtract ResultGoogle SheetsData storeExtract ErrorGoogle SheetsData storeGet API OperationsGoogle SheetsCodeContruct JSON SchemaCodeFiles / mediaUpload to DriveGoogle DriveTransformSet Upload FieldsEdit FieldsTransformResponse OK2Edit FieldsTransformGenerate EventEdit FieldsData storeGenerate PendingGoogle SheetsSubworkflowGenerateExecute WorkflowData storeGenerate ErrorGoogle SheetsData storeGenerate ResultGoogle SheetsData storeGet All ExtractGoogle SheetsData storeGet All ResearchGoogle SheetsRoutingFor Each Research...Loop Over ItemsRoutingFor Each Extract...Loop Over ItemsWaitWait1WaitRoutingAll Research Done?IfRoutingAll Extract Done?IfData storeGet All GenerateGoogle SheetsRoutingAll Generate Done?IfRoutingFor Each Generate...Loop Over ItemsWaitWait2WaitRoutingHas Results?1IfTransformResponse Scrape ErrorEdit FieldsRoutingHas Results?3IfTransformResponse No API DocsEdit Fields

Node categories in this workflow

  • Trigger
  • Web / API
  • Transform
  • Files / media
  • Integration
  • Routing
  • AI & models
  • Data store
  • Wait
  • Subworkflow
  • Code

Icons describe general node roles, inferred from node types. Inspect the parameters for the configured action.

Drag to pan; use + and − to zoom. Reconstructed from the exported node positions; nothing runs here. Dashed lines represent non-main connections. Full node names and notes appear below.

How it works

The exported workflow contains the following configured nodes. Their connections are shown above; inspect the JSON for the complete logic, expressions, and external actions.

Workflow node names, types, and operations
NodeCategoryTypeOperation
When clicking ‘Test workflow’TriggerManual TriggerSee node parameters
Web Search For API SchemaWeb / APIHTTP RequestPOST
Scrape Webpage ContentsWeb / APIHTTP RequestSee node parameters
Results to ListTransformSplit OutSee node parameters
Recursive Character Text Splitter1TransformText Splitter Recursive Character Text SplitterSee node parameters
Content Chunking @ 50k CharsTransformEdit FieldsSee node parameters
Split Out ChunksTransformSplit OutSee node parameters
Default Data LoaderFiles / mediaDocument Default Data LoaderSee node parameters
Set Embedding VariablesTransformEdit FieldsSee node parameters
Execute Workflow TriggerTriggerExecute Workflow TriggerSee node parameters
Execution DataIntegrationExecution DataSee node parameters
EventRouterRoutingSwitchSee node parameters
Google Gemini Chat ModelAI & modelsLM Chat Google GeminiSee node parameters
Successful RunsRoutingFilterSee node parameters
For Each Document...RoutingLoop Over ItemsSee node parameters
Embeddings Google GeminiAI & modelsEmbeddings Google GeminiSee node parameters
Has API Documentation?AI & modelsText ClassifierSee node parameters
Store Document EmbeddingsData storeVector Store QdrantSee node parameters
Embeddings Google Gemini1AI & modelsEmbeddings Google GeminiSee node parameters
Google Gemini Chat Model1AI & modelsLM Chat Google GeminiSee node parameters
Extract API OperationsAI & modelsInformation ExtractorSee node parameters
Search in Relevant DocsData storeVector Store QdrantSee node parameters
WaitWaitWaitSee node parameters
Remove DupesTransformRemove DuplicatesSee node parameters
Filter ResultsRoutingFilterSee node parameters
ResearchSubworkflowExecute WorkflowSee node parameters
Has Results?RoutingIfSee node parameters
Response EmptyTransformEdit FieldsSee node parameters
Response OKTransformEdit FieldsSee node parameters
Combine DocsTransformAggregateSee node parameters
Template to ListTransformSplit OutSee node parameters
Query TemplatesTransformEdit FieldsSee node parameters
Google Gemini Chat Model2AI & modelsLM Chat Google GeminiSee node parameters
For Each Template...RoutingLoop Over ItemsSee node parameters
Query & DocsTransformEdit FieldsSee node parameters
Identify Service ProductsAI & modelsInformation ExtractorSee node parameters
Extract API TemplatesTransformEdit FieldsSee node parameters
Embeddings Google Gemini2AI & modelsEmbeddings Google GeminiSee node parameters
Search in Relevant Docs1Data storeVector Store QdrantSee node parameters
Combine Docs1TransformAggregateSee node parameters
Query & Docs1TransformEdit FieldsSee node parameters
For Each Template...1RoutingLoop Over ItemsSee node parameters
Merge ListsCodeCodeSee node parameters
Remove DuplicatesTransformRemove DuplicatesSee node parameters
Append RowData storeGoogle Sheetsappend
Response OK1TransformEdit FieldsSee node parameters
Has Operations?RoutingIfSee node parameters
Response Empty1TransformEdit FieldsSee node parameters
Research PendingData storeGoogle Sheetsupdate
Research ResultData storeGoogle Sheetsupdate
Research ErrorData storeGoogle Sheetsupdate
Extract PendingData storeGoogle Sheetsupdate
Research EventTransformEdit FieldsSee node parameters
Extract EventTransformEdit FieldsSee node parameters
ExtractSubworkflowExecute WorkflowSee node parameters
Extract ResultData storeGoogle Sheetsupdate
Extract ErrorData storeGoogle Sheetsupdate
Get API OperationsData storeGoogle SheetsSee node parameters
Contruct JSON SchemaCodeCodeSee node parameters
Upload to DriveFiles / mediaGoogle DrivecreateFromText
Set Upload FieldsTransformEdit FieldsSee node parameters
Response OK2TransformEdit FieldsSee node parameters
Generate EventTransformEdit FieldsSee node parameters
Generate PendingData storeGoogle Sheetsupdate
GenerateSubworkflowExecute WorkflowSee node parameters
Generate ErrorData storeGoogle Sheetsupdate
Generate ResultData storeGoogle Sheetsupdate
Get All ExtractData storeGoogle SheetsSee node parameters
Get All ResearchData storeGoogle SheetsSee node parameters
For Each Research...RoutingLoop Over ItemsSee node parameters
For Each Extract...RoutingLoop Over ItemsSee node parameters
Wait1WaitWaitSee node parameters
All Research Done?RoutingIfSee node parameters
All Extract Done?RoutingIfSee node parameters
Get All GenerateData storeGoogle SheetsSee node parameters
All Generate Done?RoutingIfSee node parameters
For Each Generate...RoutingLoop Over ItemsSee node parameters
Wait2WaitWaitSee node parameters
Has Results?1RoutingIfSee node parameters
Response Scrape ErrorTransformEdit FieldsSee node parameters
Has Results?3RoutingIfSee node parameters
Response No API DocsTransformEdit FieldsSee node parameters

Setup

  1. Download the JSON and import it into an isolated n8n instance. Leave the workflow inactive.
  2. Connect your own credentials through n8n’s credential store. Replace REPLACE_WITH_* values with your resource identifiers.
  3. Inspect API destinations, Code nodes, database queries, file paths, and outbound actions.
  4. Run with synthetic data and harmless destinations. Enable triggers only after checking the actual outputs.

Requirements

An n8n instance with the listed node types and compatible versions. Service-connected workflows may require accounts, credentials, or paid APIs.

Credential types declared in the source

  • googleSheetsOAuth2Api

Workflow notes

Stage 1 - Research for API Documentation

Stage 1 - Research for API Documentation

  • Fetch a list of services pending research from Database (Google Sheet)
  • Uses a search engine (Google) to find API Documentation for each service
  • Uses Webscraper (Apify) to read the contents of search results to filter irrelevant pages
  • Stores webpage contents and metadata into Vector Store (Qdrant)
Stage 2 - Extract API Operations From Documentation

Stage 2 - Extract API Operations From Documentation

  • Fetch a list of services pending extraction from Database (Google Sheet)
  • Query Vector store (Qdrant) to figure out service's products, solutions and offerings
  • Query Vector store (Qdrant) again for API documentation relevant to these products, solutions and offerings
  • Extract any API operations found in the API documentation results using LLM (Gemini)
  • Store extracted API operations into Database (Google Sheet)
Stage 3 - Generate Custom Schema From API Operations

Stage 3 - Generate Custom Schema From API Operations

  • Fetch a list of services pending generation from Database (Google Sheet)
  • Fetch all API operations for each service from Database (Google Sheet)
  • Use Code node to combine and group all API operations for a service and convert to a custom schema
  • Upload the resulting custom schema to file storage (Google Drive)
Stage 1 - Research for API Documentation

Stage 1 - Research for API Documentation

Purpose and structure

This folder contains the Stage 1 - Research for API Documentation workflow. Its executable nodes use aggregate, code, documentDefaultDataLoader, embeddingsGoogleGemini, executeWorkflow, executeWorkflowTrigger, executionData, filter, googleDrive, googleSheets, httpRequest, if, informationExtractor, lmChatGoogleGemini, manualTrigger, removeDuplicates, set, splitInBatches, splitOut, switch, textClassifier, textSplitterRecursiveCharacterTextSplitter, vectorStoreQdrant, wait. The table and connection map below are derived from the JSON, not an inferred guarantee of behavior.

Setup

Import inactive. Configure your own credentials and replace REPLACE_WITH_* values. Review external destinations and Code nodes before running.

Entry points

When clicking ‘Test workflow’, Execute Workflow Trigger

Verification

Sanitized source candidate; not runtime-tested. This overview is generated from node metadata. Read the folder README for the connection map, credential types, and license.

Attribution

https://github.com/Zie619/n8n-workflows/blob/94007c1445d9258a7da116646b79473e7c7c3282/workflows/Wait/0668_Wait_Splitout_Create_Webhook.json MIT; preserve source notices.

Canvas section labels

These name areas of the original canvas; they do not include explanatory instructions.

  • Stage 1 - Subworkflow
  • Stage 2 - Subworkflow
  • Stage 3 - Subworkflow

More in AI & research