Pitch Mode automatically generates industry-specific marketing content based on a brand's industry, using predefined use cases from industry_journeys.json. The system will make a single AI call to determine both the industry and use case, then use that information to generate relevant content.
- User enters brand domain/name
- System looks up brand information (existing)
- System makes ONE AI call to:
- Determine industry from our enum
- Select the appropriate use case from industry_journeys.json
- System generates content using the determined industry/use case
- User can view generated content in preview mode
- User can generate and export a pitch slide
- Create new Netlify Function
determine-industry- Set up function with proper CORS headers
- Implement OpenAI integration
- Create prompt template with industry_journeys.json
- Add confidence scoring
- Add error handling with "Other Industries" fallback
- Add detailed logging
- Update frontend to use new endpoint
- Add determineIndustry function to ai.ts
- Update types to include industry determination
- Add logging for debugging
- Test industry determination
- Test with various brands
- Verify confidence scores
- Check error handling
- Update generate-content Netlify Function
- Modify prompt to use industry and use case
- Include brand-specific details
- Use channel examples as templates
- Update response format
- Update frontend
- Remove content type selection UI
- Update content generation flow
- Add loading states
- Console Log to the browser window so we can see whats happening
- Test content generation
- Test with various industries
- Verify brand voice consistency
- Check use case alignment
- Create new component
PitchModeView- Design 16:9 layout
- Include all 4 previews
- Add brand information header
- Add industry/use case information
- Add export functionality
- Implement HTML to image conversion
- Add download button
- Ensure proper resolution
- Test preview generation
- Test with various content lengths
- Verify image quality
- Check mobile responsiveness
- Add loading states
- During industry determination
- During content generation
- During preview generation
- Add error states
- For failed industry determination
- For failed content generation
- For failed preview generation
- Add analytics
- Track industry determination accuracy
- Track preview generation usage
- Track export usage
- Final testing
- End-to-end flow testing
- Cross-browser testing
- Mobile testing
interface IndustryDetermination {
industry: string;
useCase: string;
confidence: number;
channelExamples: {
inApp: string;
sms: string;
email: string;
push: string;
};
}The content generation will use the determined industry and use case to create brand-specific content that follows the use case structure.
- 16:9 aspect ratio
- Brand information header
- Industry and use case information
- 4 preview sections (Email, SMS, Push, In-App)
- Export button
- Test each phase independently
- Use a variety of brands across different industries
- Verify content quality and relevance
- Check error handling and fallbacks
- Test export functionality
- Verify mobile responsiveness
- Accurate industry determination (high confidence scores)
- Relevant, brand-specific content generation
- High-quality preview generation
- Smooth export functionality
- Good error handling and user feedback
- Multiple use cases per industry
- Custom use case templates
- Industry-specific customization options
- Analytics dashboard
- A/B testing capabilities