Major improvements to AI content generation: ## New Components (app/services/ai/) - PromptLibrary: YAML-based prompt templates with inheritance - ContextEngine: Anti-repetition and best performers tracking - ContentGeneratorV2: Enhanced generation with dynamic parameters - PlatformAdapter: Platform-specific content adaptation - ContentValidator: AI-powered quality scoring (0-100) ## Prompt Library (app/prompts/) - 3 personalities: default, educational, promotional - 5 templates: tip_tech, product_post, service_post, thread, response - 4 platform configs: x, threads, instagram, facebook - Few-shot examples by category: ia, productividad, seguridad ## Database Changes - New table: content_memory (tracks generated content) - New columns in posts: quality_score, score_breakdown, generation_attempts ## New API Endpoints (/api/v2/generate/) - POST /generate - Generation with quality check - POST /generate/batch - Batch generation - POST /quality/evaluate - Evaluate content quality - GET /templates, /personalities, /platforms - List configs ## Celery Tasks - update_engagement_scores (every 6h) - cleanup_old_memory (monthly) - refresh_best_posts_yaml (weekly) ## Tests - Comprehensive tests for all AI engine components Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
88 lines
2.2 KiB
YAML
88 lines
2.2 KiB
YAML
name: service_post
|
|
description: Posts promocionales para servicios
|
|
personality: promotional
|
|
|
|
purpose: |
|
|
Presentar servicios enfocándose en el problema que resuelven
|
|
y los resultados que el cliente puede esperar.
|
|
|
|
requirements:
|
|
- Enfocarse en el problema/dolor del cliente
|
|
- Mostrar resultados, no procesos
|
|
- Incluir prueba social si está disponible
|
|
- CTA consultivo (no de venta directa)
|
|
|
|
structure:
|
|
hook: pain_point_or_result
|
|
problem: what_client_struggles_with
|
|
solution: how_service_helps
|
|
results: expected_outcomes
|
|
cta: consultative_invitation
|
|
hashtags: 2_3_relevant
|
|
|
|
variables:
|
|
- name: service_name
|
|
type: string
|
|
required: true
|
|
- name: service_description
|
|
type: string
|
|
required: true
|
|
- name: category
|
|
type: string
|
|
required: true
|
|
- name: target_sectors
|
|
type: array
|
|
required: false
|
|
- name: benefits
|
|
type: array
|
|
required: false
|
|
- name: call_to_action
|
|
type: string
|
|
required: false
|
|
default: "Contáctanos para una consulta sin compromiso"
|
|
|
|
parameters:
|
|
temperature: 0.7
|
|
max_tokens: 400
|
|
|
|
template: |
|
|
Genera un post promocional para este servicio:
|
|
|
|
SERVICIO: {service_name}
|
|
DESCRIPCIÓN: {service_description}
|
|
CATEGORÍA: {category}
|
|
SECTORES OBJETIVO: {target_sectors}
|
|
BENEFICIOS: {benefits}
|
|
CTA DESEADO: {call_to_action}
|
|
|
|
ESTRUCTURA:
|
|
1. HOOK: Dolor del cliente O resultado transformador
|
|
2. PROBLEMA: Lo que el cliente enfrenta (empatía)
|
|
3. SOLUCIÓN: Cómo el servicio ayuda (sin tecnicismos)
|
|
4. RESULTADOS: Qué puede esperar el cliente
|
|
5. CTA: Invitación consultiva
|
|
6. HASHTAGS: 2-3 relevantes
|
|
|
|
TONO:
|
|
- Consultivo, no vendedor
|
|
- Empático con el problema del cliente
|
|
- Confiado pero no arrogante
|
|
- Enfocado en resultados medibles
|
|
|
|
REGLAS:
|
|
- Usa "tú" no "usted" (cercano)
|
|
- Evita jerga técnica innecesaria
|
|
- Si mencionas resultados, que sean realistas
|
|
- CTA debe ser bajo compromiso
|
|
|
|
Responde SOLO con el texto del post.
|
|
|
|
examples:
|
|
hooks:
|
|
good:
|
|
- "¿Tu equipo pierde 10+ horas/semana en tareas repetitivas?"
|
|
- "Empresas que automatizan reducen errores un 80%"
|
|
bad:
|
|
- "Ofrecemos servicios de automatización"
|
|
- "Somos expertos en IA"
|