Skip to content

Add TypeScript workflow functions to TankQuote MDX#143

Open
devin-ai-integration[bot] wants to merge 1 commit intomainfrom
devin/1723339700-tankquote-workflows
Open

Add TypeScript workflow functions to TankQuote MDX#143
devin-ai-integration[bot] wants to merge 1 commit intomainfrom
devin/1723339700-tankquote-workflows

Conversation

@devin-ai-integration
Copy link
Contributor

Add TypeScript workflow functions to TankQuote MDX

Summary

Added comprehensive TypeScript workflow functions to startups/tankquote.mdx that encode TankQuote AI's core business processes as executable code. The implementation covers five key areas:

  • Customer Acquisition Workflows: Lead qualification, pilot proposals, and customer onboarding
  • Product Development Processes: AI model development and shop-specific calibration
  • Revenue Generation Flows: RFQ processing, quote generation, and pricing optimization
  • Operational Procedures: Capacity management, pricing updates, and metrics tracking
  • Decision-Making Workflows: Priority assessment, human review decisions, and margin optimization

The functions are strongly typed with async/await patterns, error handling, and compose into an end-to-end workflow orchestration. All existing YAML frontmatter and content structure was preserved.

Review & Testing Checklist for Human

  • Verify business logic accuracy - Compare workflow functions against the lean canvas problem/solution statements to ensure the TypeScript code accurately represents the intended business processes
  • Validate data structure design - Review the TypeScript interfaces (RFQPackage, Lead, Customer, Quote, etc.) to confirm they align with real-world data requirements for tank manufacturing
  • Check workflow completeness - Ensure the end-to-end workflow (executeEndToEndWorkflow) covers all critical business steps without gaps or incorrect sequencing
  • Assess decision logic - Review qualification criteria, pricing decisions, and human review triggers to confirm they match business requirements (e.g., NAICS 332420 validation, $10M-200M revenue range)
  • Confirm metrics alignment - Verify that trackMetrics() function measures align with the key metrics defined in the frontmatter (cycle time reduction ≥65%, extraction accuracy ≥98%, etc.)

Test Plan: Since this is conceptual business-as-code, testing should focus on logical review rather than execution. Validate each workflow function against the corresponding business process described in the lean canvas and service definition.


Diagram

%%{ init : { "theme" : "default" }}%%
graph TD
    tankquote["startups/tankquote.mdx<br/>TankQuote Business Definition"]:::major-edit
    
    subgraph "New TypeScript Workflows"
        acquisition["Customer Acquisition<br/>acquireCustomer()"]:::major-edit
        development["Product Development<br/>developAIModel()"]:::major-edit
        revenue["Revenue Generation<br/>processRFQ()"]:::major-edit
        operations["Operations<br/>manageCapacity()"]:::major-edit
        decisions["Decision Making<br/>evaluateRFQPriority()"]:::major-edit
    end
    
    subgraph "Existing Content (Preserved)"
        frontmatter["YAML Frontmatter<br/>Lean Canvas Data"]:::context
        storybrand["StoryBrand Framework"]:::context
        landing["Landing Page Content"]:::context
    end
    
    tankquote --> acquisition
    tankquote --> development
    tankquote --> revenue
    tankquote --> operations
    tankquote --> decisions
    
    frontmatter -.-> acquisition
    frontmatter -.-> revenue
    
    subgraph Legend
        L1[Major Edit]:::major-edit
        L2[Minor Edit]:::minor-edit  
        L3[Context/No Edit]:::context
    end
    
    classDef major-edit fill:#90EE90
    classDef minor-edit fill:#87CEEB
    classDef context fill:#FFFFFF
Loading

Notes

  • The TypeScript functions are conceptual/pseudocode that reference helper functions not yet implemented (e.g., enrichCompanyData, performOCR, fetchSteelIndices)
  • Functions are designed to be composable and represent the business logic described in the lean canvas
  • Error handling and human-in-the-loop patterns are included throughout the workflows
  • The code serves as a specification for how TankQuote AI business processes should operate

Link to Devin run: https://app.devin.ai/sessions/fa18c9cd413d4ebbbc5b5eaad46e81a5
Requested by: unknown user

- Added comprehensive business process workflows as executable TypeScript code
- Covers customer acquisition, product development, revenue generation, operations, and decision-making
- Functions are strongly typed with async/await patterns and error handling
- Preserves existing YAML frontmatter and content structure
- Implements core TankQuote AI business logic based on lean canvas data

Co-Authored-By: unknown <>
@devin-ai-integration
Copy link
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

@vercel
Copy link

vercel bot commented Aug 11, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
startups.do ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 11, 2025 1:34am

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants