Logotipo de Integrations

Integrations

Comunidad
MartinOlivero
integrations

Esta habilidad debe usarse cuando el producto se comunica con una plataforma que no controlas: recibe webhooks, sincroniza datos con una API de CRM, ERP, comercio electrónico o calendario, conecta la cuenta de Google o Meta de un usuario mediante OAuth, envía mensajes por WhatsApp u otra API de mensajería o envía correos transaccionales. Algunas frases que la activan (en inglés) son «integrate with», «connect to the X API», «receive a webhook», «the webhook isn't firing», «sync with», «import from their API», «OAuth with Google», «refresh token», «send transactional email», «their API returns» y «pagination». Algunas frases que la activan (en español) son «integrar con», «conectar con la API de», «recibir un webhook», «el webhook no llega», «sincronizar con», «importar desde su API», «conectar la cuenta de Google» y «mandar mails transaccionales». Diseña la integración para que los retrasos, errores, duplicados o caídas de un tercero no corrompan tus datos ni provoquen fallos silenciosos. Para Stripe y los webhooks de pagos, usa `payments`.

Add to TypingMind

Descripción general

EditorMartinOlivero
Repositoriosaas-builder
Nombre de la habilidadintegrations
Estrellas
4
Forks
2
Archivos incluidos
1
LicenciaMIT
Enlaces
  • Instrucciones en Markdown

    Un archivo SKILL.md que el modelo carga cuando lo necesita, de modo que solo consume tokens cuando la petición encaja con la habilidad.

  • Funciona con cualquier LLM

    Las habilidades de IA están en Markdown, no en código específico de un proveedor, por lo que funcionan con GPT, Claude, Gemini, Grok o un modelo local.

  • Archivos incluidos: 1

    Scripts, plantillas y referencias que el modelo puede leer mientras trabaja. Los archivos son de solo lectura y nunca se ejecutan.

  • Código abierto

    Publicada por MartinOlivero en GitHub. Revisa el contenido original antes de instalarla.

Instalación

Instala la habilidad de IA Integrations en TypingMind para usarla con cualquier LLM, o añádela a otro agente que lea SKILL.md.

1

Instalar en TypingMind

TypingMind instala una habilidad directamente desde su carpeta de GitHub: lee SKILL.md, empaqueta los archivos de recursos y guarda el resultado localmente.

  1. Abre la aplicación y ve a Plugins → Habilidades.
  2. Elige «Instalar desde GitHub».
  3. Pega la URL de la carpeta de la habilidad que se muestra a continuación y confirma.
    https://github.com/MartinOlivero/saas-builder/tree/main/skills/integrations
  4. Activa la habilidad en cada chat en el que quieras tenerla disponible.
Plugins → Habilidades → Añadir habilidad → URL de GitHub; después, pega la URL de la carpeta y pulsa Continuar.
2

Instalar en otro agente

Cualquier agente que lea el formato Agent Skills puede usar esta habilidad: copia la carpeta en el directorio de habilidades de ese agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/MartinOlivero/saas-builder.git /tmp/saas-builder
mkdir -p .claude/skills
cp -r /tmp/saas-builder/skills/integrations .claude/skills/integrations
Reinicia Claude Code después de copiarla para que detecte la nueva habilidad.

Úsala en TypingMind

Activa Integrations en cualquier chat de TypingMind y el modelo se encargará del resto. Su nombre y descripción se incluyen en el prompt del sistema y, en cuanto una petición encaja con la habilidad, el modelo carga las instrucciones completas por sí solo. No tienes que invocarla manualmente y no consume tokens hasta que se utiliza.

El modelo carga Integrations automáticamente en cuanto una petición es relevante para esa habilidad.

Funciona con cualquier modelo de IA

Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que Integrations no está vinculada al modelo para el que se creó. Instálala una sola vez en TypingMind y úsala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modelo local que ejecutes tú, todo con tus propias claves API.

  • Se carga solo cuando se necesita

    El prompt del sistema solo incluye el nombre y la descripción. Las instrucciones se cargan con la primera petición que encaja con la habilidad, por lo que una habilidad que no se usa no supone ningún coste.

  • Cambia de modelo durante el chat

    Como la habilidad contiene instrucciones y no código, cambiar de modelo no impide que funcione: el nuevo modelo lee el mismo archivo SKILL.md.

Instrucciones de la habilidad

Este es el contenido de SKILL.md que carga el modelo. Léelo antes de instalar la habilidad: contiene instrucciones que tu modelo seguirá.

Integrations

Your own code does what you wrote. A third party does what it does today, which may differ from its documentation, from yesterday, and from its sandbox. This skill designs for that.

Analogy: an integration is a business partner in another time zone who answers by post. Letters arrive twice, out of order, or not at all, and sometimes the letter says "done" when nothing was done. You don't run the business on the letters — you keep your own books and reconcile.

