Communitygithub.com

lexuanthanhhy/MKT.LANDINGPAGE.SKILLS

Configura la notificación de un bot de Telegram para pagos exitosos desde el webhook de Sepay en un proyecto Next.js.

¿Qué es MKT.LANDINGPAGE.SKILLS?

Esta habilidad está diseñada para desarrolladores que integran pagos con Sepay en sus proyectos Next.js. Su propósito principal es añadir notificaciones en tiempo real a través de un bot de Telegram cada vez que se recibe un pago exitoso, permitiendo al dueño del negocio o al equipo de ventas recibir alertas instantáneas. El skill guía al usuario en la creación de un bot de Telegram, la obtención del token y chat_id, y la implementación de una función auxiliar reutilizable `sendTelegramNotification()` en `lib/telegram.ts`. Además, detecta automáticamente la ruta del webhook de Sepay existente (como `/api/sepay-webhook` o `/api/payment-success`) e integra la notificación de Telegram en paralelo con el envío de correos electrónicos (Resend) usando `Promise.allSettled`, asegurando que una falla en Telegram no bloquee la respuesta 200 a Sepay (evitando reintentos y notificaciones duplicadas). El skill también maneja el formato del mensaje en vietnamita con emojis, datos del cliente y monto, y actualiza las variables de entorno necesarias.

Compatible con~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/lexuanthanhhy/MKT.LANDINGPAGE.SKILLS/tree/main/.claude/skills/biz-telegram-payment-notify

Preguntar en tu IA favorita

Abre un nuevo chat con esta habilidad de agente ya precargada.

Documentación

Biz Telegram Payment Notify — Alerta en tiempo real cuando Sepay recibe el pago

Esta habilidad conecta la notificación del bot de Telegram al webhook de Sepay ya existente en el proyecto Next.js. Cada vez que un cliente realiza una transferencia exitosa a la cuenta bancaria vinculada con Sepay, el skill hace que el bot de Telegram envíe un mensaje en tiempo real al chat del propietario (o al grupo del equipo de ventas) — incluyendo el nombre del cliente, teléfono, monto, producto y hora.

Filosofía: El auto-respondedor por correo electrónico para el cliente (Resend) y la alerta de Telegram para el propietario atienden a dos actores diferentes. El correo es formal para el cliente. Telegram es un "ping" para el propietario — usted está en la calle, abre Telegram y ve el nuevo pedido de inmediato, sin tener que abrir Gmail y buscar entre 100 correos. Latencia de Telegram < 2 segundos vs correo electrónico 30-60 segundos.

¿Por qué Telegram y no Slack/Discord/Zalo?: La configuración del bot de Telegram toma 5 minutos (1 token + 1 chat_id), no necesita workspace/admin de servidor, mensajes ilimitados gratuitos, notificaciones push más potentes que el correo, aplicación nativa iOS/Android/escritorio. Slack necesita workspace + invitación. Discord necesita servidor + configuración de permisos. Zalo OA necesita una cuenta de negocio verificada (3-7 días de aprobación) + tarifa mensual por usuario activo. Telegram es el camino de menor resistencia para las alertas del lado del propietario.

Salida del skill: parche de código + guía de configuración del bot paso a paso + lista de variables de entorno + plan de pruebas de 3 niveles. El skill NO prueba automáticamente el envío de Telegram — requiere que el usuario pegue el token del bot y el chat_id primero, ya que estas credenciales son propiedad del usuario.


Cuándo usar esta habilidad

  • El usuario acaba de conectar el webhook de Sepay y quiere recibir notificaciones en tiempo real en Telegram cuando un cliente transfiere dinero.
  • El usuario ya tiene /api/payment-success (o equivalente) manejando el correo electrónico con Resend y quiere agregar la alerta de Telegram en PARALELO — sin crear una nueva ruta, sin duplicar lógica.
  • El usuario dice "avísame cuando tenga un pedido" y el contexto es una landing page de ventas con integración de Sepay.

NO use esta habilidad cuando:

  • El usuario quiere notificaciones de Slack/Discord → caso de uso diferente.
  • El usuario quiere un bot de Zalo OA → necesita una cuenta de negocio verificada + estructura de costos diferente.
  • El usuario aún no ha configurado el webhook de Sepay (aún no tiene una cuenta bancaria vinculada a Sepay, aún no tiene un endpoint para recibir el webhook) → esta habilidad no configura Sepay desde cero, solo se conecta al webhook existente.
  • El usuario solo quiere correo electrónico para el propietario → biz-email-setup ya tiene el Correo B (notificación al propietario).

Flujo de trabajo general (6 fases)

Fase 0: DETECTAR la ruta del webhook de Sepay existente (ruta + framework + forma del manejador)
       ↓
