AI post generation: auto-generate platform-optimized captions #161

Open
opened 2026-06-23 13:37:19 +00:00 by jmiller · 0 comments
Owner

Summary

Integrate with AI APIs (Claude/OpenAI) to auto-generate platform-optimized captions from article content. Every major 2026 tool has this: Hootsuite (OwlyWriter), SocialBee (AI Copilot), FS Poster, Publer. No Joomla extension offers it.

User Flow

  1. Author writes article and clicks "Generate Share Text" button
  2. AI reads article title + introtext + category + tags
  3. Generates platform-specific text for each field in the Share Content panel:
    • Social text (Facebook/LinkedIn tone, ~200 chars)
    • Short text (Twitter/Bluesky, under 280 chars, punchy)
    • Chat text (casual tone for Telegram/Discord)
    • Email subject (compelling subject line)
  4. Author reviews, edits, and saves

Implementation

Component Config

  • ai_provider: none / claude / openai
  • ai_api_key: encrypted API key
  • ai_model: model selection (e.g. claude-haiku-4-5, gpt-4o-mini)
  • ai_tone: professional / casual / friendly / custom prompt

Technical

  • AJAX endpoint in component controller
  • Sends article content to AI API with platform-specific system prompts
  • Returns JSON with generated text for each field
  • JavaScript button in Share Content panel triggers generation

Prompt Engineering

Generate cross-post captions for this article:
Title: {title}
Content: {introtext}
Category: {category}
Tags: {tags}

Return JSON:
- social: Facebook/LinkedIn post (max 200 chars, professional)
- short: Twitter/Bluesky (max 270 chars, punchy with hashtags)
- chat: Telegram/Discord (casual, conversational)
- email_subject: Email subject line (max 60 chars, compelling)

Acceptance Criteria

  • Claude API integration
  • OpenAI API integration
  • "Generate" button in Share Content panel
  • Platform-specific prompt engineering
  • Review and edit before saving (never auto-post AI text)
  • API key stored encrypted in component config
  • Graceful fallback when API unavailable

Priority

Tier 1 -- Highest impact feature gap. Every major competitor has this in 2026.

## Summary Integrate with AI APIs (Claude/OpenAI) to auto-generate platform-optimized captions from article content. Every major 2026 tool has this: Hootsuite (OwlyWriter), SocialBee (AI Copilot), FS Poster, Publer. No Joomla extension offers it. ## User Flow 1. Author writes article and clicks "Generate Share Text" button 2. AI reads article title + introtext + category + tags 3. Generates platform-specific text for each field in the Share Content panel: - Social text (Facebook/LinkedIn tone, ~200 chars) - Short text (Twitter/Bluesky, under 280 chars, punchy) - Chat text (casual tone for Telegram/Discord) - Email subject (compelling subject line) 4. Author reviews, edits, and saves ## Implementation ### Component Config - `ai_provider`: none / claude / openai - `ai_api_key`: encrypted API key - `ai_model`: model selection (e.g. claude-haiku-4-5, gpt-4o-mini) - `ai_tone`: professional / casual / friendly / custom prompt ### Technical - AJAX endpoint in component controller - Sends article content to AI API with platform-specific system prompts - Returns JSON with generated text for each field - JavaScript button in Share Content panel triggers generation ### Prompt Engineering ``` Generate cross-post captions for this article: Title: {title} Content: {introtext} Category: {category} Tags: {tags} Return JSON: - social: Facebook/LinkedIn post (max 200 chars, professional) - short: Twitter/Bluesky (max 270 chars, punchy with hashtags) - chat: Telegram/Discord (casual, conversational) - email_subject: Email subject line (max 60 chars, compelling) ``` ## Acceptance Criteria - [ ] Claude API integration - [ ] OpenAI API integration - [ ] "Generate" button in Share Content panel - [ ] Platform-specific prompt engineering - [ ] Review and edit before saving (never auto-post AI text) - [ ] API key stored encrypted in component config - [ ] Graceful fallback when API unavailable ## Priority Tier 1 -- Highest impact feature gap. Every major competitor has this in 2026.
Sign in to join this conversation.
No labels
Priority Medium
Type Feature
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: MokoConsulting/MokoSuiteCross#161