Skip to content

Commit bcae72c

Browse files
committed
Fix: Clarify character limit guidelines for compliance agent
- Character limits are now clearly marked as approximate guidelines - Body limit applies only to body field, not combined content - Character limit violations should be WARNING not ERROR - Added explicit instruction to not flag uncertain length issues
1 parent d8c9a28 commit bcae72c

1 file changed

Lines changed: 11 additions & 4 deletions

File tree

content-gen/src/backend/settings.py

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -253,10 +253,16 @@ def get_compliance_prompt(self) -> str:
253253
### Content Restrictions
254254
- Prohibited words: {', '.join(self.prohibited_words) if self.prohibited_words else 'None specified'}
255255
- Required disclosures: {', '.join(self.required_disclosures) if self.required_disclosures else 'None required'}
256-
- Maximum headline length: {self.max_headline_length} characters
257-
- Maximum body length: {self.max_body_length} characters
256+
- Maximum headline length: approximately {self.max_headline_length} characters (headline field only)
257+
- Maximum body length: approximately {self.max_body_length} characters (body field only, NOT including headline or tagline)
258258
- CTA required: {'Yes' if self.require_cta else 'No'}
259259
260+
**IMPORTANT: Character Limit Guidelines**
261+
- Character limits apply to INDIVIDUAL fields: headline, body, and tagline are counted SEPARATELY
262+
- The body limit ({self.max_body_length} chars) applies ONLY to the body/description text, not the combined content
263+
- Do NOT flag character limit issues as ERROR - use WARNING severity since exact counting may vary
264+
- When in doubt about length, do NOT flag it as a violation - focus on content quality instead
265+
260266
### Visual Guidelines
261267
- Primary brand color: {self.primary_color}
262268
- Secondary brand color: {self.secondary_color}
@@ -335,8 +341,9 @@ def get_text_generation_prompt(self) -> str:
335341
- Voice: {self.voice}
336342
337343
### Writing Rules
338-
- Keep headlines under {self.max_headline_length} characters
339-
- Keep body copy under {self.max_body_length} characters
344+
- Keep headlines under approximately {self.max_headline_length} characters
345+
- Keep body copy (description) under approximately {self.max_body_length} characters
346+
- Note: Character limits are approximate guidelines - focus on concise, impactful writing
340347
- {'Always include a clear call-to-action' if self.require_cta else 'CTA is optional'}
341348
- NEVER use these words: {', '.join(self.prohibited_words) if self.prohibited_words else 'No restrictions'}
342349
- Include these disclosures when applicable: {', '.join(self.required_disclosures) if self.required_disclosures else 'None required'}

0 commit comments

Comments
 (0)