How dylanvu6868/mkt_post_build works
Vitba.ai is a Vietnamese-focused AI marketing platform. Its user-facing capabilities span conversational and form-based content generation, marketing research, email and landing-page creation, image generation, strategy reports, and marketing study tools. The backend exposes these capabilities through FastAPI routes, with shared authentication, persistence, and LLM infrastructure. The README documents product workflows; sampled backend wiring confirms route registration and selected route-to-service calls. Several feature implementations were not sampled, so their internal links are omitted.
Main entry points: main.py API application · chat.py Chat API · generate.py Generation API · deps.py Request identity
Components 29
User experience
- AI chat
frontend/components/chat-panel.tsx - Vitba Lab
frontend/app/hub/lab/page.tsx - Landing builder
frontend/app/hub/landing/builder.tsx - Email workspace
frontend/app/hub/email/page.tsx - Vitba Frame
frontend/app/hub/frame/page.tsx - Strategy report
frontend/app/hub/report/page.tsx - Vitba Study
frontend/app/hub/study/page.tsx
AI creation
- Chat API
backend/app/api/chat.py - Generation API
backend/app/api/generate.py - Lab API
backend/app/api/lab.py - AI agents
backend/app/agents - LLM provider
backend/app/llm/factory.py - Document retrieval
backend/app/rag
Marketing operations
- Landing tools
backend/app/mcp/landing/tools.py - Template renderer
backend/app/mcp/landing/template_engine.py - Email tools
backend/app/mcp/email/tools.py - Image generation API
backend/app/api/frame.py - PDF report API
backend/app/api/report_pdf.py - SEO tools
backend/app/mcp/seo - Meta integration
backend/app/mcp/meta/routes.py
Learning and insights
- Study routes
backend/app/api/study.py - Study questions
backend/app/api/study_questions.py
Platform services
- Account access
frontend/app/login/page.tsx - Authentication API
backend/app/api/auth.py - Request identity
backend/app/api/deps.py - User records
backend/app/models/user.py - Database sessions
backend/app/core/db.py - API application
backend/app/main.py
Other components
- Marketing user
Connections 28
- Marketing user → AI chat: starts chat
- Marketing user → Vitba Lab: submits tool forms
- Marketing user → Landing builder: builds pages
- Marketing user → Email workspace: creates campaigns
- Marketing user → Vitba Frame: requests images
- Marketing user → Strategy report: requests report
- Marketing user → Vitba Study: takes quizzes
- API application → Chat API: registers route
backend/app/main.py - API application → Generation API: registers route
backend/app/main.py - API application → Lab API: registers route
backend/app/main.py - API application → Image generation API: registers route
backend/app/main.py - API application → PDF report API: registers route
backend/app/main.py - API application → Study routes: registers route
backend/app/main.py - API application → Study questions: registers route
backend/app/main.py - API application → Landing tools: registers router
backend/app/main.py - API application → Meta integration: registers router
backend/app/main.py - Chat API → AI agents: invokes agents
backend/app/api/chat.py - Chat API → LLM provider: creates model client
backend/app/api/chat.py - Chat API → Document retrieval: retrieves context
backend/app/api/chat.py - Generation API → LLM provider: creates model client
backend/app/api/generate.py - Generation API → AI agents: uses guard
backend/app/api/generate.py - Landing tools → Template renderer: renders templates
- Account access → Authentication API: signs in
- API application → Authentication API: registers route
backend/app/main.py - Authentication API → Request identity: uses identity checks
backend/app/api/auth.py - Request identity → User records: loads user
backend/app/api/deps.py - Request identity → Database sessions: gets session
backend/app/api/deps.py - Database sessions → User records: provides ORM base
backend/app/models/user.py