← All agents

AI & research · One purpose, multiple implementations

Stage 1 - Research for API Documentation

Adapt the published “Stage 1 - Research for API Documentation” workflow to other implementations while preserving its documented behavior.

The source contains 82 executable nodes and 91 connections. This draft is derived from the n8n export; it needs a human-reviewed purpose, input/output contract, and behavioral tests before a port can claim equivalence.

Open agent files on GitHub ↗

Shared workflow

This initial Mermaid diagram shows observed connections from the n8n source, including model and tool dependencies. Unresolved connections are listed under Evidence. It is a starting point for the shared design; it does not execute the agent or establish correctness.

Rendering the workflow diagram…

Read the Mermaid source
flowchart LR
  n0["When clicking #8216;Test workflow#8217;"]
  n1["Web Search For API Schema"]
  n2["Scrape Webpage Contents"]
  n3["Results to List"]
  n4["Recursive Character Text Splitter1"]
  n5["Content Chunking #64; 50k Chars"]
  n6["Split Out Chunks"]
  n7["Default Data Loader"]
  n8["Set Embedding Variables"]
  n9["Execute Workflow Trigger"]
  n10["Execution Data"]
  n11["EventRouter"]
  n12["Google Gemini Chat Model"]
  n13["Successful Runs"]
  n14["For Each Document..."]
  n15["Embeddings Google Gemini"]
  n16["Has API Documentation#63;"]
  n17["Store Document Embeddings"]
  n18["Embeddings Google Gemini1"]
  n19["Google Gemini Chat Model1"]
  n20["Extract API Operations"]
  n21["Search in Relevant Docs"]
  n22["Wait"]
  n23["Remove Dupes"]
  n24["Filter Results"]
  n25["Research"]
  n26["Has Results#63;"]
  n27["Response Empty"]
  n28["Response OK"]
  n29["Combine Docs"]
  n30["Template to List"]
  n31["Query Templates"]
  n32["Google Gemini Chat Model2"]
  n33["For Each Template..."]
  n34["Query #38; Docs"]
  n35["Identify Service Products"]
  n36["Extract API Templates"]
  n37["Embeddings Google Gemini2"]
  n38["Search in Relevant Docs1"]
  n39["Combine Docs1"]
  n40["Query #38; Docs1"]
  n41["For Each Template...1"]
  n42["Merge Lists"]
  n43["Remove Duplicates"]
  n44["Append Row"]
  n45["Response OK1"]
  n46["Has Operations#63;"]
  n47["Response Empty1"]
  n48["Research Pending"]
  n49["Research Result"]
  n50["Research Error"]
  n51["Extract Pending"]
  n52["Research Event"]
  n53["Extract Event"]
  n54["Extract"]
  n55["Extract Result"]
  n56["Extract Error"]
  n57["Get API Operations"]
  n58["Contruct JSON Schema"]
  n59["Upload to Drive"]
  n60["Set Upload Fields"]
  n61["Response OK2"]
  n62["Generate Event"]
  n63["Generate Pending"]
  n64["Generate"]
  n65["Generate Error"]
  n66["Generate Result"]
  n67["Get All Extract"]
  n68["Get All Research"]
  n69["For Each Research..."]
  n70["For Each Extract..."]
  n71["Wait1"]
  n72["All Research Done#63;"]
  n73["All Extract Done#63;"]
  n74["Get All Generate"]
  n75["All Generate Done#63;"]
  n76["For Each Generate..."]
  n77["Wait2"]
  n78["Has Results#63;1"]
  n79["Response Scrape Error"]
  n80["Has Results#63;3"]
  n81["Response No API Docs"]
  n22 -->|"main out 0 to in 0"| n69
  n71 -->|"main out 0 to in 0"| n70
  n77 -->|"main out 0 to in 0"| n76
  n54 -->|"main out 0 to in 0"| n55
  n54 -->|"main out 1 to in 0"| n56
  n64 -->|"main out 0 to in 0"| n66
  n64 -->|"main out 1 to in 0"| n65
  n25 -->|"main out 0 to in 0"| n49
  n25 -->|"main out 1 to in 0"| n50
  n44 -->|"main out 0 to in 0"| n45
  n11 -->|"main out 0 to in 0"| n1
  n11 -->|"main out 1 to in 0"| n31
  n11 -->|"main out 2 to in 0"| n57
  n42 -->|"main out 0 to in 0"| n46
  n29 -->|"main out 0 to in 0"| n34
  n26 -->|"main out 0 to in 0"| n3
  n26 -->|"main out 1 to in 0"| n27
  n34 -->|"main out 0 to in 0"| n33
  n23 -->|"main out 0 to in 0"| n2
  n39 -->|"main out 0 to in 0"| n40
  n56 -->|"main out 0 to in 0"| n71
  n53 -->|"main out 0 to in 0"| n54
  n78 -->|"main out 0 to in 0"| n16
  n78 -->|"main out 1 to in 0"| n79
  n80 -->|"main out 0 to in 0"| n8
  n80 -->|"main out 1 to in 0"| n81
  n40 -->|"main out 0 to in 0"| n41
  n10 -->|"main out 0 to in 0"| n11
  n55 -->|"main out 0 to in 0"| n71
  n24 -->|"main out 0 to in 0"| n23
  n65 -->|"main out 0 to in 0"| n77
  n62 -->|"main out 0 to in 0"| n64
  n50 -->|"main out 0 to in 0"| n22
  n52 -->|"main out 0 to in 0"| n25
  n51 -->|"main out 0 to in 0"| n53
  n66 -->|"main out 0 to in 0"| n77
  n67 -->|"main out 0 to in 0"| n73
  n46 -->|"main out 0 to in 0"| n43
  n46 -->|"main out 1 to in 0"| n47
  n31 -->|"main out 0 to in 0"| n30
  n49 -->|"main out 0 to in 0"| n22
  n3 -->|"main out 0 to in 0"| n24
  n13 -->|"main out 0 to in 0"| n78
  n59 -->|"main out 0 to in 0"| n61
  n63 -->|"main out 0 to in 0"| n62
  n74 -->|"main out 0 to in 0"| n75
  n68 -->|"main out 0 to in 0"| n72
  n48 -->|"main out 0 to in 0"| n52
  n6 -->|"main out 0 to in 0"| n17
  n30 -->|"main out 0 to in 0"| n33
  n73 -->|"main out 0 to in 0"| n74
  n73 -->|"main out 1 to in 0"| n70
  n43 -->|"main out 0 to in 0"| n44
  n60 -->|"main out 0 to in 0"| n59
  n75 -->|"main out 1 to in 0"| n76
  n72 -->|"main out 0 to in 0"| n67
  n72 -->|"main out 1 to in 0"| n69
  n57 -->|"main out 0 to in 0"| n58
  n7 -->|"ai_document out 0 to in 0"| n17
  n70 -->|"main out 0 to in 0"| n74
  n70 -->|"main out 1 to in 0"| n51
  n58 -->|"main out 0 to in 0"| n60
  n14 -->|"main out 0 to in 0"| n28
  n14 -->|"main out 1 to in 0"| n5
  n76 -->|"main out 1 to in 0"| n63
  n69 -->|"main out 0 to in 0"| n67
  n69 -->|"main out 1 to in 0"| n48
  n33 -->|"main out 0 to in 0"| n35
  n33 -->|"main out 1 to in 0"| n21
  n36 -->|"main out 0 to in 0"| n41
  n41 -->|"main out 0 to in 0"| n20
  n41 -->|"main out 1 to in 0"| n38
  n20 -->|"main out 0 to in 0"| n42
  n16 -->|"main out 0 to in 0"| n80
  n2 -->|"main out 0 to in 0"| n13
  n21 -->|"main out 0 to in 0"| n29
  n8 -->|"main out 0 to in 0"| n14
  n15 -->|"ai_embedding out 0 to in 0"| n17
  n9 -->|"main out 0 to in 0"| n10
  n12 -->|"ai_languageModel out 0 to in 0"| n16
  n38 -->|"main out 0 to in 0"| n39
  n18 -->|"ai_embedding out 0 to in 0"| n21
  n37 -->|"ai_embedding out 0 to in 0"| n38
  n19 -->|"ai_languageModel out 0 to in 0"| n20
  n32 -->|"ai_languageModel out 0 to in 0"| n35
  n35 -->|"main out 0 to in 0"| n36
  n17 -->|"main out 0 to in 0"| n14
  n1 -->|"main out 0 to in 0"| n26
  n5 -->|"main out 0 to in 0"| n6
  n0 -->|"main out 0 to in 0"| n68
  n4 -->|"ai_textSplitter out 0 to in 0"| n7
Read the specification and unresolved requirements ↗

Implementations

Each implementation shares the agent’s purpose. Available source, planned ports, and verified results are labeled separately.

Plain Python

Planned · no code yet

Read the implementation plan ↗

Pydantic AI

Planned · no code yet

Read the implementation plan ↗

CrewAI Flow

Planned · no code yet

Read the implementation plan ↗

CrewAI Crew

Planned · no code yet

Read the implementation plan ↗

LangGraph

Planned · no code yet

Read the implementation plan ↗

Build or operate with an assistant

Each prompt includes separate build and operating instructions tailored to this agent. They are untested instructions, not working implementations. Check the chosen product’s actual capabilities before using it.

Evidence and remaining work

The bulk collection has publication checks, not live-service testing. Diagrams and prompts are documentation. A port needs reviewed schemas, fixtures, actual execution results, and explicit limits before claiming equivalent behavior.

  • Define input/output schemas and expected outputs.
  • Review source expressions, external actions, and failure behavior.
  • Determine whether model judgment is required or deterministic rules suffice.

Curated by Nik Bear Brown. Preserve each implementation’s original attribution and license. These source templates are separate from the audited Claude directory.