惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

H
Help Net Security
The GitHub Blog
The GitHub Blog
F
Fortinet All Blogs
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Simon Willison's Weblog
Simon Willison's Weblog
D
Darknet – Hacking Tools, Hacker News & Cyber Security
Cisco Talos Blog
Cisco Talos Blog
P
Privacy & Cybersecurity Law Blog
I
Intezer
Y
Y Combinator Blog
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
N
Netflix TechBlog - Medium
The Hacker News
The Hacker News
AWS News Blog
AWS News Blog
aimingoo的专栏
aimingoo的专栏
A
About on SuperTechFans
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
Stack Overflow Blog
Stack Overflow Blog
Hacker News: Ask HN
Hacker News: Ask HN
酷 壳 – CoolShell
酷 壳 – CoolShell
量子位
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
B
Blog
T
Tor Project blog
C
Cybersecurity and Infrastructure Security Agency CISA
云风的 BLOG
云风的 BLOG
博客园_首页
V2EX - 技术
V2EX - 技术
T
Threat Research - Cisco Blogs
腾讯CDC
宝玉的分享
宝玉的分享
博客园 - 叶小钗
罗磊的独立博客
S
Securelist
The Last Watchdog
The Last Watchdog
Google Online Security Blog
Google Online Security Blog
Scott Helme
Scott Helme
博客园 - 司徒正美
W
WeLiveSecurity
有赞技术团队
有赞技术团队
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
S
Secure Thoughts
NISL@THU
NISL@THU
N
News and Events Feed by Topic
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
雷峰网
雷峰网
大猫的无限游戏
大猫的无限游戏
K
Kaspersky official blog
IT之家
IT之家

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant Common SOC 2 Failures (Real World) Stop Vibe-Checking Your AI App: A Practical Guide to Evals How to Use SonarQube and SonarScanner Locally to Level Up Your Code Quality Your Next To-Do App Is Dead — I Replaced Mine with an OpenClaw AI Sign a Nostr event in 60 lines of Python using coincurve — no nostr-sdk, no nbxplorer, no rust toolchain ITGC Audit Explained Like You’re in Big 4 Patch Tuesday abril 2026: Microsoft parcha 163 vulnerabilidades y un zero-day en SharePoint Stop scraping everything: a better way to track competitor price changes Listing on MCPize + the Official MCP Registry while routing payments OUTSIDE the marketplace — how I kept 100% of my x402 revenue Building an AI-Powered Risk Intelligence System Using Serverless Architecture Why We Ripped Function Overloading Out of Our AI Toolchain Testing AI-Generated Code: How to Actually Know If It Works SaaS Churn Is Killing Your Business. Here Is What to Do About It (Without a Support Team) The Speed of AI Is No Longer Linear - And Self-Improving Models Are Why How to Implement RBAC for MCP Tools: A Practical Guide for Engineering Teams From Standard Quote to Persuasive Proposal: AI Automation for Arborists I built a CLI that scaffolds complete multi-tenant SaaS apps Axios CVE-2025–62718: The Silent SSRF Bug That Could Be Hiding in Your Node.js App Right Now The dashboard that ended our friendship Data Pipelines Explained Simply (and How to Build Them with Python) The Hidden Cost of AI Systems Nobody Talks About. undefined vs undeclared, and how typeof behaves Switching from file-based jobs to NATS/Kafka in Rust without changing code io_uring Adventures: Rust Servers That Love Syscalls Why Agentic AI is Killing the Traditional Database The POUR principles of web accessibility for developers and designers Quantum Neural Network 3D — A Deep Dive into Interactive WebGL Visualization How To Install Caveman In Codex On macOS And Windows Automation Pipeline Reliability: Why Your Workflow Breaks When Nobody Is Watching I Built an 'Open World' AI Coding Agent — It Works From ANY Folder From Freelancing to Product: A Tech Service Company's SaaS Transformation China's AI Giants: Adding Tencent Hunyuan & ByteDance Doubao to AI University (74 Providers) On the Vibe Coders and Their Lies clerk: Auto-Summarize Your Claude Code Sessions AI Weekly — 2026/04/10–04/17 | The Model Lockdown Is Here, but the Toolchain Is the Real Battleground AI 週報 — 2026/04/10–2026/04/17 模型封鎖潮來了,但工具鏈才是真戰場 Maybe this is how Open-Source apps are born... 🚀 Fine-Tune LLMs with LoRA and QLoRA: 2026 Guide tRPC v11 + Next.js App Router: End-to-End Type Safety Without the Boilerplate ShadCN UI in 2026: Why I Stopped Installing Component Libraries and Started Owning My Components SaaS Billing in React Server Components: Stripe + Supabase Without a Single `useEffect` Join our DEV Weekend Challenge — $1,000 in Prizes Across TEN winners! Submissions Due April 20 at 6:59 AM UTC. Implementing FSRS Spaced Repetition in Flutter + Supabase — Adding Memory Science to an AI Learning App "I Texted My Localhost From the Train — Claude Code Fixed the Bug Before I Got Home" I Built a Sales Prep AI and It Went Deeper Than Expected Design to Code #2: One JSON, Eleven Outputs Solving the 100M-Row Problem: A Summary Table Pattern for High-Volume Push Notification Logs Flutter Web With Wasm: What Actually Changes For Developers I Built 50 Royalty-Free Soundtracks for My Side Project in a Weekend Using AI Music Generation The Vibe Coding Security Checklist: 7 Things to Check Before You Ship Stop Letting Googlebot Guess Fix Your React App's SEO Right Desconstruindo o Streaming do LinkedIn: Como Criar um Engine de Extração de Vídeo de Alta Performance com HLS e FFmpeg (EDA Part-1) EDA (Exploratory Data Analysis) Explained With Real Life — Why Looking at Your Data Is the Most Important Step in Machine Learning Brand Relationship Management at Scale: Our 4-Touch Outreach System for 200+ Brands Why String.fromEnvironment() Might Return an Empty String in Dart JGuardrails 1.0.0 — Hardening Java LLM Apps Against Jailbreaks, Toxicity, and Prompt Injection Plan and Schedule a Full Week of Threads Content From One Claude Conversation Coding Cat Oran Ep3, Five Tables Changed Everything Updated: BFF Pattern I'm done watching freelancers get buried by 200 proposals. So I'm building the alternative. This is my first post BFS Algorithm in Java Step by Step Tutorial with Examples Tracking LLM Pricing Monthly: An Open Dataset for 22 AI Models How We Measure Content ROI on a Comparison Site: Revenue Attribution Without Perfect Data Introducing Nova AI Ops: The AI-Native Operating System for SRE Teams I built a free desktop video downloader for Windows — Grabbit How Talkie OCR Helps Vision-Impaired & Dyslexic Users Read the World Around Them VRCFaceTracking安装和iPhone面捕配置教程,有bug Even CrowdStrike Can't See Your Agents The Automation Gold Rush: What n8n Workflows and Claude Are Opening Up for Developers Right Now
El Agente Orquestador: Cómo tu IA Entiende tu Marca y Ejecuta Briefs — Parte 2 de 5
jesus manriq · 2026-05-15 · via DEV Community