Fase 0.5: DETECTAR el almacén de leads (lib/leads-kv.ts de /biz-setup-sepay-payment)
           → existe: usar búsqueda KV real
           → no existe: ofrecer 2 opciones (modo raw O ejecutar /biz-setup-sepay-payment primero)
       ↓
Fase 1: GUIAR al usuario para crear el bot de Telegram (BotFather → token → chat_id)
       ↓ [BARRERA — esperar a que el usuario pegue token + chat_id]
       ↓
Fase 2: REDACTAR el formato del mensaje → mostrar vista previa al usuario → confirmar
       ↓
Fase 3: CONECTAR el código (helper lib/telegram.ts + integrar en el manejador del webhook + variables de entorno)
       ↓
Fase 4: PLAN DE PRUEBAS (curl al bot directo → payload simulado de Sepay → verificación en producción)

Las fases 1 y 4 tienen una barrera de espera para el usuario porque requieren acciones manuales del usuario (obtener token, verificar en producción). Las fases 0/0.5/2/3 el skill las maneja activamente.


Fase 0 — Detectar el webhook de Sepay existente

Esta habilidad se conecta al webhook existente, NO crea una nueva ruta. Primero, localice el manejador.

Buscar la ruta del webhook — busque con palabras clave comunes:

# En la raíz del proyecto
grep -r "sepay" --include="*.ts" --include="*.js" --include="*.tsx" -l
grep -r "transferAmount\|transferType\|payment-success\|payment-webhook" --include="*.ts" --include="*.js" -l

3 escenarios comunes:

EscenarioRuta existenteAcción
El usuario usó el pipeline biz-email-setupapp/api/payment-success/route.ts (o pages/api/payment-success.ts) ya tiene Resend llamando sendCustomerEmail + sendOwnerEmailConectar sendTelegramNotification en el mismo Promise.allSettled
El usuario tiene una ruta específica de Sepayapp/api/sepay-webhook/route.ts o app/api/webhook/sepay/route.tsConectar después de analizar + validar el payload de Sepay (rama transferType === 'in')
No se encuentra ninguna ruta—DETENER. Informar al usuario: "No encontré una ruta de webhook que reciba Sepay. Configure el webhook de Sepay primero (vincule el banco a Sepay → cree una URL de webhook que apunte a su dominio) y luego vuelva para que conecte Telegram. O, si el webhook está en un endpoint con otro nombre, indíqueme la ruta."

Leer el manejador actual para entender la forma:

  • ¿Autentica la solicitud de Sepay? (Cabecera de Authorization Apikey o HMAC)
  • ¿Deduce duplicados por id o referenceCode? (Sepay reintenta si non-200 → necesita deduplicación para evitar notificaciones dobles)
  • ¿Busca el lead por content (mensaje de transferencia que contiene el ID del pedido)?
  • Formato de respuesta a Sepay: { success: true } o 200 OK simple?

Si el manejador actual no tiene deduplicación — advierta al usuario pero NO lo bloquee. El skill solo conecta Telegram, la deduplicación es un problema de la lógica de pago. Sugiera al usuario agregar deduplicación por separado si es necesario.


Fase 0.5 — Detectar el almacén de leads (CRÍTICO)

El webhook de Sepay solo envía content (texto que el cliente pegó al transferir) + transferAmount + referenceCode. Sepay NO sabe quién es el cliente — debe buscar en el almacén local según content (que contiene el ID del pedido).

El skill verifica 3 cosas:

# 1. Verificar si existe el helper del almacén de leads
test -f lib/leads-kv.ts || test -f lib/leads-kv.js && echo "lead store: ✓"

# 2. Verificar las variables de entorno de Vercel KV
grep -E "KV_REST_API_URL|KV_REST_API_TOKEN" .env.local && echo "KV env: ✓"

# 3. Verificar si @vercel/kv está instalado
grep '"@vercel/kv"' package.json && echo "KV package: ✓"

3 escenarios:

EscenarioAcción
Las 3 ✓ — almacén de leads listoContinuar a la Fase 1, usar getLeadByOrderId() de lib/leads-kv.ts en el manejador del webhook
Falta 1+ — no configuradoDETENER, preguntar al usuario 2 opciones (ver abajo)

Si falta, pregunte al usuario:

Detecté que aún no tiene un almacén de leads (Vercel KV). El webhook de Sepay no sabe quién es el cliente — solo tiene el contenido de la transferencia + el monto. ¿Qué prefiere?

Opción 1 — Configurar el almacén de leads completo con /biz-setup-sepay-payment primero (recomendado):

  • Ese skill configurará Vercel KV + creará el esqueleto de lib/leads-kv.ts + conectará el envío del formulario para guardar el lead cuando el usuario se registre
  • Luego vuelva aquí y conectaré Telegram para buscar el nombre/teléfono/correo del cliente completo
  • La alerta de Telegram mostrará: "Nguyễn Văn A — 0901234567 — [email protected] — 499K — Curso de AI Agent"

