Agent Proactivity

Agents have mostly figured out what to say. What's left is when. To make an agent feel like it is a part of the conversation rather than a mere tool that is summoned, it should be proactive.

There is a friction to recognising when an agent's superhuman capabilities can help, and then remembering to tag and ask the agent to do so each time. A truly multiplayer AI experience requires agents to be embedded in a team, and not tied to a "summoner". The benefits of the agent's abilities must accrue to all members in an organisation rather than only its AI power users.

The question is whether an agent can recognise that opportunity for itself, without someone having to bring it into the conversation.

A naive approach is to trigger every agent on every message, tagged or not, and let each one decide whether to respond. Setting aside the exorbitant token costs, this would still make the experience worse, not better.

We've seen agents degrade in the following ways:

  • Several agents will independently decide that they should respond to a message, which results in a thread getting clobbered by the same answer from all agents.
  • By the time an agent responds, some other person would have already answered, which would result in noisy messages.
  • If two people ask the same question in a thread twice, the agent answers it twice.

This isn't merely a question of manners and good thread hygiene. Every time the agent behaves in unhelpful or annoying ways, it erodes trust and ends up being underutilised or ignored.

We tried to improve on this by batching the messages in a thread and then using a fast, inexpensive LLM to decide whether an agent should respond. It didn't hold up. No matter how carefully we worded the prompt, current models were not reliable enough at classifying whether a batch was worth responding to. Agents would chime in at strange moments, long after everyone had moved on, just because a batch had finally run.

It's also not a great idea for an agent to respond immediately in a group setting. Humans read and deliberate what is written, and riff off each other to arrive at a shared understanding. An agent instantaneously interjecting on every message in an attempt to be helpful breaks this flow.

Then there are the replies that are technically fine but add nothing. For example, agreeing with something a person already said, restating it, answering a slightly different question than the one asked. These behaviours are again trust-eroding, and hurt the adoption of agents in a workplace.

We eventually found something that worked.

Episodes

The key to getting agent responses right is understanding how conversations actually work.

Conversations happen in bursts. Within a burst, people rarely say everything in one message. They send two or three in a row, and a good colleague waits and answers them together. So a good agent should treat a burst as a single unit, and not react to each message on its own.

But bursts aren't always about one thing. Someone can drop an important question in the middle of unrelated chatter, and it still deserves an answer.

To batch messages more naturally, we start a timer of 60 seconds whenever a user posts a message. If the user posts another message within that span, the timer resets. That way, a burst of messages reaches the agent as one snapshot, the way a person would read it, instead of one message at a time.

The timer also gives other people the first chance to answer. If someone in the conversation knows the answer and is active at the moment, that short lull is often all they need to reply.

Before we send a burst to an agent for a response, we need a fast, reliable way to tell whether an agent should take it up at all. We don't want the agent to try and "helpfully" respond to small talk, jokes, or personal questions.

Each message in the burst gets a quick look first. We ask XOR, our fast, inexpensive System 1 decision model, several yes-or-no questions about the message. For example: Does the message actually ask for something? Has someone already answered it? Is it about something personal like pay or health?

XOR gives us a probability which tells us how sure it is. We compare each probability to a fixed threshold, and only the messages that pass it are sent on to an agent to draft a reply.

Once an agent is picked to respond, it needs a little time to read the conversation, make a few tool calls, and write its draft. If the reply just appeared out of nowhere when the draft was done, it would feel abrupt, since nothing showed that anyone had taken the question up. So while an agent drafts, it shows a typing indicator, just like a person would.

Deciding to answer isn't the end

To avoid the situation where an agent answers after the conversation has moved on, or been answered by another responder, we run another set of checks through our decision model.

XOR puts the draft through a few quick yes-or-no questions. We use these heuristics, failing which the draft stays unsent: Has someone else picked up the question in the meantime? Has it already been answered? Is the draft actually about what was asked? And would posting it really help anyone?

Two agents, one answer

When multiple people are typing on a thread, someone might send their response first. People often don't send their message if it is already covered by that first response. Instead, they react to the message to affirm their agreement by dropping a ๐Ÿ‘.

Agents should do the same. If two agents, Triage and Scribe, draft similar answers and Triage posts first, the question is already judged as answered when Scribe's draft reaches its checks. While the draft is not posted in the conversation, Scribe can leave a reaction on Triage's response to show agreement without adding another message.

Follow-ups don't wait

Once the agent has answered, it stops waiting before responding again, as it has now entered the conversation. It still has to clear three bars: it asks the agent for something more, it isn't sensitive, and the exchange hasn't already had three follow-ups.

Putting it together: A busy room

A good way to know if our heuristics would work well is to project them onto one of the most chaotic situations we can think of. Here's how our agent would behave in a busy thread that's triaging a production incident.

Bring Xyne to your team

Open-source AI apps and agents, built on your own context. See what Xyne can do for your teams.

Talk to our team