# Ambient agents and triggers

> An ambient agent does not wait to be spoken to: an event starts it, such as an incoming email, a new ticket or a crossed threshold. It acts under its own identity and only calls on a person for a decision or an exception.

The background agent receives its task from a person and acts with that person’s permissions. The ambient agent starts on its own, on an event, and acts under its own identity. Both work with no one watching the session, but they follow different access rules.

Triggers come in three kinds: an event in an application, a schedule, a threshold on a metric. A simple rule filters upstream what deserves to wake the agent, so you do not pay for a model call on every incoming message.

A good ambient agent knows when to interrupt. It notifies, asks for approval or information, then picks up where it left off. Durable execution keeps state through the wait, which can last several days.

On permissions: its own identity, access limited to the task, a named owner. An incoming message cannot widen what the agent is allowed to do, even if it asks. Otherwise any sender can steer the agent.

Volume changes the nature of the risk. You need a readable exceptions queue, spending and volume limits, and a stop button. An ambient agent’s mistake repeats on every event until someone notices. OWASP’s agentic Top 10 lists these cascading failures among the main risks.

**When**: Worth it for a steady stream of similar events: triaging requests, tracking orders, monitoring, reconciliations. Not justified for rare or highly varied events, nor until the task has been done reliably by an agent a person launches.

**Trade-offs**: An ambient agent saves time because nobody has to start it. For the same reason, a mistake can repeat hundreds of times before anyone sees it.

## Where to start

- Get the task right with a manually launched agent
- Give the ambient agent its own identity and an owner
- Filter events with a simple rule
- Set volume limits and an exceptions queue

## Common mistakes

- Running an ambient agent with its creator’s permissions
- Letting it react to outside content unfiltered
- Letting it run with no spending cap

## Metrics

- Events handled without intervention
- Time to handle exceptions
- Repeated errors before detection

## Sources

- [LangChain, Introducing ambient agents](https://www.langchain.com/blog/introducing-ambient-agents)
- [Microsoft Learn, What are agent identities?](https://learn.microsoft.com/en-us/entra/agent-id/what-are-agent-identities)
- [OWASP, Top 10 for Agentic Applications 2026](https://genai.owasp.org/2025/12/09/owasp-top-10-for-agentic-applications-the-benchmark-for-agentic-security-in-the-age-of-autonomous-ai/)