Opción 2 — Modo raw: enviar a Telegram el payload de Sepay directamente, sin buscar el lead:

  • Telegram solo mostrará: "Vietcombank — 499.000đ — content: DH001 0901234567 — 14:32"
  • El propietario deberá adivinar el cliente por el contenido y cotejar con el registro de correos de Resend
  • Simple, funciona de inmediato, pero con mala experiencia de usuario

¿Elige la opción 1 o la 2?

Si el usuario elige la 1 → DETENER este skill, sugerir /biz-setup-sepay-payment. Después de que el usuario termine la configuración → volver a este skill.

Si el usuario elige la 2 → continuar a la Fase 1, usar la plantilla raw (ver templates/lib-telegram-raw.ts).


Fase 1 — Guiar al usuario para crear el bot de Telegram

Lea references/telegram-bot-setup.md para obtener instrucciones detalladas con capturas de pantalla en texto. Resuma los 3 pasos para el usuario:

Paso 1 — Crear un nuevo bot con @BotFather

1. Abra Telegram (móvil/escritorio)
2. Busque: @BotFather → presione Iniciar
3. Escriba el comando: /newbot
4. BotFather pregunta el nombre del bot — ingrese el nombre para mostrar (ejemplo: "Pedidos Marca X")
5. BotFather pregunta el nombre de usuario — ingrese un nombre de usuario que termine en "_bot" (ejemplo: pedidos_marca_x_bot) — debe ser único globalmente
6. BotFather devuelve un mensaje con la línea:
   "Use this token to access the HTTP API: 1234567890:AAxxxxxxxxxxxxxxxxxxxxxx"
7. Copie ese token, péguelo para mí.

NOTA DE SEGURIDAD: Este token equivale al control total del bot. No lo suba a Git, no lo comparta públicamente. Si se filtra → vuelva a @BotFather → /token → /revoke para crear un token nuevo.

Paso 2 — Obtener el chat_id

Chat 1 a 1 (solo el propietario recibe) — recomendado para emprendedores individuales:

1. En Telegram, busque: @userinfobot → presione Iniciar
2. El bot devuelve un mensaje con "Id: 123456789" — copie ese número.
3. Ese es su chat_id.

Chat grupal (el equipo de ventas también recibe) — recomendado para equipos:

1. Cree un nuevo grupo de Telegram (o use uno existente)
2. Presione el nombre del grupo → Agregar miembro → busque el bot que acaba de crear (por el nombre de usuario @pedidos_marca_x_bot) → Agregar
3. En el grupo, escriba: /start@pedidos_marca_x_bot (o cualquier mensaje)
4. Abra el navegador, acceda:
   https://api.telegram.org/bot<TOKEN>/getUpdates
   (reemplace <TOKEN> por el token del paso 1)
5. En la respuesta JSON, busque "chat":{"id":-1001234567890,...} — copie ese número (recuerde mantener el signo menos si lo tiene)
6. Ese es el chat_id del grupo.

Canal (transmisión unidireccional, sin discusión) — chat_id comienza con -100. La forma de obtenerlo es similar a la del grupo, pero agregue el bot como administrador del canal.

Paso 3 — Pegar para el skill

Espere a que el usuario pegue:

TELEGRAM_BOT_TOKEN=1234567890:AAxxxxxxxxxxxxxxxxxxxxxx
TELEGRAM_CHAT_ID=123456789

BARRERA IMPORTANTE: NO continúe a la Fase 2 hasta que el usuario pegue ambos valores. Si el usuario dice "ya lo tengo, en otro lugar" → aún espere a que lo pegue, porque es necesario inyectarlo en .env.local en la Fase 3.


Fase 2 — Redactar el formato del mensaje

Formato predeterminado en vietnamita, compatible con dispositivos móviles (Telegram renderiza HTML):

🎉 <b>PEDIDO NUEVO</b>

👤 <b>{{name}}</b>
📞 {{phone}}
📧 {{email}}
💰 <b>{{amount}}</b> — {{product_name}}
🕐 {{time_vn}}

🔗 Código de transacción: <code>{{reference_code}}</code>

Después de inyectar las variables:

🎉 PEDIDO NUEVO

👤 Nguyễn Văn A
📞 0901 234 567
📧 [email protected]
💰 499.000đ — Curso de AI Agent
🕐 14:32 14/05/2026

🔗 Código de transacción: FT26134567890

Mostrar vista previa al usuario, preguntar:

  1. ¿Este formato está bien? ¿Quiere agregar o quitar algún campo? (ejemplo: agregar fuente UTM, número de pedidos del día, enlace de Zalo del cliente)
  2. ¿Hay demasiados emojis? (Algunos usuarios prefieren texto sin formato)
  3. ¿Quiere agregar un botón en línea (CTA) con enlace a CRM/Hojas de cálculo? (avanzado — el skill puede agregar un teclado en línea)

