wordpress-seo-agent.benitos.workers.dev
Detects client from:
• Headers (X-Client-Slug)
• URL path (/api/kash-legal/...)
• Subdomain
• Query params
Default client detected
kash-legal client detected
Fortune 500 style content
Professional legal format
KashLegal attempting to use /api/wordpress/auto-post
Returns 400 error with message
• GPT-4.1 Fortune style
• 800-1200 words
• First-person voice
• Current news integration
• Professional format
• 1300-1600 words
• CA law references
• Accident news only
Content published to respective sites
Guardian API, NewsAPI for current tech/business news
SerpAPI, NewsAPI filtered for California accidents only
Curates 5-7 external links to Forbes, HBR, MIT, etc.
Loads professional legal format with required sections
Fortune 500 style, conversational tone, Ben's voice
Structured sections, CA statutes, no em-dashes
3 Pexels images embedded in content
3 descriptive placeholders for legal scenarios
Ben → benpouladian.com | KashLegal → kashlegal.com
ClientManager enforces that KashLegal CANNOT use Ben's Fortune 500 format endpoint
if (clientSlug === 'kash-legal' && endpoint === '/api/wordpress/auto-post') {
return error(400, 'Forbidden');
}
Each client has separate WordPress tokens to prevent cross-posting
Ben: WPCOM_ACCESS_TOKEN
Kash: WPCOM_ACCESS_TOKEN_KASH_LEGAL
Each client has strict format requirements enforced at generation time
KashLegal: 1,300-1,600 words
Ben: 800-1,200 words