How shalini-576-cse/agentic-intelligence-ai works
AgentFlow AI is an account-scoped campaign planning and review app. Users register or sign in, generate campaigns, review and edit drafts, then manage campaigns and view account-based reports. The README documents planner, research, content generation, AI review, and publishing/management capabilities; unsampled implementation details are represented only where supported by that documentation. Source excerpts establish the authentication and campaign-cache paths, but do not expose all route-to-server wiring.
Main entry points: campaign-api.ts Campaign operations · agentflow.ts Campaign data cache · auth-api.ts Account operations · auth-store.ts Account and campaign store
Components 19
Frontend experience
- App routes
frontend/src/routes - Auth guard
frontend/src/lib/require-auth.ts - Campaign views
frontend/src/routes/campaigns.$campaignId.tsx - Dashboard and reports
frontend/src/routes/dashboard.tsx - Campaign data cache
frontend/src/lib/api/agentflow.ts - Campaign reporting
frontend/src/routes/reports.tsx
Application services
- Campaign operations
backend/lib/campaign-api.ts - Server entry
backend/server.ts - Shared contracts
shared/types.ts
Accounts and persistence
- Account operations
backend/lib/auth-api.ts - Profile operations
backend/lib/account-api.ts - Request identity
backend/lib/server/auth-context.ts - Account and campaign store
backend/lib/server/auth-store.ts - Verification and reset email
backend/lib/server/email.ts
Campaign generation
- Campaign generation
backend/lib/generator.ts - AI review
backend/lib/campaign-api.ts - Publishing management
frontend/src/routes/workflow.tsx
Other components
- User
- Gemini API
Connections 18
- User → App routes: uses
- App routes → Auth guard: checks access
- Auth guard → Account operations: reads session
- Campaign views → Campaign data cache: manages campaigns
- Dashboard and reports → Campaign data cache: reads metrics
- Campaign reporting → Campaign data cache: reads analytics
- Campaign data cache → Campaign operations: calls operations
- Account operations → Account and campaign store: reads and writes
- Account operations → Verification and reset email: sends account email
- Request identity → Account and campaign store: resolves session
- Campaign operations → Request identity: requires identity
- Campaign operations → Account and campaign store: reads and writes
- Campaign operations → Campaign generation: generates content
- Campaign operations → AI review: reviews campaign
- Campaign generation → Gemini API: requests generation
- AI review → Gemini API: requests review
- Publishing management → Campaign operations: manages workflow
- Campaign data cache → Shared contracts: uses contracts