Event-Driven AI Agents with Boomi Event Streams and Agentstudio, Powered by Data Hub


 
Event Streams · Agentstudio · Integration · Data Hub

Make your AI agents proactive

Most agents wait to be asked. Put one behind an Event Streams topic and it starts work the moment something changes. This article builds that for employee changes: a new hire enters the HR system once, and agents act on it without anyone opening a ticket.

By Sampathkumar Gurusamy, Product Manager, Event Streams & SAP

Highlight: Data Hub real-time synchronization, November 2026 release

The November 2026 release adds Real-Time Delivery Mode to Boomi Data Hub. When a golden record changes, Data Hub now publishes the update to an Event Streams topic as it happens, instead of waiting for a scheduled batch run. That is what lets Data Hub act as the event source for the agents in this article.

  • Set per source. Choose Real-Time in the Delivery Mode field. Batch stays the default, and both modes can live in the same model.
  • Topic and subscription created for you. On deploy, Data Hub creates a topic named DH_[Channel ID] and a subscription named DH_[Channel ID]_sub.
  • One message per golden record update. Optional delivery filters limit what is pushed: exclude fields, filter by tags, status or region, or set quality thresholds.
  • Pause and resume. Each real-time source has Pause and Resume controls in the repository summary. Pending updates are pushed when you resume.
  • Enabled per repository. Link the repository to an Event Streams environment with an environment token that has Produce and Consume permissions.

Plan before you deploy. You can switch a source back to batch while you configure the model, but not after the model is deployed. Setup details are in Configuring Real-Time Delivery Mode in Data Hub.

Agents that wait, and agents that act

An agent you chat with is reactive. It does its job well, but only after a person asks. A lot of the work you would want an agent to do has no person asking: a new hire is added, a manager changes, someone moves to a different team. Each of those is an event, and someone downstream needs to act on it.

Take employee records. A new hire is entered in the HR system. IT needs to create accounts, the manager needs a checklist, and facilities needs to know a desk is required. A role change should trigger a review of what that person can access. When these changes travel by nightly batch or by someone remembering to raise a ticket, the new hire waits for a laptop and the person who moved teams keeps access they no longer need.

The fix is to make the change itself the trigger. Event Streams carries the event, an Integration process listens for it, and an agent in Agentstudio does the work. The agent is now proactive: nobody prompts it.

The event source in this article is Boomi Data Hub. Data Hub keeps one golden record per employee, merged from the HR system, payroll and recruiting, and it can now deliver each change to Event Streams in real time. Any producer that publishes to an Event Streams topic works the same way on the agent side. Data Hub is just a good source here, because it publishes one clean event per change to the golden record, after matching and merging.

What you will build

A change to a golden employee record is published to an Event Streams topic. An Integration process listens on its own subscription and hands the change to an agent. If you also want these changes in your warehouse, Boomi Data Integration can stream them through its own Data Hub source, so it runs alongside this flow without touching it.

HRIS, payroll and recruiting feed Data Hub, which holds the golden employee record. Data Hub publishes to an Event Streams topic whose name starts with DH_, and an agents subscription feeds a Listen process for agents. Separately, Boomi Data Integration streams changes through its own Data Hub source.
Each consumer gets its own source, so nothing downstream can trip up anything else.

The Integration process reads the operation type on each message and chooses an agent.

An Integration process canvas. A Listen shape feeds a Decision on opType. CREATE goes to an Agent step for the Onboarding agent. UPDATE goes to an Agent step for the Access reviewer, then a Decision on whether access needs to change, then a Notify step. Other operation types stop.
The Listen starts the process. A Decision on opType chooses the agent.
PieceWhat it does
Onboarding agentFor a new hire, builds an onboarding checklist: accounts to create, equipment, and a welcome note for the manager.
Access reviewer agentFor a changed employee, says whether the change means access should be reviewed, and why.
Integration processListens on the topic, picks the agent by operation type, and acts on the answer.
Event Streams topic and subscriptionsCarry each change to every consumer. Each consumer moves at its own pace.
Data HubProduces the events. One golden employee record, one message per change.

For a first run, give each agent a Prompt tool that returns a mock result such as checklist-created. You can then test the whole flow without a mail system or ticketing tool. Replace the mocks with real tools once the plumbing works.

