Skip to main content

AI CTA Generator

Generate platform-optimized calls-to-action and titles for YouTube, X, LinkedIn, and more.

CLI Quickstart

praisonai recipe run ai-cta-generator \
  --input '{"topic": "AI tutorial", "platform": "youtube"}' \
  --json

Use in Your App (SDK)

import sys
sys.path.insert(0, 'agent_recipes/templates/ai-cta-generator')
from tools import generate_cta, generate_title

# Generate CTA
cta = generate_cta("AI tutorial video", platform="youtube")

# Generate title
title = generate_title("AI agents tutorial", platform="youtube")

Input Schema

{
  "type": "object",
  "properties": {
    "topic": {"type": "string"},
    "platform": {
      "type": "string",
      "enum": ["youtube", "x", "linkedin", "instagram", "tiktok"]
    },
    "cta_type": {
      "type": "string",
      "enum": ["subscribe", "like", "comment", "share", "link"]
    }
  }
}

Output Schema

{
  "cta": "Subscribe and hit the bell...",
  "title": "AI Agents: The Complete Guide",
  "platform": "youtube"
}

Platform Guidelines

PlatformTitle LengthCTA Style
YouTube60 charsSubscribe, like, comment
X50 charsRetweet, follow
LinkedIn100 charsConnect, share
TikTok40 charsFollow, duet

Environment Variables

VariableRequiredDescription
OPENAI_API_KEYYesFor CTA generation