Social Platform Standards
To ensure AI-generated content remains within platform constraints and is optimized for engagement, TendSocial adheres to the following standards for each platform.
Character Limits (Dec 2025)
These limits are strictly enforced in the backend AI prompts to prevent generation errors.
| Platform | Max Character Limit | Recommended Length |
|---|---|---|
| X (Twitter) | 280 (Strict) | 70 - 100 characters |
| 2200 | 138 - 150 characters | |
| 63,000 | 40 - 80 characters | |
| 3000 | 1200 - 2000 characters | |
| Threads | 500 | 150 - 250 characters |
| TikTok | 4000 | 100 - 150 characters |
| 500 | 150 - 300 characters | |
| YouTube | 5000 | 200 - 500 characters |
| Google Business | 1500 | 150 - 300 characters |
Implementation Details
The constraints are defined in two key locations:
- Backend (Source of Truth):
apps/backend/src/infra/ai/prompts/socialPost.ts- Used for AI generation. - Frontend (UI/Validation):
apps/frontend/src/utils/platformConfig.ts- Used for character count display and validation.
Example Prompt Injection
The backend UI prompt includes a section like:
- X (Twitter): STRICT ADHERENCE to max 280 characters. CRITICAL: NEVER exceed this limit. Recommended length for engagement: 70-100 characters.
Verification
Any changes to these limits should be verified by running the unit tests: pnpm run test apps/backend/src/infra/ai/prompts/socialPost.test.ts