Discovery (max 3 questions, only if unknown)

  1. Direction — do you read from them, write to them, or both?
  2. Do they push events (webhooks), or do you pull?
  3. Is the connection per-product (one key of yours) or per-customer (each user connects their own account)?

Step 1 — Inbound: treat the webhook as a doorbell

Take only the id from the webhook, then fetch the object from their API with your own credentials. Never write the webhook body into your tables.

This one decision removes a family of problems: forged payloads, bodies re-serialized by a gateway (which breaks signature checks), events arriving out of order, and fields that are empty in the event but present in the API.

Around it:

  • Verify the signature — and reject when it is missing. A handler that skips verification if no signature header arrives has no verification.
  • Deduplicate by their event or message id, stored with a unique constraint. Deliveries repeat.
  • Batched webhooks: one bad item must not stop the rest. try/catch per item, persist before you enqueue, and never return out of the loop when one entry belongs to an unknown account — the other tenants in the same request go silent.
  • Expect your own writes to come back. Change something through their API and the webhook reports it to you; without a guard it overwrites the state you just set.
  • Never depend on the webhook alone. Build the pull path too — a "sync now" action that rings the same doorbell by hand, or a reconciliation job. Webhooks get registered and then never fire, and you find out from a customer.

Step 2 — Outbound: "they said no" is not "I don't know"

Classify every response from a write:

What came backMeaningTell the user
2xxDoneDone
4xxThey refused. Nothing changedTheir reason
5xx, timeout, connection droppedUnknown. It may have gone through"We couldn't confirm — check before trying again"

Showing "nothing was changed" on a gateway error invites a retry, and the end customer receives the notification twice.

  • The user's main action never waits on the third party. Save first, sync after; a failed sync is a visible state on the record, not a failed save.
  • Send dates as ISO-8601 with an explicit offset. A timestamp without a zone moved a real appointment by three hours — and notified the customer.
  • Find out in the sandbox what each omitted field does. Leaving a field out of an update is not always "keep it": one provider re-ran its own assignment logic and gave the appointment to a different person.
  • Trust the response you receive, not the one documented. Field names differ.

Step 3 — Reading: don't believe the pagination

  • Stop on an empty page, not on has_more: false. One API reported no more pages with 33 customers still pending.
  • Reconcile against an independent total — a report, an invoice sum, a count from their UI. Coming up short is otherwise invisible.
  • Compare ids, not counts. A date-range filter that returns the right number of the wrong records looks fine.
  • Batch id lists. A hundred ids in a query string produced a gateway error; so did sixty parallel requests. Chunk both.
  • Paginate your own reads too: auto-generated APIs cap rows per request (commonly 1000) and return a truncated list without an error.

Step 4 — Credentials that expire

  • Long-lived tokens still expire. Schedule the renewal and alert when it fails; the alternative is discovering it when the integration stops.
  • Single-use refresh tokens need a lock. Two processes refreshing at once invalidate each other; take a database lock so only one renews.
  • Adding a scope does not update existing installations. They fail with 401 until each customer reconnects — plan the migration.
  • Per-user OAuth (Google and similar):
    • Validate the scopes actually granted in the token response. Consent screens let the user untick one; the integration then shows "connected" and fails later.
    • To request an extra scope from a signed-in user, link the identity rather than starting a new sign-in — a new sign-in with a different account switches users and their data "disappears".
    • "Disconnect" must revoke at the provider, not just delete your row — especially if your privacy policy says so.
    • The provider validates the full redirect URL, not the origin.
    • Sign-up metadata (a chosen role, a plan) does not survive the OAuth round trip; carry it in the return URL.

Step 5 — Test what you think you are testing

  • A 403 alone proves nothing. Test both ends: rejected without the secret and accepted with it. A misspelled header name returns the same 403 as a working guard.
  • A 200 is not success until you have read the body. A wrong path can return an HTML page with status 200.
  • Simulated events answer simulated questions. "Does the real event carry the email?" is answered only by a real event.
  • Never test against contacts that might be real people. Sandbox data with a plausible email address is someone's inbox. Use addresses you own, and put guards in test tooling so a missing argument cannot write to a live record.
  • Check the credential's prefix before storing it. A live key saved under a variable named "test" charges real money.
  • Write down what you could not measure, as "no evidence", instead of assuming.

Step 6 — When a hop is added, the failure mode is added too

Moving logic to another service inserts a network hop. Each hop needs: a retry, an emergency branch that still records that the user wrote, and an alert that is separate from the run status — because a handled failure finishes green.

