Saltar al contenido
Notificado

Confirmar los envíos pendientes

Saber qué pedidos de envío esperan su confirmación en el panel y cuáles vencieron.

Esta es la receta que el servidor MCP entrega a los asistentes de IA, tal cual. Está en inglés porque los modelos la siguen mejor así; el asistente le responde en su idioma.

Un asistente la lee con docs({uri:"docs://recipes/confirm-pending-sends"})

docs://recipes/confirm-pending-sends
docs://recipes/confirm-pending-sends — show the lawyer which requested sends still wait for them

Use when the lawyer asks "what is waiting for me?", when you are about to request a send and may
already have done so, or when a send request may have expired. You can only LIST the requests and
point the lawyer at the panel: an agent never confirms a send, and there is no tool that does.
To request a new send, use docs://recipes/send-an-article-8-notification step 9.

1. whoami({})
   → orgId
   skip if you already hold orgId

2. manage_resource({resource:"sends", action:"listPendingSends", params:{orgId:"<orgId>"}})
   → rows: confirmationId, notificationId, case radicado, recipient count, the token that asked,
     requested and expiry times (UTC and Bogotá)
   Pending and unexpired only, newest first, at most 50.
   Empty? Nothing waits. If the lawyer expected one, go to step 3 with the confirmationId you
   were given; otherwise stop.

3. For one request you know the confirmationId of:
   manage_resource({resource:"sends", action:"getSendConfirmation", params:{orgId:"<orgId>", confirmationId:"<confirmationId>"}})
   → status pending | confirmed | expired, expiry, who confirmed and when
   confirmed? It was sent: docs://recipes/check-a-notification-status.
   expired? Nothing was sent. Ask whether they still want it; only on a yes, request it again
   (one call to sendNotification, as in docs://recipes/send-an-article-8-notification step 9).
   skip if step 2 already answered the question

4. For each pending row, give the lawyer, with the expiry in America/Bogota:
     https://www.notificado.co/notificaciones/<notificationId>?confirmar=<confirmationId>
   plus the radicado and the recipient count. The same list is on
   https://www.notificado.co/cuenta/api. Confirming there consumes one credit per recipient and
   freezes, timestamps and emails the message.

Done when the lawyer has one link per pending request, or you told them nothing waits.

Tips
- Never request a second send for a draft that already has a pending request: hand over the link
  from step 4 instead.
- A request lapses 24 hours after it was made; it reserves no credits while it waits.
- A send by someone who cannot send yet — a paralegal, or a lawyer or owner whose identity check
  is not approved — answers "awaiting_approval" with an approvalUrl instead: it waits on
  /aprobaciones for a verified lawyer of the firm, not for a confirmation, and is not listed
  here. Only a verified lawyer's token gets "awaiting_confirmation".

Todas las recetas · Conectar un asistente