I Automated My Personal Brand: From Notion to X, Threads, and LinkedIn with n8n (with Human Approval)

Posting to three networks by hand does not scale. I write the text, cut it for one, leave it longer for another, paste the link, check the preview, and do it again the next day. I also don’t want a bot that posts because a clock said so. If the copy is wrong, it goes out wrong, three times.

What I built is more boring. A row in a database, a status I change myself, and a flow that only picks up those rows.


The problem

The bottleneck is not the API. It is permission.

I can draft an idea once and adapt it per network. What I won’t automate is judgment. A sentence that reads fine in a draft can be too much once it is public. So the flow does not create posts. It waits for them.

One rule: if the row does not say Approved, it does not exist for the publisher.


Architecture

Four pieces. None of them decide the copy.

       Notion                 my n8n instance              networks
 ┌────────────────┐       ┌─────────────────────┐       ┌────────────┐
 │ publications   │       │    every 15 min     │       │ X          │
 │                ├──────►│  check length       ├──────►│ Threads    │
 │ Approved only  │       │  one node per net   │       │ LinkedIn   │
 │ and due date   │◄──────│  write status       │◄──────│            │
 └────────────────┘       │  and the link       │       └────────────┘
                          └─────────────────────┘

The database lives in Notion. The flow runs on my n8n instance, self-hosted. Each network talks through its own API, with its own credential. n8n does not invent the text, and it does not move a row to Approved. I do that.


The Notion database

One database. One record per publication, not per idea. If the same text goes to two networks, that is two rows. Each one has its own limit, its own error, and its own link.

FieldWhat it is for
TitleInternal name. It is not published.
NetworkX, Threads, or LinkedIn. Picks the node.
TextWhat goes out, already cut for that network.
DateNothing publishes before this moment.
StatusDraft, Approved, Published, or Failed.
Resource linkA link to attach, if there is one.
Published linkWhat the API returns when it works.
ErrorA short message if the node fails.

The statuses are the lock:

StatusWho sets itWhat happens
DraftMeThe flow does not look at it.
ApprovedMeIt enters the next pass, if the date has passed.
PublishedThe flowIt has a link. It is not sent again.
FailedThe flowIt has an error. It sits until I review it.

Only Approved leaves. A half-written draft is not one cron tick away from going live.


The n8n flow

The trigger is a schedule every 15 minutes. There is no “publish now” button inside the flow. If I am in a hurry, I move the date up and wait for the pass, or I run the workflow by hand. The query is the same either way.

It loads rows whose Status is Approved and whose Date is now or earlier. Zero rows is a success. The flow ends.

For each row:

  1. I read the status again. If it is no longer Approved, I skip it.
  2. I measure the text against that network’s limit. If it is over, I write Failed and the reason, and I do not call the API. On X that also avoids paying for a post that was going to bounce.
  3. One node per network. There is no generic HTTP call for all three. Each one has its own credential and its own response shape.
  4. If the API returns an id, I write Published link and set the status to Published.
  5. If the API returns an error, I copy a trimmed body into Error and set Failed.

Step 4 stays in that order. The link is saved on the same branch as the status change. A row that already has a Published link is not sent again, even if the status write stops halfway.

The publish node does not retry on its own. A retry is the easiest way to publish twice.


Each network

X

280 characters. I check that before the call.

The API charges per post. A post that includes a URL costs more than text alone, so the link does not go in the body. The text goes out. If there is a Resource link, the flow publishes a reply under that post with the link: the comment that sits underneath. The reader sees it. I pay for the cheaper post.

Images are a separate permission. Uploading media requires the media.write scope. Without it, the media node says it is not authorized, even when the text node works. If the row has no image, I do not ask for media.

Threads

Two steps, in this order. First I create a container with the text. Then I publish that container. If I stop after the first step, there is no post. There is an unpublished object, and the row cannot move to Published.

The token lasts 60 days and can be refreshed before it expires. It does not refresh just because the flow runs every 15 minutes. I track that separately.

Text fits in 500 characters. The cut I use for X is usually short here, so the Threads row carries its own Text.

LinkedIn