Reglas de formato:

  • Modo HTML (parse_mode: "HTML") — Telegram admite <b>, <i>, <u>, <code>, <pre>, <a href>. NO admite <br> — use \n.
  • Formato de monto VN: 499.000đ (punto como separador de miles, con đ al final) O estilo charm 499K / 1.99M para mayor claridad. Lea la configuración de voice en offer.json si existe.
  • Formato de teléfono: 0901 234 567 (separación 3-3-3) — más fácil de escanear en móvil.
  • Hora VN: HH:mm dd/mm/yyyy — configure la hora de Vietnam (UTC+7), no UTC.
  • Evite el spam de emojis (>5 emojis/mensaje → reduce la sensación profesional).

Fase 3 — Conectar el código

3 cambios:

3.1 Crear la función auxiliar lib/telegram.ts

Lea templates/lib-telegram.ts (TypeScript) o templates/lib-telegram.js (vanilla JS). Contenido:

// lib/telegram.ts
type TelegramPayload = {
  name: string;
  phone: string;
  email: string;
  amount: number; // VND, número sin formato (ej: 499000)
  productName: string;
  referenceCode?: string;
};

export async function sendTelegramNotification(payload: TelegramPayload): Promise<void> {
  const token = process.env.TELEGRAM_BOT_TOKEN;
  const chatId = process.env.TELEGRAM_CHAT_ID;

  if (!token || !chatId) {
    console.error('[telegram] Falta TELEGRAM_BOT_TOKEN o TELEGRAM_CHAT_ID');
    return; // No lanzar error — una falla de Telegram no debe bloquear la respuesta de pago
  }

  const text = formatMessage(payload);

  try {
    const res = await fetch(`https://api.telegram.org/bot${token}/sendMessage`, {
      method: 'POST',
      headers: { 'Content-Type': 'application/json' },
      body: JSON.stringify({
        chat_id: chatId,
        text,
        parse_mode: 'HTML',
        disable_web_page_preview: true,
      }),
    });
    if (!res.ok) {
      const errBody = await res.text();
      console.error(`[telegram] Error al enviar: ${res.status} ${errBody}`);
    }
  } catch (err) {
    console.error('[telegram] Error de red:', err);
    // Ignorar — evitar que una falla de Telegram haga que Sepay reintente
  }
}

function formatMessage(p: TelegramPayload): string {
  const amountStr = p.amount.toLocaleString('vi-VN') + 'đ';
  const phoneStr = p.phone.replace(/(\d{4})(\d{3})(\d{3})/, '$1 $2 $3');
  const now = new Date().toLocaleString('vi-VN', {
    timeZone: 'Asia/Ho_Chi_Minh',
    day: '2-digit', month: '2-digit', year: 'numeric',
    hour: '2-digit', minute: '2-digit',
  });
  return [
    '🎉 <b>PEDIDO NUEVO</b>',
    '',
    `👤 <b>${escapeHtml(p.name)}</b>`,
    `📞 ${phoneStr}`,
    `📧 ${escapeHtml(p.email)}`,
    `💰 <b>${amountStr}</b> — ${escapeHtml(p.productName)}`,
    `🕐 ${now}`,
    p.referenceCode ? `\n🔗 Código de transacción: <code>${escapeHtml(p.referenceCode)}</code>` : '',
  ].filter(Boolean).join('\n');
}

function escapeHtml(s: string): string {
  return s.replace(/[<>&]/g, c => ({ '<': '&lt;', '>': '&gt;', '&': '&amp;' }[c]!));
}

Por qué ignorar el error: Sepay reintenta el webhook si recibe un non-200. Si Telegram se agota/cae y hace que el webhook se bloquee → Sepay reintenta → cada reintento envía el correo nuevamente + registra el pago de nuevo → el usuario recibe 5 correos electrónicos + 5 alertas de Telegram para un solo pedido. Telegram es un canal secundario de mejor esfuerzo, no una ruta crítica.

3.2 Conectar en el manejador del webhook de Sepay

Lea el manejador actual, localice el lugar donde se procesa el pago exitoso (después de analizar el payload de Sepay + validar transferType === 'in'). Agregue:

// app/api/payment-success/route.ts (o equivalente)
import { sendTelegramNotification } from '@/lib/telegram';
import { sendCustomerEmail, sendOwnerEmail } from '@/lib/resend'; // si ya existe

