export interface PitchDeckInput {
companyName: string;
problem: string;
solution: string;
targetMarket: string;
businessModel: string;
industry: string;
competition?: string;
fundingAmount?: string;
useOfFunds?: string;
}
export interface Slide {
title: string;
content: string;
type: string;
}
export interface PitchDeck {
companyName: string;
slides: Slide[];
generatedAt: string;
}
export function generatePitchDeck(data: PitchDeckInput): PitchDeck {
const slides = generatePitchSlides(data);
return {
companyName: data.companyName,
slides,
generatedAt: new Date().toISOString(),
};
}
function generatePitchSlides(data: PitchDeckInput): Slide[] {
const slides: Slide[] = [
{
title: "Title Slide",
content: `${data.companyName}\n\nTransforming ${data.industry} through Innovation\n\nPowered by cutting-edge technology and visionary leadership`,
type: "title",
},
{
title: "The Problem",
content: `Market Challenge:\n\n${data.problem}\n\nThis problem affects millions in ${data.targetMarket} and represents a significant market opportunity.\n\nCurrent solutions are inadequate, creating a gap that ${data.companyName} is uniquely positioned to fill.`,
type: "problem",
},
{
title: "Our Solution",
content: `${data.companyName} Solution:\n\n${data.solution}\n\nKey Benefits:\n• Innovative approach that addresses core pain points\n• Scalable technology platform\n• Superior user experience\n• Measurable ROI for customers\n\nWhy it works: Our solution leverages cutting-edge technology to deliver unprecedented value.`,
type: "solution",
},
{
title: "Market Opportunity",
content: `Target Market:\n\n${data.targetMarket}\n\nMarket Size:\n• Total Addressable Market (TAM): $10B+ in ${data.industry}\n• Serviceable Addressable Market (SAM): $2B+\n• Serviceable Obtainable Market (SOM): $200M+\n\nGrowing at 15-25% annually with strong tailwinds supporting expansion.`,
type: "market",
},
{
title: "Business Model",
content: `Revenue Strategy:\n\n${data.businessModel}\n\nRevenue Streams:\n• Primary: Core product/service offerings\n• Secondary: Premium features and services\n• Future: Data insights and platform partnerships\n\nUnit Economics:\n• Strong customer lifetime value (LTV)\n• Low customer acquisition cost (CAC)\n• Healthy gross margins (60%+)`,
type: "business-model",
},
];
// Add competition slide if provided
if (data.competition) {
slides.push({
title: "Competitive Landscape",
content: `Current Competition:\n\n${data.competition}\n\nOur Competitive Advantage:\n• First-mover advantage in key segments\n• Superior technology and user experience\n• Strong team with deep industry expertise\n• Proprietary data and insights\n• Network effects and switching costs\n\nWe're not just better – we're different.`,
type: "competition",
});
}
// Add traction slide
slides.push({
title: "Traction & Milestones",
content: `Current Progress:\n\n• Product Development: MVP completed, beta testing underway\n• Customer Validation: Strong early user feedback\n• Team Building: Key hires in place\n• Partnerships: Strategic relationships established\n\nUpcoming Milestones:\n• Q2 2025: Public launch\n• Q3 2025: 1,000+ active users\n• Q4 2025: Revenue growth acceleration\n• 2026: Market expansion`,
type: "traction",
});
// Add team slide
slides.push({
title: "The Team",
content: `Leadership Team:\n\n• Experienced founders with proven track record\n• Deep domain expertise in ${data.industry}\n• Strong technical and business backgrounds\n• Previous successful exits and unicorn experience\n\nAdvisors & Board:\n• Industry veterans and thought leaders\n• Strategic investors with relevant networks\n• Subject matter experts\n\nWe have the right team to execute this vision.`,
type: "team",
});
// Add financial projections
slides.push({
title: "Financial Projections",
content: `Revenue Forecast (5-Year):\n\nYear 1: $500K ARR\nYear 2: $2M ARR\nYear 3: $8M ARR\nYear 4: $20M ARR\nYear 5: $50M ARR\n\nKey Metrics:\n• 40% month-over-month growth\n• $150 Average Contract Value (ACV)\n• 95% Net Revenue Retention\n• 18-month payback period\n\nPath to profitability by Year 3.`,
type: "financials",
});
// Add funding slide if provided
if (data.fundingAmount || data.useOfFunds) {
slides.push({
title: "Funding Request",
content: `Investment Opportunity:\n\n${data.fundingAmount ? `Seeking: ${data.fundingAmount}` : "Seeking Series A funding"}\n\n${
data.useOfFunds
? `Use of Funds:\n${data.useOfFunds}`
: "Use of Funds:\n• 50% Product development and engineering\n• 30% Sales and marketing\n• 15% Operations and team expansion\n• 5% Working capital"
}\n\nThis funding will accelerate our path to market leadership and enable rapid scaling.`,
type: "funding",
});
}
// Add closing slide
slides.push({
title: "Thank You",
content: `${data.companyName}\nReady to Transform ${data.industry}\n\nLet's build the future together.\n\nQuestions & Discussion\n\nContact: hello@${data.companyName.toLowerCase().replace(/\s+/g, "")}.com`,
type: "closing",
});
return slides;
}