Use Cases

Common patterns for building with m8tes. Each recipe names the primitives it combines and links to the page that owns them. Working code lives in the SDK's examples directory, with React embed examples under packages/react/examples.

Internal team automation

Recurring ops work: weekly reports, ticket review, revenue monitoring. Combine an agent with tools (Stripe, Slack, Gmail), a scheduled task, and file output. One scheduled task covers most of it:

Python

Full pipelines: examples/file-report.py (streaming progress, file tracking, download) and examples/support-triage.py (real-time event filtering).

Browser and desktop automation

Reach things with no API: legacy dashboards, GUI apps, sites behind a login. Every sandboxed run gets a full Linux desktop the agent drives from screenshots. Computer use is on automatically; list only the integrations the run needs in tools. See Computer Use.

Embed in your product

Run agents on behalf of your users. Combine multi-tenancy (memory, history, and tool connections isolated per user_id), per-user OAuth for integrations like Gmail and Slack, streaming for a live chat UI, and the drop-in React component. Per-user OAuth flow with connection guards: examples/embed-oauth.py.

Plan and approve

Gate tool use behind approval: interactively in a terminal, automatically with an on_approval callback (allow safe tools, deny the rest), or async via webhook events answered through the API. See Human-in-the-Loop for the modes and the webhook flow; interactive and automated versions in examples/plan-mode.py.

Generate reports and files

Agents write CSV, JSON, and Markdown files you list and download after the run (client.runs.list_files, client.runs.download_file). Combine with scheduling for automated weekly pipelines. See Files; complete version in examples/file-report.py.

Next: Quick Start · Agents

Was this page helpful?