> ## Documentation Index
> Fetch the complete documentation index at: https://docs.praison.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# AI CTA Generator

> Generate platform-specific CTAs and titles

# AI CTA Generator

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

```mermaid theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
flowchart LR
    A[Content] --> B[AI CTA Generator]
    B --> C[Platform Optimization]
    C --> D[CTAs & Titles]
    
    style A fill:#e1f5fe
    style D fill:#c8e6c9
```

## CLI Quickstart

```bash theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
praisonai recipe run ai-cta-generator \
  --input '{"topic": "AI tutorial", "platform": "youtube"}' \
  --json
```

## Use in Your App (SDK)

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
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

```json theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
{
  "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

```json theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
{
  "cta": "Subscribe and hit the bell...",
  "title": "AI Agents: The Complete Guide",
  "platform": "youtube"
}
```

## Platform Guidelines

| Platform | Title Length | CTA Style                |
| -------- | ------------ | ------------------------ |
| YouTube  | 60 chars     | Subscribe, like, comment |
| X        | 50 chars     | Retweet, follow          |
| LinkedIn | 100 chars    | Connect, share           |
| TikTok   | 40 chars     | Follow, duet             |

## Environment Variables

| Variable         | Required | Description        |
| ---------------- | -------- | ------------------ |
| OPENAI\_API\_KEY | Yes      | For CTA generation |

## Related Tools

* [AI Script Writer](/docs/examples/agent-recipes/creator-suite/ai-script-writer)
* [AI Post Copy Generator](/docs/examples/agent-recipes/creator-suite/ai-post-copy-generator)