The app needs two products: Share on LinkedIn, and Sign In with OpenID Connect. The first one allows posting to the profile. The second is the login that issues the token. Without both, the credential fails before the node runs.

The token lasts 60 days. Text fits in 3000 characters. In practice that is a long post, not a thread.

The error that cost me the most time was not the copy. The LinkedIn credential in n8n still had the old r_emailaddress scope. New apps do not grant it. Email comes from OpenID, not from that name. It has to come off the credential.

The other switch is called Organization Support. Turned on, the credential asks for organization permissions. I post as a person, not as a page, and the app does not have that product. With the switch off, the token is issued and the node posts to the profile.


What broke

Mixed credentials on X. One node talked to the new credential, and another — the reply, or the media upload — still pointed at a different credential. The API answers 400. It does not say I mixed credentials. It says the request is bad. The rule I kept: every node for the same row uses the same X credential. If I rotate one, I change all of them.

The link card in the wrong language. A network’s crawler does not run the page’s language toggle. It reads the title and description in the HTML of the URL I pasted. If I paste the URL with no language, the card comes out in that page’s default language, even when the post text is in the other one. So when Resource link points at one of my articles, I use the URL for the language I am posting in. The preview and the text match.


Limits per API

NetworkCharactersTokenHow it publishesWatch out
X280the app’s, per userone post; the link goes in a replycharged per post; a URL in the body costs more; images need media.write
Threads50060 days, refreshablecontainer, then publisha container alone is not a post
LinkedIn300060 daysone post to the profileShare on LinkedIn and Sign In with OpenID Connect; no r_emailaddress; Organization Support off when posting as a person

Those are the caps the flow enforces. They are not a target to fill.


Human approval

The flow is a courier. It does not draft, it does not pick the hour for me, and it does not forgive an error by retrying blind.

I set Approved when the text is already cut and the date is the go-live time. Until then the row is a Draft, and the pass moves on.

To avoid posting twice:

  • The query only asks for Approved, with a date that is already due.
  • Right before the POST I read the row again. If the status changed, I stop.
  • The first thing I write back is Published link. If that field already has a value, there is no second send, even if the status was left on Approved.
  • A failure becomes Failed and stops. Moving it back to Approved is a decision, not an automatic retry. If the network did publish and Notion missed it, the link is already stored and the next pass sees it.
  • A pass takes seconds, and the next one is 15 minutes later. They are not meant to overlap. The lock is still the status and the link, not the clock.

It is slower than a bot. It is also the only way I leave a credential with write access turned on all week.


What’s next

Threads and LinkedIn tokens have to be refreshed before the 60 days are up. Today that is manual. Next is a reminder, not a hidden refresh that fails quietly.

Threads of posts stay out. This flow publishes one text per row. Chaining replies means storing the parent id and creating child rows. I will do that when the simple case has gone a few weeks without duplicates.

Measuring stays out too. Published link is enough to open the post. Impressions and replies can come back to the same row later, on a separate read-only pass. I am not mixing that into the flow that writes to the networks.


The automation moves the row. The decision that it should exist stays mine.

Share
D
Diego Duran
@fxckcode

Backend engineer who ships agentic CLI tooling. NestJS, Go, Django, AWS.

Automaticé mi marca personal: de Notion a X, Threads y LinkedIn con n8n (con aprobación humana)

Publicar en tres redes a mano no escala. Escribo el texto, lo acorto para una, lo dejo más largo para otra, pego el enlace, miro la vista previa y al día siguiente lo repito. Tampoco quiero un bot que publique porque el reloj marcó la hora. Si el texto está mal, sale mal, tres veces.

Lo que armé es más aburrido. Una fila en una base, un estado que cambio yo, y un flujo que solo se lleva esas filas.


El problema

El cuello de botella no es la API. Es el permiso.

Puedo redactar una idea una vez y adaptarla a cada red. Lo que no quiero automatizar es el criterio. Una frase que en el borrador se lee bien puede, ya publicada, sobrar. Por eso el flujo no crea posts. Los espera.

La regla es una sola: si la fila no dice Aprobado, no existe para el publicador.


Arquitectura

