Inspiration
I grew up in Nigeria, watching brilliant entrepreneurs with world-changing ideas fail not because their ideas were bad, but because they couldn't afford lawyers, developers, marketers, and accountants.
The barrier to starting a business wasn't talent — it was access to specialized expertise. Across emerging markets, entrepreneurs spend months and millions of Naira on manual business registration, legal paperwork, and building a digital presence. Meanwhile, AI agents can now automate all of it.
When I discovered Gemini's multimodal capabilities and agentic AI patterns from the XPRIZE whitepapers (Agent Skills, Agent Tools & Interoperability, Spec-Driven Production Development, The New SDLC with Vibe Coding, and Security & Evaluation), I realized we could compress an entire business operations team into a single AI platform.
BizHub was born to democratize entrepreneurship: giving every Nigerian entrepreneur the same infrastructure a funded startup has — guiding you from an idea to a registered, revenue-generating business in under 7 days.
What it does
BizHub is an AI Business Operating System with 11 specialized agents that work together to launch and operate a business:
Business Planner Agent — Validates ideas with market analysis, generates investor-ready business plans, financial models, and pitch decks
Vibe Coding Agent — Generates complete production-grade web/mobile apps from natural language (like Antigravity, Google AI Studio, Cursor/bolt.new, but with full-stack capabilities including auth, payments, database, and deployment)
Marketing Agent — Creates content calendars, generates social media posts, schedules across platforms
Legal Agent — Drafts NDAs and employment contracts compliant with Nigerian laws (Contract Act 1990, CAMA 2020, NDPR), exporting directly to DOCX/PDF.
Finance Agent — Generates invoices, provides AI investment advice with follow-up Q&A
Customer Engagement Agent — Unified inbox, autonomous calling, SMS/email responses
Expert Matchmaker Agent — Connects founders with mentors, co-founders, investors
CAC (Corporate Affairs Commission) Registration Agent — Automates Nigerian business registration end-to-end
Architecture Agent — Designs system architecture with 7-pillar security
Evaluation Agent — Conducts Behavior-Driven Development (BDD) testing using Gherkin specs
Deployment Agent — Instantly pushes production code to GitHub, Vercel, and Cloud Run
How we built it
Architecture • Frontend: Next.js 16 + React 19 + TypeScript + Tailwind CSS 4 • Backend: Next.js API Routes (Node.js runtime) • Database: Prisma + SQLite (production: PostgreSQL) • AI Providers: Gemini 2.5 Flash/Pro (primary), NVIDIA NIM 2026 models (second fallback), DeepSeek V4 Flash/Pro (third fallback) • Auth: NextAuth.js with Google OAuth • Payments: Stripe (USD) + Paystack (NGN) • Deployment: Vercel + GitHub Actions • Monitoring: Sentry + PostHog
Key Technical Achievements
Unified AI Client (src/lib/bizhub/ai-client.ts): Routes requests through Gemini → NVIDIA → DeepSeek → deterministic fallback, with automatic provider failover and 3-tier resilience
Template-Based Fallback Generator (src/lib/fallback/template-generator.ts): 10 unique app templates with distinct colors, features, and data — generates different apps per prompt even when all AI providers fail
50-Template Fallback Generator (src/lib/fallback/template-generator.ts): 50 unique app templates across 10 industries (5 styles each) with distinct colors, features, data, and 6+ unique Unsplash images per template — generates different beautiful apps per prompt even when all AI providers fail
AI-Powered Context Gatherer (/api/bizhub/agent/plan): Uses AI to analyze user prompts, detect industry, identify competitive edge features, and create detailed implementation plans with market trends and recommended integrations
Industry Intelligence Database: Rich data for 10 industries including market trends, competitive edge features, standard requirements, recommended integrations, and user expectations
SSE Streaming Endpoint (/api/bizhub/agent/build/stream): Real-time agent trajectory with structured events (plan_start, file_progress, debug_fix, deploy_url, complete)
Guardrails (src/lib/guardrails/security.ts): Security hooks that block dangerous commands, detect hardcoded secrets, enforce token budgets
Live Preview Engine: Compiles and renders generated Next.js apps in real-time using Babel standalone + React 18 + Tailwind CSS CDN + Framer Motion, with client-side routing, multi-page navigation, and beautiful image holder panels
**Follow-Up Intelligence**: applyFollowUpModifications() function that preserves existing app structure and only modifies relevant files based on the follow-up prompt (search → only listing page, auth → only login/signup pages, etc.)Admin Dashboard: Full management system with user management, payment renewal tracking, agent observability (11 agents with live status/latency/task counts), CAC application management (approve/query/reject), and notification broadcasting
**MCP Configuration** (.cursor/mcp.json): 6 MCP servers (PostgreSQL, GitHub, Playwright, Stripe, Shell, Filesystem)Hydration-safe SSR: Page loader uses mounted guard to prevent hydration mismatches
Neon animated prompt input: Rotating gradient border with typewriter best-practice suggestions
File explorer with recursive tree: Collapsible folders, file templates, right-click context menu
Image preview tabs: Generated images preview alongside code files
20 AI models in the model selector (3 Gemini + 13 NVIDIA + 2 DeepSeek)
Challenges we ran into
AI Provider Reliability: NVIDIA NIM APIs frequently timed out (60-90s) or returned incomplete responses (1-4 files instead of 10+). We solved this by implementing a 3-tier fallback (Gemini → NVIDIA → DeepSeek → Template) with a minimum file count check (5+ files required from AI, otherwise fall back to template generator).
Preview Rendering: Compiling AI-generated Next.js/React code in a browser iframe required building a custom compilation pipeline using Babel standalone, with import statement replacement, React hook injection, and client-side routing via React Context. The import replacement regex initially ate code (/import\s+([^;]+);/g was too greedy), which we fixed with specific patterns.
Hydration mismatch: framer-motion's AnimatePresence rendered different DOM on server vs client. Fixed by replacing with mounted && conditional that only renders after client hydration.
Turbopack HMR corruption: Inline template strings containing import keywords in generateProductionFallback caused Turbopack's static analyzer to try resolving them as actual imports, corrupting the client bundle. Fixed by replacing template literals with string array .join('\n').
Template Variety: Initially all builds produced the same app (first template for each industry). Fixed by implementing random template selection from 5 styles per industry, ensuring different builds get different designs.
Follow-Up Prompt Intelligence: AI would regenerate the entire app instead of modifying only relevant files. Solved with preserveUnchangedFiles() function that maps follow-up keywords to allowed files and restores original code for anything not in the allowed list.
Image Deduplication: Template image arrays had duplicates (hero image same as card image). Fixed by ensuring hero/section images use different photo IDs from item images, and using array index i instead of item.id for image selection.
Stuck Loading State: The CodeSection's loading state could get stuck as true if a previous generation was interrupted. Fixed with a mount-time reset, 120s safety timeout, and proper cleanup in finally blocks.
Model ID type errors: Updated ModelId type to use 2026 model IDs but agent cards still referenced old IDs (gemini-3.1-pro, claude-fable-5). Fixed all 12 references.
Accomplishments that we're proud of
50 Unique Design Templates: Built a comprehensive template system with 50 designs across 10 industries, each with unique colors, app names, features, data arrays, and 6+ unique images — ensuring no two builds look the same.
11 Production-Grade AI Agents: Each agent is fully functional with real AI integration (not mocked), including business plan generation (11K+ character plans), idea validation (real scores 87/100), legal document drafting, marketing content creation, and code generation.
Live Preview with Multi-Page Navigation: Generated apps render in real-time with working page navigation, search functionality, beautiful image holder panels with 3xl rounded edges, glassmorphism cards, and Framer Motion animations.
Admin Dashboard with Real Controls: Full management system with CAC application approval workflow, payment renewal tracking, agent observability, and notification broadcasting — no demo data, all real.
3-Tier AI Fallback: Gemini → NVIDIA → DeepSeek → Template, ensuring the app always works even when AI providers are down or slow.
CAC Registration Integration: End-to-end Nigerian business registration with name reservation, admin approval workflow, and payment integration (Paystack for NGN).
Payment Page Generation: Generated apps include pricing pages with monthly/yearly toggle, Stripe + Paystack integration, and FAQ sections.
What we learned
Agent Skills pattern: Progressive disclosure — load only relevant skills per task to optimize token usage
AI Fallback Strategy: Relying on a single AI provider is fragile. Building a multi-tier fallback system (Gemini → NVIDIA → DeepSeek → Template) ensures the app always works, even when providers are down, rate-limited, or slow.
Template Quality Matters: When AI fails, the template fallback is the last line of defense. Investing in 50 high-quality templates with unique designs, real images, and proper structure ensures users always get a beautiful app.
Follow-Up Intelligence is Hard: AI models tend to regenerate entire apps instead of making targeted modifications. Building server-side structure preservation (preserveUnchangedFiles) was essential to ensure follow-up prompts only change relevant files.
Preview Rendering is Complex: Compiling Next.js code in a browser requires careful handling of imports, React hooks, routing, and CSS. The Babel standalone approach works but requires precise regex patterns for import replacement.
Industry Intelligence is Valuable: Building a database of industry-specific features, market trends, and competitive edge features makes the Context Gatherer much more intelligent and useful.
Spec-Driven Development: Write BDD specs (Gherkin) before generating code
Hydration Errors are Sneaky: Server/client mismatches can cause subtle bugs that are hard to debug. Using suppressHydrationWarning and mounted guards is essential for SSR apps with client-only state.
Vibe Coding as Factory: Treat the agent as a production factory, not a demo — invest in harness, evaluate continuously
MCP over custom wrappers: Use Model Context Protocol for tool interoperability instead of building custom integrations.
Security First: Implement 7-Pillar Security Architecture: Sandboxing, supply chain scanning, zero trust, red/blue/green teaming, observability, evaluation.
What's next for BizHub
Autonomous Economy Agent BizHub agents will negotiate with suppliers, banks, and customers—autonomously signing contracts and executing transactions via UCP (Universal Commerce Protocol—agents speak a common commerce language) and AP2 (Agent Payments Protocol—secure, rule bound agent payments), creating a self sustaining business ecosystem.
Physical AI Integration Connect to robotics and IoT via NVIDIA Cosmos3—agents will manage physical supply chains, warehouse automation, and last mile delivery, bridging digital and physical business operations.
Self Evolving Agent Skills Meta skills will analyze successful business trajectories, generate new skills, and improve existing ones—BizHub will learn from every user, becoming smarter with each business launched.
Predictive Business Intelligence Gemini 2.5 Pro will forecast market trends, predict cash flow crises, and suggest pivot strategies 6 months in advance—turning BizHub into a strategic advisor, not just an executor.
Agent to Agent Marketplace Founders will hire external A2A (Agent to Agent—agents communicate and delegate work across networks) specialists (legal, marketing, finance) through BizHub's registry, creating a global marketplace where agents compete for tasks—BizHub becomes the OS for the agentic economy.
Zero Touch Compliance Agents will auto submit tax returns, annual reports, and regulatory filings across multiple jurisdictions, keeping businesses compliant without human intervention—a true "set and forget" legal layer.
Generative UI with A2UI A2UI (Agent to User Interface—agents declaratively describe UI components that render natively on any device) will let agents design and refine UIs based on user behavior analytics, generating new layouts, features, and workflows in real time—BizHub apps will evolve dynamically as users interact.
Global Expansion Engine BizHub will support business registration in 50+ countries with local compliance, payment gateways, and language support—anyone anywhere can launch a compliant business in any jurisdiction.
Quantum Ready Security Post quantum cryptography will protect all agent communications and transactions—BizHub will be the first platform secure against quantum threats, future proofing the agentic economy.
Multi Language Support Add French, German, Mandarin, Swahili, Nigeria Languages (Igbo, Hausa, Yoruba) and Arabic for pan African and global expansion—agents will converse with users in their native tongues while maintaining compliance with local laws.
WhatsApp Integration Enable CAC registration and business planning via a WhatsApp bot—entrepreneurs can start their business from their phone, without ever opening a browser.
Real CAC API Integration Connect directly to the official Nigerian CAC portal API for real name reservation and company filing—moving from manual admin to fully automated, instant registration.
AI Agent Orchestration Enable agents to collaborate seamlessly in a single flow: Business Planner → Code Builder → Marketing → Deployment—all orchestrated by a central harness, delivering a truly zero touch business launch.
Built With
- chatgpt
- deepseek
- framermotion
- gemini
- kiro
- netlify
- next.js
- nvidia
- paystack
- prisma
- react
- stripe
- tailwind
- typescript
- vercel

Log in or sign up for Devpost to join the conversation.