Docs
Guías cortas y código copiable. Cualquier integración funciona en menos de 10 minutos — si te toma más, es bug nuestro.
Empezar
Crea workspace, conecta canales, define tu primer agente.
Abrir
REST API
OpenAPI 3.1, autenticación, ejemplos en TS/cURL.
Abrir
Webhooks
Eventos en tiempo real con HMAC firmado.
Abrir
MCP tools
Adjunta tus herramientas al agente.
Abrir
Sitios web
5 integracionesDrop-in script. Funciona en cualquier sitio sin framework. El widget se inyecta como un iframe aislado.
<script
src="https://cdn.blindagents.com/chat.js"
data-agent-id="YOUR_AGENT_UUID"
defer
></script>Componente React tipado. Mismo paquete oficial: `@duvandroid/react-blind-agents`. Compatible con Suspense.
pnpm add @duvandroid/react-blind-agents
# o
npm install @duvandroid/react-blind-agentsCompatible con App Router y Pages Router. Importa desde `@duvandroid/react-blind-agents/next` para el wrapper que maneja `next/script` por ti.
import { ChatWidget } from "@duvandroid/react-blind-agents/next";
export default function RootLayout({ children }: { children: React.ReactNode }) {
return (
<html lang="es">
<body>
{children}
<ChatWidget
agentId={process.env.NEXT_PUBLIC_BA_AGENT_ID!}
primaryColor="#4f46e5"
strategy="afterInteractive"
/>
</body>
</html>
);
}App oficial en el Shopify App Store. Sincroniza productos, pedidos y clientes para que el agente conteste con contexto comercial.
Liquid override (opcional) · html
{%- comment -%} theme.liquid — pegar antes de </body> {%- endcomment -%}
<script
src="https://cdn.blindagents.com/chat.js"
data-agent-id="{{ settings.ba_agent_id }}"
data-external-id="{{ customer.id }}"
data-primary-color="#4f46e5"
defer
></script>Plugin oficial. Instalación en 1 click sin tocar código. Compatible con WooCommerce.
Functions.php override · html
<?php
add_action('wp_footer', function () {
$agent = get_option('blindagents_agent_id');
if (!$agent) return;
printf(
'<script src="https://cdn.blindagents.com/chat.js" data-agent-id="%s" defer></script>',
esc_attr($agent)
);
});Developers
3 integracionesTodo lo que la UI hace, la API también. OpenAPI 3.1, generación de tipos con `openapi-typescript`.
curl https://api.blindagents.com/v1/contacts \
-H "Authorization: Bearer $BA_TOKEN" \
-H "Content-Type: application/json"Eventos en tiempo real con HMAC firmado. Retries automáticos con backoff exponencial.
import crypto from "node:crypto";
import express from "express";
const app = express();
app.use(express.raw({ type: "application/json" }));
app.post("/webhooks/ba", (req, res) => {
const signature = req.header("X-BA-Signature") ?? "";
const expected = crypto
.createHmac("sha256", process.env.BA_WEBHOOK_SECRET!)
.update(req.body)
.digest("hex");
if (!crypto.timingSafeEqual(Buffer.from(signature), Buffer.from(expected))) {
return res.status(401).send("invalid signature");
}
const event = JSON.parse(req.body.toString());
switch (event.type) {
case "appointment.created":
// sync to your calendar
break;
case "conversation.started":
// notify support
break;
}
res.sendStatus(200);
});Adjunta tus propias herramientas al agente vía Model Context Protocol. El agente las invoca con razonamiento basado en contexto.
Tool MCP en TypeScript · ts
import { Server } from "@modelcontextprotocol/sdk/server";
const server = new Server({ name: "inventory", version: "1.0.0" });
server.tool("check_stock", {
description: "Verifica disponibilidad de un producto",
inputSchema: {
type: "object",
properties: { sku: { type: "string" } },
required: ["sku"],
},
}, async ({ sku }) => {
const stock = await db.query("SELECT quantity FROM inventory WHERE sku = $1", [sku]);
return { content: [{ type: "text", text: `Stock: ${stock}` }] };
});
server.connect();Canales
1 integracionesConexión vía WhatsApp Business API. Multi-número, plantillas, multimedia, listas de difusión.
Enviar plantilla · bash
curl https://api.blindagents.com/v1/whatsapp/send \
-X POST \
-H "Authorization: Bearer $BA_TOKEN" \
-d '{
"to": "+573001234567",
"template": "appointment_reminder",
"language": "es",
"components": [
{ "type": "body", "parameters": [{ "type": "text", "text": "10:30am" }]}
]
}'Automatización
1 integracionesApp oficial en Zapier. Conecta Blind Agents con +5,000 apps sin escribir código.