Step 7 — Transactional email

  • Best-effort, but logged. A failed email must not break the action that triggered it; a rejected one must be distinguishable from a sent one. Check the SDK's returned error.
  • One-click unsubscribe is a POST. Link scanners follow every GET in a message; a GET that unsubscribes will be triggered by security software. Link to a page with a button and set the List-Unsubscribe and List-Unsubscribe-Post headers.
  • Verify your sending domain before you need to email anyone but yourself.
  • Escape user-supplied values in HTML bodies, and restrict what a visitor's name can contain when it ends up in an invitation sent to a third party.
  • Provider templates default to English — translate them before launch.
  • Respect the provider's rate limit in loops; add a delay.

Output

Deliver: the direction and trust model, the webhook handler (signature, dedupe, doorbell fetch, per-item isolation), the reconciliation path, the response classification for writes with the user-facing message for each, the credential-renewal plan, and the both-ends test. List anything the sandbox could not confirm.

Field notes

references/field-notes.md — what each rule cost before it was a rule.

Reference

The provider's own API reference and changelog (read the current version, then verify against real responses), RFC 8058 (one-click unsubscribe), Stripe's webhook best practices (general guidance that applies to any provider). Pairs with payments, api-design (idempotency), secure-coding (secrets, signatures) and ai-features (chat platforms).

Archivos incluidos

El modelo los lee según los necesita mientras la habilidad está cargada. Son archivos de solo lectura y nunca se ejecutan.

Preguntas frecuentes

¿Qué hace la habilidad de IA Integrations?

Esta habilidad debe usarse cuando el producto se comunica con una plataforma que no controlas: recibe webhooks, sincroniza datos con una API de CRM, ERP, comercio electrónico o calendario, conecta la cuenta de Google o Meta de un usuario mediante OAuth, envía mensajes por WhatsApp u otra API de mensajería o envía correos transaccionales. Algunas frases que la activan (en inglés) son «integrate with», «connect to the X API», «receive a webhook», «the webhook isn't firing», «sync with», «import from their API», «OAuth with Google», «refresh token», «send transactional email», «their API retur...

¿Por qué usar Integrations en TypingMind?

Porque la instalas una vez y la usas con cualquier modelo. Integrations está escrita en Markdown, no en código específico de un proveedor, por lo que la misma habilidad funciona con GPT-5, Claude, Gemini, Grok o un modelo local, y puedes cambiar de modelo en mitad del chat sin que deje de funcionar. TypingMind utiliza tus propias claves API, de modo que pagas directamente a los proveedores en lugar de pagar una suscripción por puesto, y tus habilidades y chats permanecen en tu propio almacenamiento.

¿Cómo instalo Integrations en TypingMind?

Abre Plugins → Habilidades → Instalar desde GitHub en TypingMind y pega https://github.com/MartinOlivero/saas-builder/tree/main/skills/integrations. TypingMind lee el archivo SKILL.md de esa carpeta, empaqueta los archivos de la carpeta e instala el conjunto como una habilidad que puedes activar en cada chat.

¿Qué modelos de IA pueden usar Integrations?

Cualquier modelo que conectes en TypingMind. Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que GPT, Claude, Gemini, Grok y los modelos locales pueden cargar esta habilidad cuando una solicitud se corresponda con ella.

¿Con cuántos modelos de IA puedo usar Integrations?

Con tantos como quieras. Siempre que un modelo admita habilidades, puedes usar Integrations con él: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama y muchos más, todos en TypingMind con tus propias claves API.

¿Es gratuita la habilidad de IA Integrations?

Sí. MartinOlivero la ha publicado en GitHub bajo la licencia MIT. Solo pagas a tu proveedor de IA por los tokens que utilizas.

¿Qué son las habilidades de IA?

Una habilidad de IA es un conjunto de instrucciones reutilizables que enseña a un modelo de IA a realizar una tarea concreta. Sigue el formato abierto Agent Skills: un archivo SKILL.md con un nombre y una descripción, además de los scripts, plantillas o archivos de referencia que pueda necesitar el modelo. El modelo solo lee las instrucciones cuando tu solicitud se corresponde con la habilidad, por lo que una habilidad instalada no supone ningún coste hasta que se utiliza.

¿En qué se diferencian las habilidades de IA de los plugins o los servidores MCP?

Un plugin o un servidor MCP proporciona al modelo nuevas herramientas que puede invocar: código que se ejecuta en algún lugar y devuelve un resultado. En cambio, una habilidad de IA aporta conocimientos y procedimientos al modelo: cómo abordar una tarea, qué pasos seguir y qué se considera un buen resultado. Las habilidades son instrucciones en Markdown, por lo que no necesitan servidor, clave API ni entorno de ejecución, y funcionan con cualquier modelo.

Ver el directorio

Crea ya tu propio espacio de trabajo con IA

Suscríbete a nuestro boletín para recibir avisos sobre nuevas funciones y próximos sorteos 👇