Before you start

  • Access to Agentstudio and an Agent Garden environment you can deploy agents to.
  • An Event Streams environment, with permission to create subscriptions and tokens. Event Streams runs in the Australia, USA East, Germany and UK regions. A Data Hub repository in another region can still publish to an environment in one of them.
  • A Runtime to deploy the process to. A Listen process runs continuously until you undeploy it.
  • A Data Hub repository with an employee model deployed and at least one source that sends data to it. This article does not cover modeling. See the Data Hub use cases for how teams model people and other master data.
  • Real-Time Delivery Mode enabled on your Data Hub repository. It is enabled per repository, not per account, so each repository is enrolled separately. The Delivery Mode options show in the model editor either way, but a deploy that includes a real-time source fails if the repository is not enabled. Ask your Boomi contact to enable it first. The Boomi documentation page Configuring Real-Time Delivery Mode in Data Hub covers the same setup.
  • Data Hub privileges: View Repository to see whether real-time delivery is on, and Repository Management or Deploy to enter the Event Streams token. Activity Reporting lets you view Outbound Activity. Pausing and resuming a source needs Source Attachment.
  • A Boomi username and API token for the Agent operations in Step 2. Enter the token in the Boomi UI only. Do not paste it into chat, tickets or files.

Step 1: Build the two agents

In Agentstudio, create two agents. Each has one job.

AgentJob
Onboarding-AgentTakes a new employee record and returns an onboarding checklist from a template.
Access-ReviewerTakes an updated employee record and returns whether access should be reviewed, and why.

Three choices make an agent easy to call from a process:

  • Structured mode. A structured agent returns one JSON object, so a Decision step can read a field such as access_change_needed without parsing free text.
  • Quick processing, rationale off. Keeps each call shorter. Turn them on only if the decision needs them.
  • Echo the identifiers. Have each agent return the employee ID and name with its answer, so the rest of the process can use them.

The Access-Reviewer rule is a prompt, for example "access_change_needed is true when the department, job title or manager changed." A model applies that rule, so test it on several examples of each kind before you trust it.

Package each agent, deploy each package to your Agent Garden environment, and write down the deployment IDs.

Step 2: Agent connection and operations

The Agent step needs a connection and one operation per agent. These are created in the Boomi UI, so this step is manual.

  1. In Build, create a scratch process. You only use it to create the components.
  2. Add an Agent step after the Start shape.
  3. In the step, create the Agent connection.
  4. Create the operation for Access-Reviewer. Select the agent, or enter its deployment ID. Enter your Boomi username and API token. Click Generate Configuration. This builds the request and response profiles for a structured agent. Save.
  5. Repeat for Onboarding-Agent, reusing the same connection.
  6. Save the process. You do not need to deploy it.

Check the profile. Open the Access-Reviewer response profile and find the path of the access_change_needed field. You need it for the Decision in Step 5. Confirm that each operation points at the deployment you meant.

Step 3: Publish employee changes to Event Streams

Now connect the event source. In Event Streams, open the environment's Settings and copy an environment token scoped with both Produce and Consume permissions. Note its expiry date. When the token expires, delivery stops. The environment must belong to the same account as the Data Hub repository, and a token from another account fails on save.

  1. In Data Hub, open Repositories, select your repository, and open the Configure tab. Paste the token into Event Streams Environment Token and click Save. Data Hub validates it. A bad token shows "Enter a valid token." A good one shows "Event streams token has been updated." and the field becomes read-only, with the button changing to Edit. Click Edit to replace the token, for example when it expires. The same token also works for the Event Streams connection you create in Step 4.
  2. Open the model, go to Sources, and select the source whose changes you want to publish. On the Outbound tab, set Delivery Mode to Real-Time. Under Channel updates contain, choose All Fields so each message carries the whole record.
  3. Under Field-level Options, exclude any field the agents do not need. Employee records often hold sensitive fields such as a social security number. An agent only needs what is in the message, so leave those out of the events. You can also limit which records are pushed, for example by tag, so real-time delivery only fires for changes that need an immediate reaction.
  4. Publish the model and deploy it to the repository. Real-time delivery is activated at deploy time. After a successful deploy, the repository summary shows the Delivery Mode of each source with Pause and Resume controls.
Data Hub repository Configure tab with the Event Streams Environment Token field saved and a confirmation message.
Repository, Configure tab: the Event Streams Environment Token, saved.
Source settings in the model, Outbound tab, with Delivery Mode set to Real-Time and Channel updates contain set to All Fields.
Model, Sources, Outbound tab: Delivery Mode is Real-Time.
Source Outbound tab with Channel updates contain All Fields and a note that changing the channel update type clears pending messages, plus Field-level Options with Include and Exclude per field.
Further down the Outbound tab: field-level Include and Exclude options.
Sources list showing a real-time source with a Pause option.
A real-time source can be paused from the sources list.

