---
title: "External Interaction"
description: "These patterns cover how a Flow interacts with people and systems outside it. The Flow waits for a decision, notices inactivity, takes a stream of messages, or changes and stops its work on request. The pages go from simple to complex."
canonical_url: "https://docs.superdurable.io/design-patterns/external-interaction/"
source: "docs/content/design-patterns/external-interaction.mdx"
locale: "en"
---

> Index of every page for AI agents: https://docs.superdurable.io/llms.txt

# External Interaction

These patterns cover how a Flow interacts with people and systems outside it. The Flow waits for a decision, notices inactivity, takes a stream of messages, or changes and stops its work on request. The pages go from simple to complex.

## Choose a pattern

- [Decision with Deadline](https://docs.superdurable.io/design-patterns/external-interaction/decision-with-deadline.md) — Wait for one of several outside decisions, or a deadline, and let the first one decide what happens next.
- [Idle Timer](https://docs.superdurable.io/design-patterns/external-interaction/idle-timer.md) — Reset the inactivity window whenever new activity arrives.
- [Idle Timer with Resolution](https://docs.superdurable.io/design-patterns/external-interaction/idle-timer-with-resolution.md) — Record every incoming message until someone resolves the conversation or it goes quiet.
- [Control Long-Running Work](https://docs.superdurable.io/design-patterns/external-interaction/control-long-running-work.md) — Change a running loop, such as its batch size, and choose how to stop it: stop the whole run, complete gracefully, or cancel chosen Steps.

When a caller waits for the Flow instead, see [Responsive Update](https://docs.superdurable.io/design-patterns/responsive-update.md).