El Agente Orquestador: Cómo tu IA Entiende tu Marca y Ejecuta Briefs

En el artículo anterior dejamos un endpoint funcional: le mandas un topic, te devuelve un post. Funciona. Pero hay un problema — y es el mismo problema que hace que el 80% del contenido generado por IA se sienta… genérico.

El problema del prompt único.

Cuando escribes "hazme un post sobre productividad", la IA no sabe nada sobre tu marca. No sabe si tu audiencia son CEOs o pasantes. No sabe si tu tono es irreverente o corporativo. No sabe que jamás usarías la palabra "empoderar" ni el emoji 🚀.

El resultado: contenido correcto, gramaticalmente impecable, completamente olvidable.

La solución: un agente orquestador con memoria de marca.


Por Qué los Prompts Sueltos No Escalan

Imagina este escenario real. Tienes tres personas en tu equipo generando contenido con IA:

  • Ana escribe: "post para instagram sobre nuestro nuevo feature de reportes"
  • Carlos escribe: "algo para stories sobre datos, que sea moderno"
  • María escribe: "contenido para linkedin, tono serio, sobre analytics"

Tres personas, tres estilos de prompt, cero consistencia. El feed de tu marca parece manejado por tres empresas distintas. Y cada vez que quieres ajustar el tono, tienes que entrenar a tres personas.

Un agente orquestador resuelve esto con dos conceptos clave:

  1. Memoria de marca: Un system prompt que contiene voz, audiencia, palabras prohibidas, estructura preferida
  2. Briefs estructurados: En vez de prompts libres, usas JSON con campos específicos

Anatomía de un Brief Estructurado

Esto no es un prompt:

Hazme un post sobre productividad para Instagram

Enter fullscreen mode Exit fullscreen mode

Esto es un brief:

{
  "brand": "guayoyo_tech",
  "platform": "instagram_feed",
  "content_type": "educational",
  "topic": "automatizacion_de_reportes",
  "hook_angle": "tiempo_ahorrado",
  "key_points": [
    "Reducimos 12 horas semanales de reporting manual",
    "Datos en tiempo real sin esperar a fin de mes",
    "Un dashboard que se actualiza solo"
  ],
  "cta_goal": "demo_booking",
  "visual_note": "dashboard con gráficos en colores #1A73E8 y #0b1120"
}

Enter fullscreen mode Exit fullscreen mode

