Agents That Start From an Event

Most agent demos start with someone typing a question. Most work in a business starts somewhere else: an order lands, a shipment misses its port window, a sensor crosses a threshold. If an agent only runs when a person asks, it works on whatever that person happened to notice, and usually later than it could have.

So when I think about agentic systems past the chat box, my first question has nothing to do with models: which events already flow through this company, and which of them should wake an agent up?

In Agent Mesh, that’s an Event Mesh entrypoint. It subscribes to topics on a Solace event broker and hands each matching message to an agent or workflow. Here’s a rule from the docs, trimmed:

event_rules:
  - name: process_orders
    subscriptions:
      - topic: "commerce/orders/>"
    targetAgent: order-processor
    promptTemplate: "Process the following order event: {payload}"
    acknowledgmentPolicy:
      mode: on_completion
      timeoutSeconds: 300
    successOutput:
      enabled: true
      topic: "commerce/orders/processed"

Three lines in there are plumbing, and they’re the ones I’d look at first:

  • commerce/orders/> is a topic subscription, so the agent receives every order event as it happens. Nobody polls a database.
  • mode: on_completion holds the broker acknowledgment until the agent finishes. The default, on_receive, acknowledges as soon as the event arrives.
  • successOutput publishes the agent’s result back to the broker, so any other system can subscribe to it.

One tip from the docs: the queue Agent Mesh creates for a rule has no redelivery cap and no dead message queue. With on_completion and the default nack on failure, an event that fails every time is redelivered forever. If that matters, bind the rule to a queue you provision yourself with existingQueueName, and set the cap and dead message queue there.

You can try a rule locally: download the Solace Agent Mesh desktop app and leave the broker host empty to use the built-in development broker.

Docs:

Event Mesh Entrypoints

Event Mesh Entrypoints with the CLI

Which event in your own systems would you route to an agent first?