Cuatro piezas. Ninguna decide el contenido.

       Notion               mi instancia de n8n             redes
 ┌────────────────┐       ┌─────────────────────┐       ┌────────────┐
 │ publicaciones  │       │    cada 15 min      │       │ X          │
 │                ├──────►│  valida longitud    ├──────►│ Threads    │
 │ solo Aprobado  │       │  un nodo por red    │       │ LinkedIn   │
 │ y fecha vencida│◄──────│  escribe estado     │◄──────│            │
 └────────────────┘       │  y el link          │       └────────────┘
                          └─────────────────────┘

La base vive en Notion. El flujo corre en mi instancia de n8n, autoalojada. Cada red habla por su API, con su propia credencial. n8n no inventa el texto y no pasa una fila a Aprobado. Eso lo hago yo.


La base en Notion

Una base. Un registro por publicación, no por idea. Si el mismo texto sale en dos redes, son dos filas: cada una tiene su límite, su error y su link.

CampoPara qué
TítuloNombre interno. No se publica.
RedX, Threads o LinkedIn. Elige el nodo.
TextoLo que va a salir, ya cortado para esa red.
FechaNo se publica antes de este momento.
EstadoBorrador, Aprobado, Publicado o Fallido.
Link recursoEnlace que quiero adjuntar, si hay uno.
Link publicadoLo devuelve la API cuando sale bien.
ErrorMensaje corto si el nodo falla.

Los estados hacen de candado:

EstadoQuién lo poneQué pasa
BorradorYoEl flujo ni la mira.
AprobadoYoEntra en la siguiente pasada, si la fecha ya pasó.
PublicadoEl flujoTiene link. No se vuelve a mandar.
FallidoEl flujoTiene error. Se queda quieta hasta que yo la revise.

Solo sale lo Aprobado. Un borrador a medio escribir no está a un cron de distancia de publicarse.


El flujo en n8n

El disparador es un schedule cada 15 minutos. No hay un botón de “publicar ya” dentro del flujo. Si tengo prisa, adelanto la fecha y espero la pasada, o ejecuto el workflow a mano. La consulta es la misma.

Trae filas con Estado igual a Aprobado y Fecha anterior o igual a ahora. Cero filas es un éxito: el flujo termina.

Por cada fila:

  1. Vuelvo a leer el estado. Si ya no es Aprobado, la salto.
  2. Mido el texto contra el límite de esa red. Si se pasa, escribo Fallido y el motivo, y no llamo a la API. En X eso además evita pagar un post que iba a rebotar.
  3. Un nodo por red. No hay un HTTP genérico para las tres. Cada una tiene su credencial y su forma de responder.
  4. Si la API devuelve un id, escribo Link publicado y paso el estado a Publicado.
  5. Si la API devuelve error, copio el cuerpo recortado en Error y paso a Fallido.

El paso 4 va en ese orden. El link se guarda en la misma rama que el cambio de estado. Una fila que ya tiene Link publicado no se reenvía, aunque la escritura del estado se quede a medias.

El nodo de publicación no reintenta solo. Un reintento es la forma más fácil de publicar dos veces.


Cada red

X

280 caracteres. Lo valido antes de llamar.

La API cobra por publicación. Un post que lleva una URL sale más caro que uno de solo texto, así que el enlace no va en el cuerpo. Sale el texto. Si hay Link recurso, el flujo publica una respuesta a ese post con el enlace: el comentario que queda debajo. El lector lo ve. Yo pago el post barato.

Las imágenes son otro permiso. Subir media pide el scope media.write. Sin ese scope el nodo de media dice que no está autorizado, aunque el de texto funcione. Si la fila no lleva imagen, no pido media.

Threads

Dos pasos, en este orden. Primero se crea un contenedor con el texto. Después se publica ese contenedor. Si me quedo en el primero, no hay post: hay un objeto sin publicar, y la fila no puede pasar a Publicado.

El token dura 60 días y se puede renovar antes de que venza. No se renueva solo porque el flujo corra cada 15 minutos. Lo anoto aparte.

El texto cabe en 500 caracteres. El recorte que uso para X casi siempre sobra aquí, así que la fila de Threads lleva su propio Texto.

LinkedIn

