Overview
This use case generates business proposals by searching a knowledge base of historical proposals (via RAG), then using Claude to draft a new proposal based on the requirements document and similar past work.
Folder structure
Workflow architecture
config.ts highlights
Three workflow definitions
Main workflow (HTTP trigger with file upload input)
File input schema
File output schema
Sub-workflow definition
Knowledge base access
Data ingestion configuration
For embedding documents into the vector store:Key patterns demonstrated
1. Multi-workflow architecture
Three workflows with clear separation of concerns — main generation, retrieval, and PDF conversion.2. Sub-workflow with file upload
The PDF sub-workflow receives execution metadata from the parent and usesexecutionIdOverride / executionSecretOverride on the Codika Upload File node.
3. SUBWKFL placeholder
Parent calls sub-workflow via:4. File input and output
Users upload a document (requirements file), the workflow processes it, generates a PDF, uploads it via Codika Upload File, and returns thedocumentId as a file type output field.