Web Push Notifications for Agent Approvals
Описание и применение
Агенты реагирования на инциденты получают мгновенные системные уведомления о новых ожидающих действий, что снижает риск пропуска важных задач.
Задача
Incident‑response agents miss critical pending actions when they rely on polling a web tab, causing delays in human review.
Результат
Agents receive instant OS notifications for new pending actions, reducing missed approvals and improving incident response speed.
Рабочий процесс
- 1. Fetch Impri’s VAPID public key via GET /v1/push/vapid-public-key.
- 2. Register a service worker and call pushManager.subscribe() with userVisibleOnly:true and the fetched VAPID key.
- 3. Send the subscription JSON (endpoint and keys) to Impri via POST https://api.impri.dev/v1/push/subscribe with the API key in the Authorization header.
- 4. When an agent creates a pending action via POST /v1/actions, Impri triggers a push to all subscribed browsers for that project.
- 5. The OS displays a native notification immediately; the agent can click to open the action in the inbox.
- 6. To revoke, call DELETE /v1/push/subscribe or log out to invalidate the endpoint.
Доказательства
Wire browser-native web push into Impri so a pending AI agent action pops a real OS notification on your desktop the instant it lands, no Slack workspace or polling tab required.
The browser talks to two things: the browser's own push service (Chrome/FCM, Safari/APNs, etc.) and Impri's /v1/push endpoints.
Only genuinely new pending actions fire a push — action.created events where status="pending".
- Дата записи: 2026-09-21T17:45:20.989Z