Cada campo tiene un propósito. El agente no "interpreta" — ejecuta. Y como el brief es JSON, puedes generarlo desde un CRM, un form de Airtable, o incluso otro nodo de IA.


La Memoria de Marca: El System Prompt que Define Todo

En n8n, la memoria de marca se almacena como un nodo Set que inyecta el system prompt antes de cada llamada al LLM. Este es el nuestro para Guayoyo Tech:

Eres Guayoyo AI, el asistente de contenido de Guayoyo Tech.

IDENTIDAD DE MARCA:
- Guayoyo Tech construye software enterprise y automatizaciones con IA para empresas en Latinoamérica.
- No somos una startup de Silicon Valley. Somos ingenieros serios resolviendo problemas reales.
- Nuestro cliente es el director de tecnología o CEO de una empresa mediana-grande.

VOZ Y TONO:
- Directo, sin hype, sin buzzwords vacías.
- Tono profesional pero cercano. Como un colega que sabe mucho y te lo explica sin condescendencia.
- Usamos "tú" (no "usted") en español. En inglés, tono conversacional profesional.

PALABRAS PROHIBIDAS:
- Empoderar, disruptivo, game-changer, sinergia, revolucionario, next-gen, leveraging, holístico.
- Emojis prohibidos: 🚀 (abusado), 💡 (cliché), 🔥 (no somos una marca de energía).

ESTRUCTURA DE POST:
1. Hook (1-2 líneas, pregunta o dato impactante)
2. Cuerpo (3-4 bullet points o párrafos cortos)
3. Hashtags (5-7, mezcla de nicho y tendencia)
4. CTA (específico, una acción clara)

NUNCA:
- Termines un post sin CTA.
- Uses más de 2 emojis por post.
- Hagas promesas exageradas ("esto cambiará tu vida").
- Menciones competidores por nombre.

Enter fullscreen mode Exit fullscreen mode

Este system prompt viaja en cada llamada al LLM. El agente no "recuerda" la marca — la marca es parte de su instrucción base.


Construyendo el Agente en n8n: El Flujo de 5 Nodos

Vamos a transformar el flujo simple del artículo 1 en un agente orquestador completo.

Flujo visual:

[Webhook] → [Set: Brand Memory] → [Code: Build Prompt] → [Ollama: Generate] → [Code: Parse Response] → [Respond]

Enter fullscreen mode Exit fullscreen mode

Nodo 1: Webhook

Igual que antes, recibe el brief JSON:

curl -X POST http://localhost:5678/webhook/agente-contenido \
  -H "Content-Type: application/json" \
  -d '{
    "brief": {
      "platform": "instagram_feed",
      "content_type": "educational",
      "topic": "automatizacion_de_reportes",
      "hook_angle": "tiempo_ahorrado",
      "key_points": [
        "Reducimos 12 horas semanales de reporting manual",
        "Datos en tiempo real sin esperar a fin de mes",
        "Dashboard auto-actualizable"
      ],
      "cta_goal": "demo_booking",
      "visual_note": "dashboard con gráficos azules"
    }
  }'

Enter fullscreen mode Exit fullscreen mode

Nodo 2: Set — Brand Memory

En n8n, un nodo Set permite definir valores fijos. Configúralo así:

Name Value
brandSystemPrompt (pega el system prompt completo de arriba)
brandName Guayoyo Tech
brandColors #1A73E8, #0b1120, #22d3ee

Estos valores están disponibles para todos los nodos siguientes como {{ $json.brandSystemPrompt }}.

Nodo 3: Code — Build Structured Prompt

Aquí es donde la magia ocurre. Este nodo de código (JavaScript) construye el prompt final combinando la memoria de marca con el brief:

// Obtener inputs de los nodos anteriores
const brief = $input.first().json.brief;
const brandSystemPrompt = $('Set').first().json.brandSystemPrompt;
const brandColors = $('Set').first().json.brandColors;

// Construir prompt estructurado
const userPrompt = `
BRIEF DE CONTENIDO:

Plataforma: ${brief.platform}
Tipo de contenido: ${brief.content_type}
Tema: ${brief.topic}
Ángulo del hook: ${brief.hook_angle}

Puntos clave a cubrir:
${brief.key_points.map((p, i) => `${i + 1}. ${p}`).join('\n')}

Objetivo del CTA: ${brief.cta_goal}
Nota visual (para el diseñador/IA de imágenes): ${brief.visual_note}

Colores de marca: ${brandColors}

INSTRUCCIONES:
Genera un post completo con esta estructura exacta:
1. HOOK (1-2 líneas)
2. CUERPO (3-4 párrafos o bullets)
3. HASHTAGS (5-7)
4. CTA (1 línea)

El hook debe enganchar con: ${brief.hook_angle}.
El CTA debe llevar a: ${brief.cta_goal}.
No uses palabras prohibidas. Máximo 2 emojis.
Responde en formato JSON con los campos: hook, body, hashtags, cta.
`;

