🔧 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>
This commit is contained in:
Claude 2025-08-04 16:30:31 +05:30
parent f10a097d9c
commit fb085f215a
5 changed files with 15 additions and 5 deletions

View File

@ -33,7 +33,9 @@ class Command(BaseCommand):
'form_schema': {
'fields': [] # Empty since we're using JotForm directly
},
'webhook_url': 'https://agent.jotform.com/019865a942ab7fa5b5b743a5fd2abe09e345'
'webhook_url': 'https://agent.jotform.com/019865a942ab7fa5b5b743a5fd2abe09e345',
'access_url_name': '',
'display_url_name': ''
}
)

View File

@ -34,7 +34,9 @@ class Command(BaseCommand):
'message_limit': 20, # Limit messages per session
'form_schema': None, # Chat agents don't use form schemas
'webhook_url': 'http://localhost:5678/webhook/5-whys-web', # N8N webhook URL
'is_active': True
'is_active': True,
'access_url_name': '',
'display_url_name': ''
}
)

View File

@ -115,7 +115,9 @@ class Command(BaseCommand):
}
]
},
'webhook_url': 'http://localhost:5678/webhook/43f84411-eaaa-488c-9b1f-856e90d0aaf6'
'webhook_url': 'http://localhost:5678/webhook/43f84411-eaaa-488c-9b1f-856e90d0aaf6',
'access_url_name': '',
'display_url_name': ''
}
)

View File

@ -89,7 +89,9 @@ class Command(BaseCommand):
}
]
},
'webhook_url': 'http://localhost:5678/webhook/simple-pdf-processor'
'webhook_url': 'http://localhost:5678/webhook/simple-pdf-processor',
'access_url_name': '',
'display_url_name': ''
}
)

View File

@ -86,7 +86,9 @@ class Command(BaseCommand):
}
]
},
'webhook_url': 'http://localhost:5678/webhook/2dc234d8-7217-454a-83e9-81afe5b4fe2d'
'webhook_url': 'http://localhost:5678/webhook/2dc234d8-7217-454a-83e9-81afe5b4fe2d',
'access_url_name': '',
'display_url_name': ''
}
)