La app necesita dos productos: Share on LinkedIn, y Sign In with OpenID Connect. El primero deja publicar en el perfil. El segundo es el login con el que sale el token. Sin los dos, la credencial falla antes de llegar al nodo.

El token dura 60 días. El texto cabe en 3000 caracteres. En la práctica es un post largo, no un hilo.

El error que más tiempo me hizo perder no era el texto. En la credencial de LinkedIn dentro de n8n seguía el scope viejo r_emailaddress. Las apps nuevas no lo entregan: el correo va con OpenID, no con ese nombre. Hay que quitarlo de la credencial.

El otro interruptor se llama Organization Support. Encendido, la credencial pide permisos de organización. Yo publico como persona, no como página, y la app no tiene ese producto. Con el interruptor apagado, el token sale y el nodo publica en el perfil.


Lo que se rompió

Credenciales mezcladas en X. Un nodo hablaba con la credencial nueva y otro, el de la respuesta o el de la media, seguía apuntando a una credencial distinta. La API responde 400. No dice que mezclé credenciales. Dice que el request está mal. La regla que me quedó: todos los nodos de una misma fila usan la misma credencial de X. Si roto una, la cambio en todos.

La tarjeta del enlace en otro idioma. El crawler de la red no ejecuta el selector de idioma de la página. Lee el título y la descripción del HTML de la URL que pegué. Si pego la URL sin idioma, la tarjeta sale en el idioma por defecto de esa página, aunque el texto del post esté en el otro. Por eso, cuando Link recurso apunta a un artículo mío, uso la URL del idioma en el que estoy publicando. La vista previa y el texto coinciden.


Límites por API

RedCaracteresTokenCómo se publicaCuidado
X280el de la app, por usuarioun post; el enlace va en una respuestacobra por publicación; la URL en el cuerpo sale más cara; las imágenes piden media.write
Threads50060 días, renovablecontenedor y después publicarel contenedor solo no es un post
LinkedIn300060 díasun post al perfilShare on LinkedIn y Sign In with OpenID Connect; sin r_emailaddress; Organization Support apagado si publicas como persona

Esos son los topes que el flujo hace cumplir. No son una invitación a llenarlos.


La aprobación humana

El flujo es un cartero. No redacta, no elige la hora por mí y no se perdona un error reintentando a ciegas.

Aprobado lo pongo yo, cuando el texto ya está cortado y la fecha es la de salida. Hasta ese momento la fila es un Borrador y la pasada sigue de largo.

Para no publicar dos veces:

  • La consulta solo pide Aprobado, con fecha ya vencida.
  • Justo antes del POST releo la fila. Si el estado cambió, salgo.
  • El primer dato que escribo al volver es Link publicado. Si ese campo ya tiene valor, no hay segundo envío, aunque el estado se haya quedado en Aprobado.
  • Un fallo pasa a Fallido y se detiene. Volver a Aprobado es una decisión, no un reintento automático. Si la red llegó a publicar y Notion no se enteró, el link ya quedó guardado y la pasada siguiente lo ve.
  • Una pasada dura segundos y la siguiente es a los 15 minutos. No dependen de pisarse. Aun así, el candado es el estado y el link, no el reloj.

Es más lento que un bot. También es la única forma en que dejo una credencial con permiso de escritura encendida toda la semana.


Lo que sigue

Los tokens de Threads y de LinkedIn hay que renovarlos antes de los 60 días. Hoy es manual. Lo siguiente es un aviso, no un refresh escondido que falle en silencio.

Los hilos quedan fuera. Este flujo publica un solo texto por fila. Encadenar respuestas pide guardar el id del padre y crear filas hijas. Lo haré cuando el caso simple lleve unas semanas sin duplicados.

Medir también queda fuera. Link publicado alcanza para abrir el post. Impresiones y respuestas pueden volver a la misma fila más adelante, en otra pasada de solo lectura. No mezclo eso con el flujo que escribe en las redes.


La automatización mueve la fila. La decisión de que exista sigue siendo mía.

Compartir
D
Diego Duran
@fxckcode

Ingeniero backend que construye herramientas CLI agentivas. NestJS, Go, Django, AWS.