Commit Graph

205 Commits

Author SHA1 Message Date
Claude
d84086f6a8 📚 Restructure documentation with dedicated agent creation guide
- Create docs/AGENT_CREATION.md with comprehensive agent creation guide
- Reduce CLAUDE.md from 480 to 273 lines (43% reduction)
- Update all agent counts to current status (8 agents, 6 categories)
- Fix outdated information and remove duplicate content
- Add clear navigation between documentation files
- Separate concerns: CLAUDE.md for Django/project, AGENT_CREATION.md for agents
- Better maintainability and discoverability of information

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-07 09:04:15 +05:30
Claude
7a0d906bcc 🎨 Fix marketplace button consistency and update documentation
- Remove icon from SWOT Analysis Expert Try Now button for consistency
- All marketplace buttons now use standard "Try Now →" format
- Add documentation warnings about marketplace button consistency
- Prevent future icon inconsistencies in agent creation process

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-07 08:57:06 +05:30
Claude
cf33065315 ✨ Add SWOT Analysis Expert + streamline agent creation process
- Add SWOT Analysis Expert direct access agent (free, JotForm integration)
- Use existing 'analysis' category instead of creating new category
- Remove 10+ redundant create_* management commands for cleaner codebase
- Update CLAUDE.md with simplified JSON + populate_agents workflow
- Emphasize using existing categories to avoid proliferation
- Clean up agent creation architecture for Railway scalability
- All agents now follow unified JSON config approach

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-07 08:49:53 +05:30
Claude
2aea35f2d9 ✨ Add Lean Six Sigma Expert agent with Railway integration
- Add Business Consulting category to Railway config
- Create System 2 direct access agent with JotForm integration
- Add dedicated template with full-screen iframe layout
- Implement view functions for payment processing and form display
- Update marketplace template with special Try Now routing
- Add URL routes for agent access and display pages
- Create JSON config for Railway deployment compatibility
- Ensure identical database state between local and production

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-06 08:56:56 +05:30
Claude
62f3dd2592 🎨 Remove agent count display from marketplace stats
- Clean up marketplace stats section by removing agent count
- Now only shows search results and category filters when relevant
- Provides cleaner, less cluttered user interface

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-05 09:58:07 +05:30
Claude
54d64f5927 ✨ Streamline user experience with cleaner UI and improved authentication flow
- Remove special styling for career navigator button, unify all Try Now buttons
- Clean up authentication messaging system to prevent message confusion
- Replace immediate success messages with direct redirections for smoother UX
- Add session-based post-login messaging for better redirect handling
- Improve login page with verification resend button and cleaner message display
- Remove redundant payment success messages for free agents

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-05 09:22:13 +05:30
Claude
bc662e6af0 🎯 Implement dynamic agent configuration system for ultimate scalability
BREAKTHROUGH: Configuration-driven agent management that scales to 100+ agents

## New System Architecture:
- **JSON Configuration Files**: All agents defined in version-controlled JSON
- **Dynamic Loading**: populate_agents.py reads from config files automatically
- **Zero Code Changes**: Add new agents by creating JSON files only
- **Automatic Railway Sync**: Single command ensures database consistency