Delivery Mode is set per source, so batch and real-time sources can live in the same model. Pause stops delivery without losing anything: while a channel is paused, updates stay pending, and Resume pushes them so downstream systems catch up. Pausing is useful during a large data load or downstream maintenance.

Plan the delivery mode before you deploy. You can switch a source from Real-Time back to Batch while you configure the model. After the model is deployed, that change cannot be undone.

Changing source settings clears pending messages. If you change Channel updates contain, Data Hub clears the pending outbound messages for that channel. Delivered messages are kept. A deploy that changes a source between Both and Accept channel updates needs the real-time source to be paused first, and pending messages on that channel are deleted when it goes through. Pause the source before you change either setting.

Step 4: Topic, subscriptions and Listen

When you deploy the model, Data Hub creates the topic for the real-time source in your Event Streams environment. You do not create it yourself. The name is DH_ followed by the channel ID. Data Hub also creates its own subscription on it, named like the topic with _sub at the end. Leave that one alone: if the topic had no subscription, Data Hub would still mark messages as delivered, but Event Streams would not keep them. Create your own subscriptions so your consumers never compete with Data Hub's.

Event Streams subscription page for the Data Hub topic subscription, with Subscription Backlog and Dead Letter Backlog tabs.
The subscription Data Hub creates in Event Streams. Its name starts with DH_.

In Event Streams, create two subscriptions on that topic:

SubscriptionUsed byNotes
agents-subThe Integration process in this articleUse the Exclusive type. It keeps changes in order and sends failed messages to the dead letter queue. Shared allows more consumer threads but gives up both.

If you add more subscriptions later, each receives every message and moves at its own pace.

Then, in Build, create an Event Streams connection that uses a token with consume permission, and one Listen operation on agents-sub.

Event Streams Listen operation in Build with the Topic and Subscription filled in and Subscription Type Exclusive.
A Listen operation in Build: topic, subscription and subscription type.

Listen settings that matter

SettingSuggested valueWhy
Subscription typeExclusiveKeeps changes for the same employee in order, and is required for dead letter routing. The type in the Listen operation must match the type of the subscription.
AcknowledgmentTransactedThe message is acknowledged only when the run completes. A failed run is redelivered.
Ack timeout60 secondsMust be longer than your slowest agent call, or the message is redelivered while the first run is still working.
Max retries10How many redeliveries before the message is given up on.

Failed messages go to the dead letter queue. With transacted acknowledgment, if the process fails, Event Streams routes the event to the dead letter queue for review and retry. Data Hub's job ends when the update reaches the topic and is acknowledged there. Event Streams handles distribution to subscribers from then on.

Step 5: Build the process

Data Hub publishes each message as XML. Here is the shape of one, shortened. The record element holds your model's fields. Publish a real change from your channel and use that message to confirm the exact structure.

<realTimeDeliveryMessage>
  <recordId>...</recordId>
  <recordVersionId>...</recordVersionId>
  <opType>CREATE</opType>
  <recordUpdatedAt>...</recordUpdatedAt>
  <createdAt>...</createdAt>
  <channelUpdateType>FULL</channelUpdateType>
  <record>
    ... your employee fields ...
  </record>
</realTimeDeliveryMessage>

The fields you will use most:

FieldMeaning
opTypeCREATE, UPDATE, DELETE, RESTORE or REJECT_DUPLICATE.
recordId, recordVersionIdIdentify the golden record and the version this message describes. Use them as your idempotency key.
recordUpdatedAtWhen the record was last updated.
channelUpdateTypeFULL sends the whole record. DIFF sends only what changed.

Build the process in this order:

  1. Start: the Listen operation on agents-sub.
  2. Try/Catch after the Start shape. Put the rest of the process on the Try path. Send the Catch path to a Notify or exception step so an error is visible.
  3. Create an XML profile from a sample message, so the process can read opType and the record fields.
  4. Decision or Route on opType.
  5. CREATE: Map the record to the Onboarding-Agent request, then the Agent step for Onboarding-Agent, then Stop.
  6. UPDATE: Map the record to the Access-Reviewer request, then the Agent step for Access-Reviewer, then a Decision on access_change_needed. When true, send a notification, for example by email, to IT and the employee's manager. When false, Stop.
  7. Every other opType: Stop.

