AI-Assisted Content Generation

Generate business documents, legal pages, and documentation with AI enhancement

Bootspring can generate professional documents using your project context, from privacy policies to README files to business plans.

Overview#

Content generation uses:

  • Your project configuration for context
  • Document templates with customizable sections
  • AI enhancement prompts for sophisticated content

Available Templates#

TemplateDescription
privacy-policyGDPR/CCPA compliant privacy policy
terms-of-serviceStandard terms of service agreement
security-policySecurity disclosure and vulnerability reporting

Documentation#

TemplateDescription
readmeProject README with setup instructions
contributingGuide for project contributors
api-documentationAPI endpoint documentation
changelogVersion changelog (Keep a Changelog format)

Business Documents#

TemplateDescription
business-planBasic business plan outline
pitch-deck-outlineInvestor pitch deck structure

Generating Documents#

Via CLI#

1# Generate a single document 2bootspring content generate privacy-policy 3 4# Generate and save to file 5bootspring content generate privacy-policy --save 6 7# Generate multiple documents 8bootspring content generate privacy-policy terms-of-service readme 9 10# Generate to specific directory 11bootspring content generate readme --output ./docs

Via MCP#

bootspring_content action="generate" template="privacy-policy" save=true

Via API#

1const contentGen = require('bootspring/intelligence/content-gen'); 2 3// List available templates 4const templates = contentGen.listTemplates(); 5 6// Generate a document 7const result = contentGen.generateDocument('privacy-policy', { 8 save: true, 9 outputDir: './docs', 10 context: { 11 projectName: 'My App', 12 projectDescription: 'A revolutionary new app' 13 } 14}); 15 16// Generate multiple documents 17const results = contentGen.generateDocuments( 18 ['privacy-policy', 'terms-of-service', 'readme'], 19 { save: true } 20);

Template Sections#

Each template has multiple sections that are generated based on your project context.

Privacy Policy Sections#

  • Introduction
  • Data Collection
  • Data Usage
  • Data Sharing
  • User Rights
  • Cookies
  • Security
  • Contact

README Sections#

  • Title & Description
  • Features
  • Prerequisites
  • Installation
  • Configuration
  • Usage
  • Contributing
  • License

Changelog Sections#

  • Header (Keep a Changelog format)
  • Unreleased changes
  • Version history

AI Enhancement#

Getting Enhancement Prompts#

For more sophisticated content, use AI enhancement prompts:

1const prompt = contentGen.getEnhancementPrompt('privacy-policy', 'data-collection'); 2// { 3// success: true, 4// prompt: "Enhance the data collection section for a nextjs application 5// that uses postgresql. Include specific data types collected 6// and purposes.", 7// context: { framework: 'nextjs', database: 'postgresql' } 8// }

Using with Claude#

1# Get the prompt 2bootspring content prompt privacy-policy data-collection 3 4# Use with Claude Code 5# "Using the Bootspring content prompt, enhance my privacy policy's 6# data collection section"

Content Validation#

Validate generated content for completeness:

1const validation = contentGen.validateContent(content, 'privacy-policy'); 2// { 3// valid: true, 4// issues: [ 5// { type: 'placeholder', severity: 'warning', 6// message: 'Content contains placeholder sections' } 7// ] 8// }

Validation Checks#

  • Placeholder detection - Finds unfilled sections
  • Length validation - Ensures adequate content
  • Required terms - Checks for key terminology by document type

Project Context#

Content generation automatically uses your project configuration:

1// Loaded from bootspring.config.js and package.json 2{ 3 projectName: 'My Project', 4 projectDescription: 'A modern web application', 5 projectVersion: '1.0.0', 6 framework: 'nextjs', 7 language: 'typescript', 8 database: 'postgresql', 9 hosting: 'vercel' 10}

Customizing Output#

Override Context#

1contentGen.generateDocument('readme', { 2 context: { 3 projectName: 'Custom Name', 4 features: ['Real-time sync', 'Offline support', 'Team collaboration'] 5 } 6});

Custom Filename#

contentGen.generateDocument('privacy-policy', { save: true, filename: 'PRIVACY.md' });

Best Practices#

  1. Review all generated content - Templates provide a starting point
  2. Consult legal professionals - For privacy policies and terms of service
  3. Keep documents updated - Regenerate when your app changes significantly
  4. Use AI enhancement - For more sophisticated, context-aware content