## File Structure:
- agents/configs/categories/categories.json - All categories
- agents/configs/agents/*.json - Individual agent configurations
- agents/configs/README.md - Complete documentation

## Key Benefits:
✅ **Ultimate Scalability**: Add 1000+ agents without touching code
✅ **Version Control**: All agent definitions tracked in git
✅ **Railway Consistency**: Single command syncs local and production
✅ **Developer Experience**: JSON files are easier than Python commands
✅ **Validation**: Built-in error handling and field validation
✅ **Documentation**: Self-documenting with clear examples

## Migration Path:
- Extracted all 6 existing agents to JSON configurations
- Updated populate_agents.py to load dynamically from configs
- Maintained backward compatibility
- Added comprehensive documentation

## Usage:
```bash
# Add new agent: Create JSON file in agents/configs/agents/
# Deploy to Railway: python manage.py populate_agents
# Result: Agent automatically appears in marketplace
```

This solves the original issue: "if we create another will it show on railway also???"
Answer: YES - just create JSON file and run populate_agents\!

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-05 08:38:59 +05:30
Claude
be0eecbafd 🚀 Add unified populate_agents command for scalable agent management
- Create comprehensive populate_agents.py that handles ALL agents and categories
- Includes all 6 agents: 4 webhook + 2 direct access with complete configurations
- Eliminates need for individual agent creation commands
- Ensures database consistency between local and Railway environments
- Features detailed progress reporting and verification
- Scales to 100+ agents without additional commands
- Replaces individual management commands with unified approach

Benefits:
- Single command creates entire agent ecosystem
- Idempotent - safe to run multiple times
- Comprehensive form schemas for webhook agents
- Proper direct access configuration for JotForm agents
- Solves Railway marketplace missing agent issues

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-04 23:52:11 +05:30
Claude
9131e33eeb 🤖 Add AI Brand Strategist agent creation management command
- Create create_ai_brand_strategist_agent.py to enable Railway deployment
- Includes proper Marketing & Advertising category creation
- Configures direct access with JotForm integration
- Sets correct access_url_name and display_url_name for embedded interface
- Tested locally and creates agent with proper configuration
- Fixes missing agent in Railway marketplace

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-04 23:44:17 +05:30
Claude
01eb67cde1 📚 Update documentation with comprehensive agent creation guidelines
- Add AI Brand Strategist to current agents list with embedded interface details
- Completely rewrite "Adding New Agents" section with clear system distinctions
- Document two distinct agent systems: Webhook vs Direct Access
- Add step-by-step implementation guides for both agent types
- Include complete code examples for templates, views, and URL routing
- Add key differences comparison table for quick reference
- Include common mistakes section to prevent development issues
- Update system status to reflect current 6-agent state
- Update URL structure documentation with new routes
- Prevent future architecture confusion with clear patterns

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-04 23:40:20 +05:30
Claude
d8b8420319 🧠 Add AI Brand Strategist embedded interface with Quantum Tasks header
- Create dedicated template with header + JotForm iframe
- Add ai_brand_strategist_view() and ai_brand_strategist_access() functions
- Add dedicated URL routes /ai-brand-strategist/ and /ai-brand-strategist/access/
- Update marketplace buttons to use dedicated routes for consistent UX
- Both CyberSec Career Navigator and AI Brand Strategist now show embedded forms
- Follows established direct access agent architecture pattern

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-04 23:36:35 +05:30
Claude
6fae2686c5 🚀 Implement scalable direct access architecture for 100+ agents
## Complete Scalable Architecture Implementation

**Problem Solved**: CyberSec Career Navigator was broken (empty form → JotForm URL webhook)
**Solution**: Built generic direct access architecture for unlimited external form agents

## New Architecture Features

**🎯 Direct Access Agents (External Forms):**
- Generic view functions work for ANY direct access agent
- Database-driven routing via access_url_name/display_url_name fields
- Template automatically detects and redirects to external forms
- Zero code changes needed for new direct access agents

**🔧 Webhook Agents (Dynamic Processing):**
- Existing webhook agents work exactly as before (unchanged)
- Dynamic form generation and N8N processing preserved
- Zero impact on current functionality

## Files Added/Modified

**Views** ():
- `direct_access_handler()` - Generic payment & access processing
- `direct_access_display()` - Generic external form display

**URLs** ():
- Generic routing: `<slug>/access/` and `<slug>/display/`
- Works for any agent with access_url_name configured

**Template** ():
- Conditional logic: `{% if agent.access_url_name %}`
- Direct access → "Start Consultation" button → External form
- Webhook → Dynamic form (unchanged)

**Migration** ():
- Adds access_url_name and display_url_name fields to Agent model

**Agent Config** ():
- Updated to use generic direct access URLs

## Scalability Achievement

**Ready for 100+ Agents:**
- ✅ New webhook agent: Database record with empty access_url_name
- ✅ New direct access agent: Database record with generic access_url_name
- ✅ Zero code changes needed for new agents
- ✅ Template automatically handles both types
- ✅ Database-driven routing eliminates hardcoded URLs

## Expected Results

**After Railway Deployment:**
- CyberSec Career Navigator: "Start Consultation (FREE)" → Direct JotForm
- All webhook agents: Continue working exactly as before
- System ready for unlimited agents of both types

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-04 22:46:00 +05:30
Claude
10f7e0d11e 🔧 Add missing model fields and fake migration for Railway schema sync
## Critical Model/Database Sync Fix

**Problem**: Railway database has access_url_name/display_url_name columns but Django model didn't define them.

**Solution**:
✅ Add missing fields to Agent model with proper Django field definitions
✅ Create fake migration to sync with existing Railway database schema
✅ Avoid DuplicateColumn errors on Railway deployment

## Changes Made

**Agent Model** ():
- Added
- Added

**Migration** ():
- Fake migration that does nothing (columns already exist on Railway)
- Marks migration as applied without attempting to create existing columns

## Error Fixed
❌ Was: Invalid field name(s) for model Agent: 'access_url_name', 'display_url_name'
✅ Now: Model defines fields that match existing Railway database columns

## Result
- Django model matches Railway PostgreSQL schema
- Agent creation commands will work (fields are now valid)
- populate_agents will succeed and create all 5 agents
- Railway marketplace will finally show agents

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-04 16:36:00 +05:30
Claude
fb085f215a 🔧 Add missing access_url_name fields to all agent creation commands
## Critical Agent Creation Fix
- Railway PostgreSQL requires access_url_name and display_url_name fields
- ae303c2 agent creation commands were missing these required fields
- Added empty string defaults to all 5 agent creation commands

## Commands Updated
✅ create_social_ads_agent.py - Added access_url_name/display_url_name
✅ create_job_posting_agent.py - Added access_url_name/display_url_name
✅ create_pdf_summarizer_agent.py - Added access_url_name/display_url_name
✅ create_five_whys_agent.py - Added access_url_name/display_url_name
✅ create_cybersec_career_agent.py - Added access_url_name/display_url_name

## Error Fixed
❌ Was: null value in column 'access_url_name' violates not-null constraint
✅ Now: All agent creation commands provide required fields

## Result
- populate_agents will succeed on Railway deployment
- All 5 agents will be created successfully
- Railway marketplace will show working agents

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-04 16:30:31 +05:30
Claude
f10a097d9c 🔧 Fix Railway migration DuplicateColumn error with smart column check
## Migration Fix for Railway Database
- Railway PostgreSQL already has access_url_name/display_url_name columns
- Previous migration tried to add existing columns → DuplicateColumn error
- New migration checks if columns exist before adding them

## Smart Migration Logic
✅ Check information_schema for existing columns
✅ Add columns only if they don't exist
✅ Skip if columns already present (Railway case)
✅ Works for both fresh and existing databases

## Error Fixed
❌ Was: column 'access_url_name' of relation 'agents_agent' already exists
✅ Now: Migration succeeds regardless of existing schema state

## Result
- Railway deployment will complete successfully
- populate_agents will run and create all 5 agents
- Marketplace will show agents again

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-04 16:20:52 +05:30
Claude
54d7d3e506 🔧 Fix Railway database schema mismatch for agent creation
## Critical Database Fix
- Add migration for missing access_url_name and display_url_name fields
- Railway PostgreSQL has these fields as NOT NULL from newer schema
- ae303c2 agent creation commands don't provide these fields
- Migration makes fields optional with empty string defaults

## Error Fixed
❌ Was: null value in column 'access_url_name' violates not-null constraint
✅ Now: Fields are optional, agent creation will succeed

## Result
- populate_agents command will now work on Railway
- All 5 agents should appear in production marketplace
- No more database constraint violations

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-04 16:15:46 +05:30
Claude
efdceb8730 🚨 EMERGENCY: Remove destructive database flush from Railway
Critical production fix:
- Remove 'python manage.py flush --noinput' from Railway startup
- Prevent further database destruction on deployment
- Current Railway database is completely empty (no agents, no users)
- This fix will stop future data loss

Next deployment will run populate_agents without wiping existing data.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-04 16:10:55 +05:30
Claude
ae303c2621 🔧 Fix payment message persistence and add expired session popup
- Fix wallet payment messages showing on login page by clearing messages before redirects
- Remove misleading "Payment processed\!" message for free agents
- Implement minimalist expired session popup for 5 Whys agent
- Add auto-detection of expired sessions on page load with payment confirmation
- Streamline authentication flow messages for better UX
- Remove logout confirmation message to prevent persistence

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-03 20:57:27 +05:30
Claude
b9c6264b0e 🧹 Improve email verification UX on login page
• Remove always-visible 'Resend email verification' link from login page
• Add contextual resend link only when user needs email verification
• Clean login page with only relevant links (forgot password, register)
• Better user experience - show resend option exactly when needed
• Enable HTML rendering in messages for proper link display

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-03 19:26:45 +05:30
Claude
3e1136acfa 💰 Remove 50 AED welcome bonus from user registration
• Remove automatic 50 AED wallet bonus for new users
• Update registration success message to remove bonus reference
• Users now start with 0 AED balance (model default)
• Cleaner registration process without misleading bonuses
• Users must top up wallet to use paid agents

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-03 19:19:11 +05:30
Claude
962d58d37e 🚫 Hide pricing page completely from all users
• Remove pricing link from navigation for all users
• Redirect pricing page access to AI marketplace
• Clean navigation with only essential pages:
  - Home
  - AI Digital Branding
  - AI Marketplace
• Graceful handling if anyone tries to access pricing directly

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-03 15:54:04 +05:30
Claude
40574db8b0 🗃️ Implement complete Railway database recreation
• Add database flush to Railway startup for complete reset
• Remove manual fix scripts - using clean recreation approach
• Fresh database will have correct agent values from populate_agents
• Guarantees Railway matches local environment exactly

Process:
1. flush --noinput (clear all data)
2. migrate --run-syncdb (create fresh tables)
3. populate_agents (correct agent values)
4. reset_admin (fresh admin user)

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-03 14:57:49 +05:30
Claude
be6a04c60b 🔧 Add simple agent fix command for Railway deployment
• Create minimal management command to fix agent values
• Fix CyberSec Career Navigator: 12 AED → 0 AED
• Fix 5 Whys agent: 50 messages → 20 messages, ensure 15 AED
• Add to Railway deployment process for automatic fix
• Simplest possible solution - runs on every deploy

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-03 14:48:12 +05:30
Claude
fa29584d90 🔄 Add Railway database sync script
• Script to update Railway agents with correct local values
• Fix CyberSec Career Navigator price (12 AED → 0 AED)
• Fix 5 Whys agent message limit (50 → 20) and session time
• Sync all agent prices and message limits

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-03 14:44:28 +05:30
Claude
ecb0d1bdd9 📦 Add reportlab dependency for PDF export functionality
• Fix Railway deployment failure: ModuleNotFoundError reportlab
• Required for chat PDF export feature in 5 Whys agent
• Add reportlab==4.2.5 to requirements.txt

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-03 14:30:17 +05:30
Claude
d32bbe6606 🔐 Hide pricing page from authenticated users navigation
• Remove pricing link for logged-in users
• Cleaner navigation experience for authenticated users
• Pricing only shown to visitors who need it

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-03 14:23:58 +05:30
Claude
a73633aebc 🤖 Transform digital branding page to emphasize AI capabilities
• Rename navigation menu to "AI Digital Branding"
• Update hero section with AI-powered branding focus
• Balance AI emphasis with proven marketing expertise
• Enhance trust indicators with ROI and performance metrics
• Transform service offerings to highlight smart automation
• Integrate AI throughout SOSTAC+RACE framework
• Focus on intelligent solutions and data-driven results
• Maintain credibility while showcasing AI innovation

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-03 14:22:19 +05:30
Claude
942bbcdd40 🎨 Enhance 5 Whys agent response formatting for professional appearance
Improved agent responses to match the formatting quality of other agents
with structured, engaging content using markdown and professional styling.

## Changes:

### 📝 Enhanced Welcome Message:
- Added markdown headers and emojis for engagement
- Structured sections: 'How It Works' and 'Getting Started'
- Clear bullet points and bold emphasis for key concepts
- Professional yet friendly tone

### 🔧 Improved N8N Webhook Instructions:
- Detailed formatting requirements (headers, bold, lists, emojis)
- Clear content guidelines for systematic 5 Whys guidance
- Instructions for structured but conversational responses
- Focus on interactive guidance vs final reports

### 💻 JavaScript Markdown Processing:
- Added formatMarkdownContent() function for consistent formatting
- Processes headers (##, ###), bold text (**text**), bullet points
- Handles both new real-time messages and existing messages on load
- Shared formatting logic for consistency

### 🎨 Enhanced CSS & Template:
- Better message bubble styling for structured content
- Improved typography and spacing for readability
- Support for formatted headers, lists, and emphasis
- Added data attributes for content processing

## Expected User Experience:
- **Before**: Plain text responses lacking visual hierarchy
- **After**: Professional, structured responses with clear sections,
  bullet points, bold emphasis, and engaging emojis

The 5 Whys agent now provides responses that match the quality and
formatting standards of other premium agents in the platform.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-03 13:54:23 +05:30
Claude
641d676f2f 🎉 Complete 5 Whys agent enhancements with session management and UI improvements
## Major Features Added:

### 🕒 Session Time Limits (2hr → 30min)
- Updated ChatSession model: expires_at, extend_session methods
- Changed session creation and extension logic
- Updated JavaScript timing calculations
- Fixed timing indicator functionality with real-time server data

### 💬 Message Limits (50 → 20)
- Added message_limit field to Agent model with migration
- Implemented auto-completion when message limit reached
- Only count user messages (not agent responses) toward limit
- Enhanced error messaging for limit exceeded

### 📥 Chat Download System
- Added PDF and TXT export functionality using ReportLab
- Download buttons in chat header for active sessions
- Comprehensive export with session metadata and formatting
- New API endpoints: /agents/api/chat/export/{session_id}/

### 📋 Previous Sessions Management
- Created Previous Sessions widget showing last 5 non-active sessions
- Download access for all completed sessions with messages
- Session status indicators (✅ Completed, ⏰ Expired, ❌ Abandoned)
- Clean sidebar organization with session history

### 🎨 UI/UX Improvements
- Moved session info from main chat to sidebar for cleaner interface
- Increased chat height: 600px → 800px (mobile: 500px → 650px)
- Added Current Session widget with status, ID, and start time
- Enhanced sidebar layout with proper component stacking
- Responsive design with mobile optimizations

### 🔧 Session Indicators System
- Real-time session status API with server-side data
- Progress bars for time remaining and message usage
- Warning notifications for approaching limits
- Automatic updates every 30 seconds

### 💰 Payment Flow Fixes
- Fixed charging system to actually deduct wallet balance
- Each new session charges 15 AED for 20 messages + 30 minutes
- Proper error handling for insufficient balance
- Session cleanup on payment failures

## Technical Implementation:

**Backend Changes:**
- Enhanced ChatSession model with 30-minute duration
- Message counting logic (user messages only)
- Auto-completion on limit reached
- Session status API endpoint
- PDF/TXT export with ReportLab

**Frontend Changes:**
- Comprehensive sidebar widget system
- Real-time indicator updates with server sync
- Download functionality with loading states
- Session history display with status icons
- Responsive layout improvements

**Database:**
- Added message_limit field to Agent model
- Updated ChatSession expiration logic
- Efficient queries for session history

## User Experience:
✅ Clear session limits (20 messages, 30 minutes)
✅ Automatic session completion with preserved history
✅ Easy download access for all previous sessions
✅ Transparent pricing (15 AED per session)
✅ Clean, organized interface with more chat space
✅ Real-time feedback on session progress

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-03 13:28:39 +05:30
Claude
e6ab0d0f37 🎨 Fix 5 Whys agent layout to match other agent templates
- Move 'How it works' widget to sidebar position (below wallet card)
- Add wallet card component to chat template layout
- Use consistent grid layout: main chat widget + sidebar
- Maintains chat functionality while improving UI consistency
- Now matches standard agent template structure

Fixes layout inconsistency where 'How it works' was at bottom instead of sidebar.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-03 09:31:23 +05:30
Claude
7f3b678d39 🔐 Add email verification bypass for testing environments
- Add REQUIRE_EMAIL_VERIFICATION setting (default: True)
- Skip email verification when setting is False
- Auto-verify users and provide welcome bonus when bypassed
- Updated .env.example with documentation
- Allows testing on Railway without email setup until final domain

Perfect for Railway deployment until email/domain configuration is ready.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-02 13:04:16 +05:30
Claude
7120bfdf98 🤖 Add populate_agents management command for Railway deployment
- Create unified command that calls all individual agent creation commands
- Used by Railway's startCommand to populate production database
- Idempotent design - safe to run multiple times
- Shows detailed summary and environment-specific guidance
- Fixes Railway deployment issue where agents marketplace was empty

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-02 12:55:29 +05:30
Claude
3fac20fe28 🎯 Complete dual integration architecture with JotForm and digital branding
- Add CyberSec Career Navigator with JotForm white-label integration
- Implement direct access agent system alongside webhook agents
- Add digital branding services page with SOSTAC+RACE methodology
- Create dual integration patterns: webhook vs direct access flows
- Clean up unused form API endpoints for streamlined architecture
- Add career navigator management command and templates
- Update marketplace with conditional logic for different agent types
- Fix UI consistency issues (remove category labels, fix animations)
- Update documentation to reflect new dual architecture

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-02 10:47:16 +05:30
Claude
d750857e4e ⏰ Implement chat session timeout system
- Add expires_at field to ChatSession model with 2-hour default
- Sessions automatically expire after 2 hours of inactivity
- Active conversations extend session by 2 hours per message
- Add session expiration checks in chat views
- Create cleanup management command for expired sessions
- Add session status indicators in chat UI
- Fix null safety for existing sessions without expiration

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-01 15:45:16 +05:30
Claude
ab2360a91d 💬 Implement complete chat-based agent system with 5 Whys Analysis
🏗️ **Database Extensions:**
- Add agent_type field to Agent model (form/chat distinction)
- Create ChatSession model for conversation management
- Create ChatMessage model for message storage with metadata
- Add database indexes for performance optimization

🎨 **Frontend Implementation:**
- Create agent_chat.html template with modern chat interface
- Implement real-time messaging UI with message bubbles
- Add typing indicators and loading states
- Responsive design for mobile and desktop
- Empty states and error handling

🔧 **Backend Logic:**
- Extend agent_detail_view to route chat vs form agents
- Implement chat_agent_view for chat interface rendering
- Add start_chat_session API endpoint with session management
- Add send_chat_message API endpoint with webhook integration
- Add get_chat_history and end_chat_session endpoints
- Session-based fee charging system

🤖 **5 Whys Agent:**
- Create "Analysis & Problem Solving" category
- Implement 5 Whys Analysis chat-based agent (15 AED)
- Interactive problem-solving methodology guidance
- N8N webhook integration for AI responses

⚡ **Interactive Features:**
- JavaScript ChatInterface class for real-time communication
- Auto-session creation and management
- Message validation and error handling
- Automatic scrolling and UI state management
- CSRF protection and security measures

🔗 **API Integration:**
- Chat-specific API endpoints with RESTful design
- Webhook payload formatting for N8N integration
- Session ID tracking and conversation continuity
- Metadata storage for webhook responses

🛡️ **Security & UX:**
- Login required for chat agents
- Wallet balance validation before session creation
- Session isolation per user and agent
- Comprehensive error handling and user feedback

**New URLs:**
- /agents/api/chat/start/ - Start new chat session
- /agents/api/chat/send/ - Send chat message
- /agents/api/chat/history/<session_id>/ - Get chat history
- /agents/api/chat/end/ - End chat session
- /agents/five-whys-analysis/ - 5 Whys chat interface

**Backward Compatibility:**
- Existing form-based agents (Social Ads, Job Posting, PDF) unchanged
- Admin interface updated to show agent types
- Marketplace displays both agent types seamlessly

🚀 Ready for interactive 5 Whys problem-solving conversations\!

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-01 09:39:43 +05:30
Claude
11d28a17d0 📚 Update documentation after GitHub push 2025-08-01 09:23:11 +05:30
Claude
f6970b65e2 🎨 Complete Phase 1 UI optimization with button hover fixes
- Consolidate CSS architecture with unified design token system
- Extract 879+ lines of inline CSS to external files for better caching
- Create modular CSS files: marketplace.css, agent-detail.css
- Establish comprehensive button system with proper hover states
- Fix "Explore Other Agents" button hover with black background/white text
- Remove CSS duplication across agent-base.css (242 lines saved)
- Add \!important declarations to resolve CSS conflicts across files

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-01 09:00:46 +05:30
Claude
277e7ec0e4 📄 Auto-update documentation timestamp after security fixes 2025-08-01 01:37:22 +05:30
Claude
c8ad34f0f9 🔒 Implement critical security fixes for production readiness
Critical Security Fixes:
- Add SSRF prevention with webhook URL validation
- Implement atomic wallet transactions to prevent race conditions
- Verify authentication system already secure against bypass

Technical Details:
- agents/views.py: Add validate_webhook_url() function with IP filtering
- authentication/models.py: Add @transaction.atomic and select_for_update()
- Block private/internal IPs while allowing localhost development
- Prevent double-spending and negative balance scenarios

Security Testing:
- All webhook URLs validated successfully
- Wallet transaction atomicity confirmed
- All 3 agents remain fully functional
- System ready for production deployment

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-01 01:37:08 +05:30
Claude
657712fed8 🗑️ Remove workflows app completely and streamline to agents-only
BREAKING CHANGE: Complete removal of legacy workflows system

- Remove entire workflows/ directory and all related files
- Update Django settings to remove workflows from INSTALLED_APPS
- Fix all URL references from workflows:marketplace to agents:marketplace
- Update core views to use agents.models.Agent instead of config files
- Fix agent detail template component includes (workflows/components → components)
- Update documentation to reflect database-driven agents system only
- Remove N8N workflow management script (no longer needed)

Template fixes:
- Agent header, quick agents panel, processing status, results container
- All error pages (403, 404, 500) now point to agents marketplace
- Base template navigation and footer updated
- Wallet pages redirect to agents marketplace

Core changes:
- Homepage uses Agent.objects instead of get_all_agents()
- Health check counts active agents from database
- All template references updated to use components/ path

Result: Clean, streamlined agents-only system with no legacy code

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-31 23:27:09 +05:30
Claude
c368bb55de ✨ Enhance marketplace with modern design and authentication
- Redesign agent cards with sleek modern styling (white cards, gradient shadows)
- Implement authentication-aware UI: blue "Try Now" vs black "Login to Try"
- Add login_required decorator to agent detail views for security
- Fix quick agents panel to show only 3 working agents
- Update PDF Summarizer reset functionality to properly clear file uploads
- Remove category badges for unauthenticated users to prevent layout issues

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-31 23:12:15 +05:30
Claude
4424780903 🧹 Clean up marketplace to keep only 3 working agents
- Remove non-working agents: CSV Data Analyzer, PDF Content Analyzer, Website Data Scraper
- Clean up empty categories automatically
- Update marketplace UI to match workflows design with enhanced styling
- Fix PDF Summarizer display issue with array-format sections
- Final state: 3 agents across 3 categories (Social Ads, Job Posting, PDF Summarizer)

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-31 22:55:37 +05:30
Claude
400f2b7a09 📄 Add PDF Summarizer agent with advanced file upload system
- Create Document Processing category for file-based agents
- Implement PDF Summarizer with comprehensive 4-field form schema
- Add file upload field type with drag-and-drop support
- Build professional file upload UI with progress indicators
- Update agents-core.js to handle multipart form data uploads
- Add direct N8N webhook integration for file processing
- Support multiple analysis types: summary, key points, sentiment analysis
- Implement file size validation and type checking

File Upload Features:
- Drag and drop PDF files directly onto upload area
- Visual feedback with file name and size display
- Remove file functionality with single click
- Accept only PDF files with 10MB size limit
- Professional styling with hover and focus states

Form Options:
- Analysis type selection (summary, key points, detailed analysis)
- Language auto-detection or manual selection
- Output length control (short, medium, long)
- Real-time form validation and error handling

Price: 8.0 AED for comprehensive document analysis
Webhook: Matches multipart form-data structure exactly

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-31 19:18:31 +05:30
Claude
cf8583d0b2 💼 Add Job Posting Generator agent with comprehensive form schema
- Create Human Resources category for HR-related agents
- Implement Job Posting Generator with 7-field dynamic form
- Add specialized N8N webhook message formatting for job postings
- Support multiple seniority levels, contract types, and locations
- Complete form validation and error handling
- Full integration with existing wallet and execution system

Form fields:
- Job title and company name
- Detailed job description (textarea)
- Seniority level (entry to executive)
- Contract type (full-time, part-time, contract, etc.)
- Location with remote work support
- Multi-language support

Webhook format matches N8N payload structure exactly.
Tested and working with real-time wallet deduction.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-31 19:10:15 +05:30
Claude
27a1c7d516 📚 Auto-update documentation after agents app implementation 2025-07-31 19:05:23 +05:30
Claude
5eba8fee84 🚀 Complete agents app implementation with social ads frontend
- Create complete REST API-based agents system for scalability
- Implement Social Ads Generator with dynamic form rendering
- Add agents marketplace with search and category filtering
- Build real-time wallet balance updates after execution
- Fix URL routing conflicts and API endpoint issues
- Add comprehensive N8N webhook integration with proper payload format
- Create dynamic template system for 100+ agent scalability

Features:
- Database-driven agent management via Django admin
- JSON schema-based dynamic form generation
- Real-time wallet balance deduction and display updates
- Comprehensive error handling and validation
- Mobile-responsive marketplace UI
- Complete API endpoints for frontend integration

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-31 19:05:09 +05:30
Claude
8097f6f4c7 ✨ Complete agent template enhancement and repository cleanup
AGENT TEMPLATE IMPROVEMENTS:
• Enhanced file upload with preview, progress, and drag-and-drop
• Real-time validation with detailed error messages
• Class-based JavaScript architecture following modern patterns
• Comprehensive CSS framework with mobile-responsive design
• Complete documentation and setup instructions

REPOSITORY CLEANUP:
• Removed legacy documentation files
• Consolidated into simplified CLAUDE.md structure
• Updated documentation timestamps and summaries
• Clean working directory with no pending changes

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-30 11:54:19 +05:30
Claude
87e780c01f 📄 Final documentation summary update
🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-30 11:53:51 +05:30
Claude
c759794fe2 📝 Update documentation timestamps after cleanup
• Auto-update CLAUDE.md with latest timestamp
• Update documentation summary with cleanup commit info

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-30 11:53:41 +05:30
Claude
2a470508e2 🧹 Clean up legacy documentation files and update CLAUDE.md
• Remove outdated documentation files that are no longer needed
• Update CLAUDE.md with current project state
• Clean up deployment scripts and setup files
• Consolidate documentation into simplified structure

This cleanup removes legacy files while keeping the essential CLAUDE.md
as the single source of truth for development guidance.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-30 11:53:24 +05:30