export async function POST(req: Request) {
  const payload = await req.json();

  // [Existente] Validar autenticación de Sepay + analizar payload
  if (payload.transferType !== 'in') {
    return Response.json({ success: true }); // ignorar transferencia saliente
  }

  // [Existente] Buscar lead según content (que contiene ID del pedido) o referenceCode
  const lead = await lookupLeadByTransferContent(payload.content);

  // [NUEVO] Distribuir 3 efectos secundarios en paralelo — una falla de Telegram no bloquea el correo
  await Promise.allSettled([
    sendCustomerEmail(lead),
    sendOwnerEmail(lead),
    sendTelegramNotification({
      name: lead.name,
      phone: lead.phone,
      email: lead.email,
      amount: payload.transferAmount,
      productName: lead.productName,
      referenceCode: payload.referenceCode,
    }),
  ]);

  return Response.json({ success: true });
}

Razón para usar Promise.allSettled en lugar de Promise.all:

  • Promise.all rechaza si CUALQUIER promesa falla → el manejador lanza un error → Sepay recibe 500 → reintenta → correo duplicado.
  • Promise.allSettled espera a que todas se resuelvan (ya sea resuelta o rechazada), no lanza un error.

...

[truncated for translation]

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

lexuanthanhhy/MKT.LANDINGPAGE.SKILLS

Best practices for Remotion - Video creation in React

lexuanthanhhy/MKT.LANDINGPAGE.SKILLS

