Go to file
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
.github/workflows Claude Code Review workflow 2025-07-13 11:58:45 +05:30
agent_base Add 5 Whys Analysis Agent with enhanced UX features 2025-07-12 23:08:45 +05:30
authentication Implement comprehensive Django performance optimizations 2025-07-13 13:23:59 +05:30
core Implement comprehensive Django performance optimizations 2025-07-13 13:23:59 +05:30
data_analyzer Fix data analyzer TypeError and enhance markdown parsing 2025-07-13 22:56:27 +05:30
docs Implement unified CSS system and fix data analyzer network errors 2025-07-13 19:30:04 +05:30
five_whys_analyzer Add 5 Whys Analysis Agent with enhanced UX features 2025-07-12 23:08:45 +05:30
job_posting_generator Implement custom display functions for all agents 2025-07-13 23:08:05 +05:30
netcop_hub Implement comprehensive Django performance optimizations 2025-07-13 13:23:59 +05:30
social_ads_generator Fix social ads generator network errors and content extraction 2025-07-14 00:16:01 +05:30
static Implement custom display functions for all agents 2025-07-13 23:08:05 +05:30
templates Fix header mobile UI with dropdown navigation 2025-07-12 19:33:38 +05:30
tests Implement individual agent architecture with simplified template structure 2025-07-10 09:01:11 +05:30
wallet Fix security vulnerabilities and improve environment configuration 2025-07-13 12:30:23 +05:30
weather_reporter Implement custom display functions for all agents 2025-07-13 23:08:05 +05:30
.env.example Implement comprehensive Django performance optimizations 2025-07-13 13:23:59 +05:30
.gitignore Add 5 Whys Analysis Agent with enhanced UX features 2025-07-12 23:08:45 +05:30
manage.py Initial Django project setup with working homepage 2025-07-08 16:30:56 +05:30
railway.json Implement PostgreSQL development parity and fix migration conflicts 2025-07-12 09:59:44 +05:30
requirements_clean.txt Add Railway deployment config 2025-07-12 03:43:14 +05:30
requirements-dev.txt Implement comprehensive Django performance optimizations 2025-07-13 13:23:59 +05:30
requirements.txt Implement comprehensive Django performance optimizations 2025-07-13 13:23:59 +05:30
run_dev.sh Fix Railway static files serving with WhiteNoise 2025-07-12 10:38:44 +05:30