Wire every outcome. An unused Decision outcome still needs its own Stop shape.

Boomi Integration process canvas. A Start shape with the Listen operation goes to Try/Catch. On the Try path, a Route on opType sends CREATE to a Map, the Onboarding-Agent step and a Stop. UPDATE goes to a Map, the Access-Reviewer step and a Decision on access_change_needed: True goes to a Notify and a Stop, False goes to a Stop. Any other opType goes to a Stop. The Catch path goes to a Notify and a Stop.
The finished process. Route on opType, one agent per path, a Decision on the Access-Reviewer's answer, and a Notify on the Catch path.

Data Hub publishes one message per golden record, even when the change came in as a batch of up to 200 records. Each process execution therefore handles exactly one record, and the execution log is a good way to follow a change end to end.

Data Hub to Event Streams: a delivery attempt is retried up to 5 times, then the channel pauses until you resume or resend. In your process: a transacted Listen retries, then the message goes to the dead letter queue.
Two places where delivery can fail, and what happens in each.

Step 6: Deploy and test

  1. Deploy the process to your Runtime.
  2. In one of your sources, add a new employee.
  3. Open Data Hub, go to Outbound Activity, and select the Real-Time tab. Filter by repository and source. Each message appears as Create Record or Update Record, with an Event Streams message ID, and moves from Pending to Delivered. Add Filter narrows the list by operation type, created date, record updated date, golden record ID, Held or Not Held, and Event Streams message ID. Then open Process Reporting and check the execution.
  4. Change that employee's department in the source, and check again.
  5. Change a field that does not affect access, such as a phone number, and confirm nobody is notified.
  6. Check the subscription backlog in Event Streams.
Outbound Activity with the Real-Time tab selected, showing Create Record and Update Record messages with Event Streams message IDs.
Outbound Activity, Real-Time tab: each message and its Event Streams message ID.
Outbound Activity with the Add Filter menu open, listing Operation Type, Created Date, Record Updated Date, Golden Record ID, Held and Not Held.
Add Filter on the Real-Time tab.
Outbound Activity filtered by one Event Streams message ID, showing a single delivered Create Record message.
Filtered to one Event Streams message ID, to trace a single delivery.
ChangeShould happenShould not happen
New employeeOnboarding-Agent runs once.An Access-Reviewer call.
Department changeAccess-Reviewer runs and IT and the manager are notified.An Onboarding-Agent call.
Phone number changeAccess-Reviewer runs and nobody is notified.A notification.

Test the Access-Reviewer rule with several examples of each kind. When you finish testing, undeploy the process. A Listen process keeps consuming until you do.

What to know before production

Decide what the agent may do on its own

A proactive agent acts without a person in the loop, so set its limits on purpose. In this example the Access-Reviewer only flags a change and the process notifies people. It does not remove access. Start with agents that recommend or create a ticket, and widen what they do once you trust the results.

If updates do not arrive

Check, in this order: the channel is Active and not paused; the token is current and has both Produce and Consume permissions; the process on the subscription is deployed; the topic and its subscription exist (an environment holds at most 1,000 topics); and your tag or status filters are not excluding the record. If a message shows neither as pending nor delivered in Outbound Activity, the problem is upstream of delivery. A temporary Batch source with the same settings shows whether a message is generated at all.

Very large records arrive as a notification

Event Streams limits a message produced through its REST API to 5 MB. If a golden record update is larger, Data Hub publishes a notification with a link instead of the full message. The link points to the Data Hub Repository API (/mdm/universes/:universeId/sources/:sourceId/updates/:messageId). Employee records are rarely that big, but if yours can be, add a step that checks for the notification and fetches the full update.

A Branch runs its paths one after another

If you add a Branch to call more than one agent for the same event, the paths run in sequence, and each Agent step waits for its agent. The time for one event is roughly the sum of the calls you wait for. If one agent must not wait behind another, give each its own process and its own subscription on the topic.

Delivery is at least once, so make agents safe to repeat

A redelivered message calls the agent again. Use recordId with recordVersionId as the key so a repeat does not create a second checklist.

Start with one change you care about

The pattern is short: a change is published to an Event Streams topic, an Integration process listens, and an agent acts. Start with one topic, one subscription and one agent, then add from there. New hires are one place to begin. Any event your systems already produce can wake an agent the same way.

Tell us in the comments which events you would want an agent to act on first, and what got in your way while building this.