Scaffold trang `/admin` CRM-style trực quan vào Next.js project (Supabase backend) — KHÔNG còn variant Vercel KV. Layout 1CRM-inspired: sidebar 3 tab (Tổng quan / Khách hàng / Email marketing) + popup nhập mã đăng nhập. **Tab Tổng quan**: 4 KPI cards (Tổng leads / Đã thanh toán / Tỷ lệ chuyển đổi / Doanh thu) có delta arrow vs kỳ trước, line chart leads+paid+revenue theo ngày dùng `recharts`, donut trạng thái paid/pending/expired, period selector pill 7d/30d/90d, list 5 thanh toán gần nhất. **Tab Khách hàng**: bảng leads + search + filter trạng thái + filter ngày + CSV export. **Tab Email marketing**: form soạn chiến dịch (tên + tiêu đề + body chọn định dạng **văn bản thường HOẶC HTML** + placeholder `{{name}}` + audience 4 loại all/paid/pending/last_days + tên người gửi) — có nút **Xem trước** mở modal iframe render đúng email thật (text → auto convert + wrap khung; HTML fragment → wrap khung, HTML đầy đủ giữ nguyên) → gửi bulk qua SMTP (reuse `nodemailer` của `biz-email-setup` — KHÔN

lexuanthanhhy/MKT.LANDINGPAGE.SKILLS

Deploy landing page / website (React, Next.js, Vite, static HTML) lên Vercel — tự kiểm tra Vercel CLI hoặc Vercel MCP đã cài chưa, nếu chưa thì cài qua npm/pnpm và hướng dẫn user authenticate (vercel login), tự detect framework (Next.js / Vite / CRA / static), auto-generate vercel.json khi cần, chạy `vercel --prod`, trả về live URL + inspect URL + hướng dẫn custom domain. USE WHEN user says 'deploy lên vercel', 'đẩy landing page lên vercel', 'publish website', 'go live', 'deploy nextjs', 'deploy react', 'deploy vite', 'tạo URL live', 'đưa lên production', 'biz-deploy-vercel', 'host landing page', 'vercel deploy', 'ship lên vercel', 'đẩy code lên vercel'. Skill này áp dụng cho cả case dùng Vercel CLI lẫn Vercel MCP server.

lexuanthanhhy/MKT.LANDINGPAGE.SKILLS

Setup SMTP-based email auto-responder cho landing page bán hàng — tự động gửi email sau khi user điền form (tên/SĐT/email), KHÔNG cố định vào provider nào. Skill này (1) hỏi user chọn SMTP provider (Gmail/Google Workspace, Resend SMTP, SendGrid, Mailgun, Brevo, Zoho, hoặc SMTP custom của hosting VN) và detect Next.js stack đang dùng, (2) đọc context từ `offer.json` + `conversion-copy.md` (từ `/biz-offer-alex-hormozi`) HOẶC đọc trực tiếp Next.js project đã build qua `ui-ux-pro-max` (file `app/page.tsx`) HOẶC đọc HTML landing page đã deploy để hiểu offer, dream outcome, mechanism, bonus. Lưu ý: skill `biz-sales-page-layout` đã DEPRECATED 2026-05-14 — pipeline mới skip layout/copy.json, (3) **draft 2 email**: email A — auto-responder gửi cho lead (warm welcome + deliver lead magnet/booking confirm/payment link tuỳ offer type), email B — notification gửi cho owner (lead alert + thông tin liên hệ), (4) **show draft cho user duyệt và chỉnh sửa** trước khi wire vào code, (5) cài `nodemailer`

lexuanthanhhy/MKT.LANDINGPAGE.SKILLS

Cài chatbot AI dạng floating widget góc dưới phải vào project Next.js có sẵn (App Router hoặc Pages Router), responsive đầy đủ web + tablet + mobile, gọi LLM qua OpenRouter (mặc định google/gemini-3-flash-preview, có thể đổi sang anthropic/claude-sonnet-4.6), streaming response, RENDER MARKDOWN trong assistant bubble (bold / list / link / code) qua react-markdown + remark-gfm — KHÔNG hiện raw **bold** dạng text — có knowledge base từ FAQ + tài liệu sản phẩm/khóa học do user cung cấp để chatbot tự động trả lời khách hàng, và TỰ ĐỘNG EXTRACT + LƯU LEAD (tên + SĐT + email) vào Upstash Redis/Vercel KV dưới namespace `chat-lead:{phone}` khi user cung cấp đầy đủ thông tin trong chat — dedupe theo SĐT, TTL 90 ngày, fire-and-forget không block stream. Skill tự detect số lượng project Next.js — nếu có nhiều hơn 1 sẽ hỏi user chọn project nào để cài; tự detect TypeScript/JS, App Router/Pages Router, Tailwind/CSS module, KV/Upstash availability (skip auto-save nếu chưa có); tự install react-markd

lexuanthanhhy/MKT.LANDINGPAGE.SKILLS

Đóng gói offer **không thể chối từ** (grand slam offer) theo phương pháp Alex Hormozi ($100M Offers) — nhận input pains/gains/customer jobs theo Value Proposition Design (Osterwalder 2014) + sản phẩm/dịch vụ, rồi sinh ra: (1) markdown report tiếng Việt đầy đủ Value Equation scoring + Core Offer + 3-4 Bonus stack + Guarantee + Urgency + Pricing, (2) offer.json structured cho pipeline downstream (`ui-ux-pro-max` build sales page production-ready), (3) conversion copy block (headline + subheadline + CTA) sẵn sàng paste landing page. 2 input mode: (B) user paste sẵn pains + gains + product, (C) user chỉ có sản phẩm — skill phỏng vấn theo VPD framework để surface pain/gain trước. Bonus stack mode hybrid: skill brainstorm 5-7 candidate có justification value rồi user pick/chỉnh 3-4 cái. Tiếng Việt thuần (xưng anh/chị), giá VND charm pricing (X99K), 3-tier decoy structure. USE WHEN user says 'đóng gói offer', 'tạo offer', 'thiết kế offer Hormozi', 'grand slam offer', 'value stack', 'offer sta

lexuanthanhhy/MKT.LANDINGPAGE.SKILLS

Nâng cấp copy sales page tiếng Việt — biến copy có sẵn (từ `offer.json` + `conversion-copy.md` của `/biz-offer-alex-hormozi`, HOẶC từ Next.js project đã build qua `ui-ux-pro-max`, HOẶC user paste block copy bất kỳ) thành **copy chất lượng cao chốt đơn**: headline punchy hơn, pain agitation đau hơn, mechanism rõ hơn, benefit cụ thể hơn, FAQ xử lý đúng objection của thị trường VN, CTA mạnh hơn. Skill này có 3 INTENSITY LEVEL: (1) **Polish** — light edit + power word + sửa nhịp; (2) **Conversion-optimized** — rewrite 5 block critical + tạo A/B variants cho hero/CTA; (3) **Sales-letter** — long-form story-driven full rewrite kèm P.S.. Mỗi section áp dụng đúng formula thuyết phục (PAR cho pain, BAB cho solution, FEP cho benefit, PVEN cho final CTA, Star-Chain-Hook cho testimonial). Output gồm 4 file: `copy-upgraded.md`, `copy-variants.md` (A/B test bank — 3 hero + 3 CTA + 3 final-CTA), `copy-changes.md` (diff Trước/Sau + lý do), `copy.json` (structured downstream). Giọng văn tiếng Việt thuầ

lexuanthanhhy/MKT.LANDINGPAGE.SKILLS

⚠️ DEPRECATED (2026-05-14) — Skill này KHÔNG còn trong pipeline chuẩn. Quy trình mới đã bỏ bước wireframe markdown trung gian: sau `/biz-offer-alex-hormozi` đi THẲNG sang `ui-ux-pro-max` để build Next.js sales page production-ready (có design language nhất quán: style + palette + font pairing, không phải Tailwind defaults). Lý do deprecate: wireframe markdown làm thêm 1 bước trung gian không tạo giá trị — `ui-ux-pro-max` đọc trực tiếp `offer.json` đã đầy đủ anchor + core + bonus + guarantee + urgency + pricing rồi ra HTML production luôn. Chỉ dùng skill này KHI user EXPLICITLY yêu cầu wireframe markdown để review/in/share trước khi build code (rare case). KHÔNG trigger trên các keyword 'tạo sales page', 'tạo landing page bán hàng' nữa — những keyword đó giờ trigger `ui-ux-pro-max`.

lexuanthanhhy/MKT.LANDINGPAGE.SKILLS

End-to-end Sepay VietQR payment infrastructure cho landing page Next.js — guide user setup Sepay account + bank linking + scaffold đầy đủ payment flow trong project. Skill này xử lý 7 phase: (0) detect Next.js stack + **HỎI user chọn lead store backend** (Vercel KV hoặc Supabase Free Postgres — default recommend Supabase do free tier rộng hơn ~50× + có SQL + admin UI), (1) GUIDE user đăng ký Sepay account tại my.sepay.vn + link bank account VN (Vietcombank/Techcombank/MB/ACB/VPBank/BIDV/...) + lấy API key + setup webhook URL trên Sepay dashboard, (2A nếu chọn KV) setup Vercel KV (install `@vercel/kv` + KV namespace + 4 env vars KV_*), (2B nếu chọn Supabase) setup Supabase project (tạo project tại Singapore region + chạy migration SQL tạo 4 bảng leads/phone_index/order_counter/webhook_dedup với pg_cron TTL cleanup + RLS deny-all + lấy SUPABASE_URL + SUPABASE_SERVICE_ROLE_KEY + Vercel Cron ping `/api/health` mỗi 6 ngày chống auto-pause), (3) scaffold `lib/leads-store.ts` (thin re-export

lexuanthanhhy/MKT.LANDINGPAGE.SKILLS

Convert a single MP3 voiceover file into a single HeyGen avatar lip-sync MP4 video. Single-purpose — no planning, no SRT, no chunking, no Remotion compositing. Hybrid path — REST upload (helper script) + HeyGen MCP for video creation, because the post-2026 MCP no longer exposes an asset-upload tool. Reads avatar look pool (`HEYGEN_AVATAR_LOOKS`) from `.env` and HeyGen API key (`HEYGEN_API_KEY`) for the upload step. USE WHEN user says "tạo video heygen từ mp3", "mp3 to heygen", "heygen mp4 từ audio", "convert mp3 sang heygen video", "tạo avatar video từ file mp3", "lip sync mp3 heygen", "biến mp3 thành video heygen", or any time the user has exactly one MP3 file and wants exactly one HeyGen avatar MP4 out.

lexuanthanhhy/MKT.LANDINGPAGE.SKILLS

Demand-side market research cho digital product / service ở Việt Nam — đo cầu thật + WTP + channel-market fit + defensibility qua keyword volume, marketplace sales (Shopee/Unica/Edumall/Gitiho/KyNa), community signal (FB groups, TikTok hashtag, Zalo OA), competitor pricing, unit economics — không phải macro PESTEL. Output: keyword portfolio + Niche Score 100 điểm 7-dimension có evidence + go/no-go decision + falsification protocol. Force triangulate ≥3 sources cho mỗi claim quan trọng. USE WHEN user says 'nghiên cứu thị trường', 'market research', 'validate niche', 'keyword research', 'demand validation', 'niche có nên làm không', 'có ai làm chưa', 'thị trường đủ lớn không', 'có lời không', 'chọn ngách', 'kiểm tra cầu'. Cũng trigger khi user mô tả 1 ý tưởng kinh doanh cụ thể và muốn check feasibility. Skill này KHÔNG fit: high-ticket transactional sale (BĐS, ô tô), B2B enterprise (sales cycle 6+ tháng), hyper-local geo micro-market (1 toà nhà, 1 phường). KHÔNG làm: macro PESTEL/Porter

lexuanthanhhy/MKT.LANDINGPAGE.SKILLS

Transcribe an MP3 voiceover into an SRT subtitle file and a word-level segments JSON using local OpenAI Whisper. Input is a single MP3 path; output is `<stem>.srt` + `<stem>_segments.json` written next to the MP3 (or to a custom output dir). USE WHEN the user says 'extract srt from mp3', 'trích srt từ mp3', 'transcribe voiceover', 'tạo file srt và segments', 'whisper transcribe', 'bóc transcript có timestamp', 'extract voiceover segments', 'tách SRT từ audio', or any time a downstream skill (plan-short-video-edit, heygen-remotion-short-video-editor) needs an SRT + word-level segments JSON from a voiceover MP3 and one does not already exist.

lexuanthanhhy/MKT.LANDINGPAGE.SKILLS

Convert Vietnamese/English script text to MP3 voiceover using ElevenLabs TTS API. Calls POST /v1/text-to-speech/{voice_id}, streams audio bytes, writes MP3 directly. Locked to Hoang's brand voice ID by default. USE WHEN user says 'tạo mp3 elevenlabs', 'elevenlabs tts', 'eleven labs voice', 'text to speech elevenlabs', 'tạo voiceover elevenlabs', 'đọc text bằng elevenlabs', 'tts elevenlabs to mp3', 'eleven labs script to mp3', 'voiceover bằng elevenlabs', 'giọng elevenlabs'.

lexuanthanhhy/MKT.LANDINGPAGE.SKILLS

End-to-end orchestrator: **script → final MP4 16:9 (1920×1080) podcast-keynote**.

lexuanthanhhy/MKT.LANDINGPAGE.SKILLS

End-to-end short-video pipeline — từ kịch bản (Việt/Anh) ra MP4 TikTok/Reels 9:16 hoàn chỉnh. Orchestrator 3 phase ghép skill có sẵn — (1) TTS provider chọn được giữa `mkt-elevenlabs-tts-to-mp3` (default, voice của Hoàng) hoặc `mkt-video-script-to-mp3` (MiniMax speech-2.8-hd), (2) checkpoint user duyệt MP3, (3) `heygen-mp3-to-mp4` lip-sync avatar HeyGen, (4) delegate Phase 3 packaging cho sub-agent `mkt-full-video-phase3-packager` (transcribe + scene outline + checkpoint + fan-out N scene writers parallel + scaffold + preview Studio). API key + voice ID cho cả 2 provider lưu ở `.env`. USE WHEN user nói "tạo full video từ script", "script to tiktok video", "pipeline full video heygen + hyperframe", "tạo video từ kịch bản đến mp4", "elevenlabs heygen hyperframe full pipeline", "minimax heygen pipeline", "kịch bản ra video tiktok", hoặc có sẵn 1 script + (optional) ảnh b-roll và muốn ra MP4 9:16 đóng gói có captions, SFX, b-roll.

lexuanthanhhy/MKT.LANDINGPAGE.SKILLS

Build a TikTok/Reels/YouTube **landscape 16:9 (1920×1080)** short video from a pre-recorded talking-head MP4 using HyperFrames — transcribe Vietnamese audio, scaffold a complete preview-ready 1920×1080 project with a slide pane (1200px) on the left and a floating avatar frame on the right, GSAP timeline có SPLIT↔PIP transitions (slide full-screen + avatar PIP corner thumbnail), breathing yoyo zoom + beat-driven punch-in trên avatar, 5 scene compositions kiểu "tier-row" pattern (post-stack hook / chats-stack problem / hero-orb solution / counter-row recap / terminal-row CTA), optional cream-paper editorial infographic image slots với `<img onerror>` fallback, 6 SFX wired tại scene boundaries, **NO captions** (giọng avatar là spine). USE WHEN user nói "edit video 16:9 từ HeyGen MP4", "scaffold project landscape", "podcast keynote editor", "talking head + slide editor", "build hyperframes 1920×1080", "tạo project 16:9 từ avatar mp4", "scaffold 16:9 hyperframes", "hyperframe landscape vide

lexuanthanhhy/MKT.LANDINGPAGE.SKILLS

Pipeline đóng gói: từ MP4 quay sẵn (talking head 9:16) tới HyperFrames preview project hoàn chỉnh có captions, SFX, zoom hooks, b-roll toàn cảnh có hiệu ứng rich, và CTA finale.

lexuanthanhhy/MKT.LANDINGPAGE.SKILLS

Audit bài Facebook / Reels / YouTube để phát hiện 4 downward drivers (over-branding, over-production, stock imagery, standardized aesthetic) + frequency-over-quality. Mỗi anti-pattern bị drop ~75% performance nếu hiện diện. USE WHEN user says 'audit content', 'check anti pattern', 'content có lỗi gì không', 'kiểm tra over branding', 'vì sao video bị chết', 'vì sao post không ai xem', 'content audit', 'kiểm tra chất lượng content'.

lexuanthanhhy/MKT.LANDINGPAGE.SKILLS

Tìm viral pattern ở ngành khác (bác sĩ, luật sư, tài chính, bất động sản, thủ công) có thể apply cho niche AI/automation của Hoang. Ngách AI educator VN còn ít format được khai thác — cross-industry adaptation là blue ocean. USE WHEN user says 'tìm format ngành khác', 'cross industry research', 'học format từ ngành khác', 'blue ocean format', 'tìm format chưa ai làm', 'adapt format từ niche khác', 'cross industry viral'.

lexuanthanhhy/MKT.LANDINGPAGE.SKILLS

Rewrite CTA kiểu autocratic (Mua ngay! Follow ngay! Đăng ký liền!) sang 3 variants Democratic / Benevolent / Laissez-faire — reach 85% dân số thay vì chỉ 5% (action-based). Áp dụng cho landing page, caption FB, CTA video, email. USE WHEN user says 'rewrite cta', 'sửa cta', 'cta không autocratic', 'viết lại kêu gọi hành động', 'cta cho landing page', 'cta nhẹ nhàng hơn', 'inclusive cta', 'cta democratic benevolent'.

Skills relacionados