Commit Graph

3 Commits

Author SHA1 Message Date
Claude
f40450851b Fix agent network errors and remove debug logging
- Fix social ads generator updateWalletBalance function call
- Fix weather reporter form submission URL and syntax errors
- Add missing status endpoints for polling functionality
- Remove debug logging from all agents
- Clean up button styling consistency

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-14 00:56:14 +05:30
Claude
bfbb7d3515 Fix social ads generator network errors and content extraction
## Issues Fixed
- Added missing status endpoint for polling mechanism
- Fixed content extraction priority to handle ad_copy field and raw_response.output
- Corrected include_emoji field handling (form sends 'yes' not 'on')
- Updated URL patterns to include proper status and result endpoints

## Technical Changes
- Added social_ads_generator_status() view for polling
- Updated content extraction priority: ad_copy_content > content > ad_copy > raw_response.output
- Fixed boolean field handling for include_emoji checkbox
- Consistent with other agents' polling patterns

## URL Updates
- Added /status/<uuid:request_id>/ for polling
- Added /result/<uuid:request_id>/ for results
- Consistent API structure across all agents

## Content Field Priority
Based on actual JSON response showing "output" field:
1. ad_copy_content (primary field)
2. content (fallback)
3. ad_copy (model field)
4. raw_response.output (actual webhook response)
5. formatted_ad (processed content)
6. output_text (legacy field)

## Result
- Social ads generator now properly handles form submission
- Correct content extraction from webhook response
- Consistent polling mechanism with other agents
- No more network errors during ad generation

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-14 00:16:01 +05:30
Claude
f56708249d Add Job Posting Generator and Social Ads Generator agents
New features:
- Job Posting Generator (4.00 AED): Creates professional job postings with detailed requirements, company culture integration, and SEO optimization
- Social Ads Generator (7.00 AED): Creates compelling social media advertisements with platform-optimized copy and emoji support

Technical improvements:
- Individual agent architecture with namespaced templates
- Real-time AJAX form submission without page reload
- Wallet deduction only after successful processing
- Platform-specific optimization (job posting: 6 platforms, social ads: 6 platforms)
- Copy/download functionality for generated content
- Comprehensive form validation and error handling

Database changes:
- Job posting specific fields: job_title, company_name, seniority_level, contract_type, location, language
- Social ads specific fields: description, social_platform, include_emoji, language
- Response models with structured content fields

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-10 18:26:41 +05:30