return {
  systemPrompt: brandSystemPrompt,
  userPrompt: userPrompt,
  platform: brief.platform,
  visualNote: brief.visual_note
};

Enter fullscreen mode Exit fullscreen mode

Nodo 4: Ollama Chat Model

Configúralo para usar tanto el system prompt como el user prompt:

  • Credential: Ollama Local
  • Model: mistral:7b
  • Messages:
    • System: {{ $json.systemPrompt }}
    • User: {{ $json.userPrompt }}
  • Temperature: 0.8 (un poco más creativo)
  • Response Format: JSON (si tu versión de Ollama lo soporta; si no, lo parseamos en el siguiente nodo)

Nodo 5: Code — Parse Response

El LLM puede devolver JSON con formato inconsistente. Este nodo lo normaliza:

const rawResponse = $input.first().json.message?.content || $input.first().json.response;

// Intentar parsear JSON; si falla, extraer con regex
let parsed;
try {
  parsed = JSON.parse(rawResponse);
} catch (e) {
  // Fallback: extraer campos con regex
  const hookMatch = rawResponse.match(/HOOK:?\s*(.+?)(?=\n\n|\n[A-Z])/s);
  const bodyMatch = rawResponse.match(/CUERPO:?\s*(.+?)(?=\n\n|\n[A-Z])/s);
  const hashtagsMatch = rawResponse.match(/HASHTAGS:?\s*(.+?)(?=\n\n|\n[A-Z])/s);
  const ctaMatch = rawResponse.match(/CTA:?\s*(.+?)(?=\n\n|$)/s);

  parsed = {
    hook: hookMatch?.[1]?.trim() || '',
    body: bodyMatch?.[1]?.trim() || '',
    hashtags: hashtagsMatch?.[1]?.trim() || '',
    cta: ctaMatch?.[1]?.trim() || ''
  };
}

// Construir post completo
const fullPost = `${parsed.hook}

${parsed.body}

${parsed.hashtags}

${parsed.cta}`;

return {
  hook: parsed.hook,
  body: parsed.body,
  hashtags: parsed.hashtags,
  cta: parsed.cta,
  fullPost: fullPost,
  visualNote: $input.first().json.visualNote,
  platform: $input.first().json.platform,
  timestamp: new Date().toISOString()
};

Enter fullscreen mode Exit fullscreen mode


Probando el Agente

Envía el brief y recibe un post completo y consistente con tu marca:

{
  "hook": "¿12 horas a la semana haciendo reportes que se actualizan solos? Algo no cuadra.",
  "body": "Todas las semanas, tu equipo pasa el equivalente a un día y medio laboral consolidando datos que ya existen en tus sistemas.\n\nCon un dashboard automatizado:\n• Los datos llegan en tiempo real, no cuando alguien corre el query\n• El reporte del lunes ya está listo el viernes a las 5pm\n• Tu equipo deja de copiar y pegar y empieza a analizar\n\nNo es magia. Es ingeniería bien hecha.",
  "hashtags": "#Automatización #BusinessIntelligence #DataAnalytics #Productividad #TechLatam #GuayoyoTech",
  "cta": "¿Quieres ver cómo se vería esto en tu empresa? Agenda una demo sin costo en guayoyo.tech/contacto"
}

Enter fullscreen mode Exit fullscreen mode

Compara esto con lo que obtendrías de un prompt suelto. La diferencia es la memoria de marca. El agente sabe quién eres, cómo hablas, y qué nunca dirías.


¿Por Qué Mistral 7B y No GPT-4?

Mistral 7B con 4-bit quantization corre en ~6GB de VRAM y genera ~40 tokens/segundo en una RTX 3090. Para generación de copy estructurado, su calidad es comparable a GPT-3.5-Turbo. Y es gratis, privado, y sin límites de rate.

¿Necesitas más calidad? Sube a Mixtral 8x7B (~24GB VRAM) o incluso Llama 3 70B con quantización. La arquitectura del agente no cambia — solo cambias el modelo en el nodo de Ollama.


Lo Que Viene

Ahora tienes un agente que recibe briefs estructurados y produce copy consistente con tu marca. Pero un post sin imagen es medio post. En el próximo artículo, vamos a conectar ComfyUI con Stable Diffusion para generar imágenes que no solo se vean bien — sino que se vean tuyas.


¿Ya tienes un LLM generando contenido pero los resultados son inconsistentes? En Guayoyo Tech diseñamos agentes de contenido con memoria de marca para empresas que necesitan copy que realmente suene a ellas. Hablemos →


Artículo 1: Del Prompt al Post | Artículo 3: Imágenes que Venden →