Skip to content
All posts
Agents2 min read

Structured Pings

Why machine-readable Pings are the bridge between notifications and agent workflows.

A normal notification tells a human something.

A structured Ping tells a human something and gives software enough context to continue.

That difference is central to PingRoom's future. If the platform is going to support agents, webhooks, approvals, and automation, a Ping cannot only be a title and body. It needs optional machine-readable data that can move through the system without losing meaning.

The Three Fields

The core fields are simple:

  • data: a JSON object for machine-readable context.
  • correlation_id: a stable value that ties the Ping to an outside workflow.
  • reply_to: an optional routing pointer for responses or related events.

These fields do not need to appear on every Ping. Most human Pings can stay simple. But when an external system, webhook, or agent sends a Ping, structure matters.

Why It Matters

Imagine a deploy bot sends a Ping to a release room.

The human sees "Deploy ready" and taps an approval. The agent sees the deployment id, environment, commit, pipeline id, and correlation id. When the answer comes back, the agent can match it to the right workflow and continue.

Without structure, the notification is only text. The machine has to parse language or keep state somewhere else. With structure, PingRoom becomes a real coordination layer.

Through The Whole Pipeline

Structured Pings only work if the fields survive the trip.

They need to be accepted at entry points like broadcasts, agent direct messages, and incoming webhooks. They need to be stored on room notifications. They need to be included in push payloads when size limits allow. They need to appear on read/listen endpoints. They need to be forwarded through outgoing webhooks. They need to be echoed on approvals and questions.

Every layer has to agree on the contract.

There are also limits. APNs has payload caps. FCM data values are strings. Stored data needs size and key-count constraints. Legacy malformed data should not dead-letter an entire push job. Structure is powerful, but it needs discipline.

Human First, Machine Ready

The key is that structured Pings should not make the product feel technical to normal users.

A family room does not need to think about JSON. A friend group does not need correlation ids. The mobile app should still show clear titles, messages, actions, and room history.

But under the surface, the Ping can carry enough context for agents and systems to coordinate. That is the PingRoom pattern I like: simple at the human edge, precise at the machine edge.

The Bigger Platform

Structured Pings are the foundation for approvals, questions, agent-to-agent messaging, outgoing webhooks, and future A2A-style transport.

They turn a push notification into a small, typed event that both people and software can understand. That is how the bell becomes a fabric.

What Developers Should Remember

Structured fields should be treated as context, not storage. Keep data compact. Use stable correlation_id values from the system that owns the workflow. Use reply_to when a later event needs routing context. Never place secrets in the payload just because the field is convenient.

The human should still be able to understand the notification from the title, message, room, and action. The machine should understand the workflow from the structured fields. When both are true, the Ping has done its job.

Mahdi Salmanzade

The Ping that cuts through.

Keep reading

Agents

The Full Potential of the Question Protocol

One primitive, a question a human answers with a tap, covers deploy gates, environment routing, team decisions, and typed replies. Here is everything it unlocks, and how to reach it from the SDK, the CLI, and MCP.

5 min read
Product

PingRoom v1.2: Questions Are Here

Our biggest update yet. Connected agents and integrations can now ask questions in your rooms, answer from the lock screen with one tap, first response wins. Plus an interactive Watch widget, room folders, free templates, every sound free, link Pings, and more.

2 min read