AI Agents for Business Automation Beyond Coding

Most agent orchestrators are built for software development. amux includes a full business ops stack — CRM, Gmail API email, Playwright browser, notes, and scheduler — all accessible to AI agents through a single REST API. Run your business, not just your codebase.

Quick answer: amux agents can automate CRM contact management, send and reply to email via the Gmail API, drive real browsers with saved auth (Playwright), manage a notes/documents store, and run on any schedule. You get a full business operations stack through the same REST API your coding agents already use — no separate automation platform required.

The Business Ops Stack

amux is built on a single Python server with a unified SQLite database. Every capability below is a REST endpoint at $AMUX_URL — the same URL your AI coding agents use for session management, the kanban board, and the Messages tab. No second platform, no separate automation service.

Business Function amux API What agents can do
CRM / Contacts/api/crm/contactsAdd, update, search contacts; log interactions; check follow-ups
Email/api/email/*Send new emails, reply in-thread, search inbox, read messages (Gmail API)
Browser/api/browser/*Navigate with saved auth, click, type, screenshot, run JS, AI-driven tasks
Notes / Docs/api/notes/*Create, read, update, delete documents (plain text or rich HTML)
Scheduler/api/schedulesRun prompts on cron or natural-language schedules (daily at 9am, every weekday)

CRM: Contact Management

The amux CRM stores contacts with auto-assigned PPL-N IDs and full interaction history. AI agents access it through the REST API or the amux crm CLI.

What agents do with CRM

# Agent adds a contact via API
curl $AMUX_URL/api/crm/contacts -X POST \
  -d '{"name":"Jane Smith","company":"Acme","email":"[email protected]","role":"CTO","notes":"Met at AI Summit, interested in enterprise plan"}'

# Log a follow-up interaction
curl $AMUX_URL/api/crm/contacts/PPL-12/interactions -X POST \
  -d '{"notes":"Sent intro email, awaiting reply","type":"email"}'

# Check who needs follow-up
curl $AMUX_URL/api/crm/contacts/follow-ups

Email: Gmail API Integration

amux connects directly to Gmail via the Gmail API — not Mail.app or SMTP. This means robust threading, no AppleScript fragility, and your real Gmail signature is auto-appended. AI agents can send new emails, reply in-thread, search by query, and read individual messages.

Connected accounts

Connect a Gmail account once with GET /api/gmail/[email protected]. Tokens are stored in ~/.amux/gmail-tokens/. Multiple accounts are supported — pass "from": "[email protected]" to specify which account sends.

What agents do with email

# Agent searches for leads and replies to each
MESSAGES=$(curl -s $AMUX_URL/api/email/search?q=pricing+question&days=7)

# For each message_id, reply with a personalized response
curl $AMUX_URL/api/email/reply -X POST \
  -d '{"message_id":"","body":"Thanks for reaching out! Here is our pricing...","from":"[email protected]"}'
Why not SMTP or osascript?

Raw SMTP from AI agents can land in spam. osascript (Mail.app) silently sends blank replies — a real incident. The amux Gmail API integration handles threading, authentication, and signature appending reliably. See security hardening guide for email rate limiting.

Browser: Playwright Automation

The amux browser API wraps a persistent Playwright instance with saved auth profiles. AI agents can start a browser session with your cookies already loaded — no re-login — and drive any site programmatically.

Saved auth profiles

Auth profiles live in ~/.amux/playwright-auth/. Record a profile once by logging in through a headed browser. Agents then launch headless with your saved cookies, skipping login entirely. This works for LinkedIn, Stripe, GitHub, internal dashboards, and any site where you're already authenticated.

What agents do with browsers

# Agent starts browser with default auth profile and navigates
curl $AMUX_URL/api/browser/start -X POST \
  -d '{"profile":"default","url":"https://stripe.com/dashboard"}'

# Take a screenshot — returns {"path": "/path/to/screenshot.jpg"}
curl $AMUX_URL/api/browser/screenshot

# Or hand the task to the AI browser agent (drives autonomously)
curl $AMUX_URL/api/browser/agent -X POST \
  -d '{"task":"Find all new signups from the last 7 days and return their email addresses","profile":"default"}'

Notes: Documents & Write-ups

amux includes a notes store at /api/notes/<slug> for plain text or rich HTML documents. AI agents use this to store research, drafts, reports, and structured outputs that persist across sessions.

What agents do with notes

# Agent saves a research document
curl $AMUX_URL/api/notes/competitor-research -X POST \
  -d '{"content":"# Competitor Analysis\n\n## Acme Corp\n- Pricing: $99/seat..."}'

# Read a note in the next session
curl $AMUX_URL/api/notes/competitor-research

Scheduler: Recurring Tasks

The amux scheduler runs prompts on a cron or natural-language schedule. Each schedule targets an amux session and sends it a prompt text — the session's AI agent executes the task. No external cron, no separate automation service.

# Daily inbox review at 9am (weekdays)
curl $AMUX_URL/api/schedules -X POST \
  -d '{"title":"Daily inbox review","session":"biz-ops","command":"Check the inbox for the last 24 hours. Reply to any leads or customer questions. Log interactions in CRM. Write a summary note.","schedule_expr":"every weekday at 9am"}'

# Weekly CRM follow-up check (Mondays)
curl $AMUX_URL/api/schedules -X POST \
  -d '{"title":"Weekly follow-up check","session":"biz-ops","command":"List all CRM contacts with no interaction in the last 14 days. Draft personalized follow-up emails for each and send them.","schedule_expr":"weekly on Monday at 8:30am"}'

# Daily board digest sent via email
curl $AMUX_URL/api/schedules -X POST \
  -d '{"title":"Daily board digest","session":"biz-ops","command":"Summarize what is done, doing, and todo on the board. Email the summary to [email protected].","schedule_expr":"daily at 6pm"}'

Day-in-the-Life: Agent-Run Business Day

Here is what a typical automated business day looks like when amux is running your ops layer:

Automated Day (no human intervention required)

8:30 AM — Scheduler fires. biz-ops agent reviews inbox, replies to 3 leads, logs interactions in CRM.
9:00 AM — Scheduler fires. coding-daily agent reads the board, launches 5 coding agents with the highest-priority tasks.
9:15 AM — You check the iOS app over coffee. See 3 email replies sent, 5 coding sessions active. No intervention needed.
12:00 PM — Browser agent visits 3 competitor sites after a board task is created. Saves research note.
2:00 PM — Coding agents start completing tasks. Board moves items from doing → done. Self-healing watchdog restarts one crashed session.
5:00 PM — You briefly review completed branches, merge 4, leave 1 for tomorrow. 45 minutes of your time.
6:00 PM — Scheduler fires. biz-ops agent emails you a board digest. Overnight coding batch queued.
Overnight — 8 agents work on tests, docs, and refactoring. Watchdog handles any crashes. You sleep.

amux vs n8n vs Zapier vs Separate Tools

Capability amux n8n / Zapier Separate tools
AI coding agentsNative — core use caseLimited via API callsClaude Code / Cursor (no orchestration)
Email automationBuilt-in Gmail API, threadingGmail node (Zapier/n8n)SMTP / manual
CRMBuilt-in, SQLite, no SaaSHubSpot / Salesforce nodeHubSpot, Notion, etc.
Browser automationBuilt-in Playwright, saved authPuppeteer node (complex)Playwright / Selenium scripts
SchedulingBuilt-in, natural languageCron trigger nodecron / Launchd
AI reasoningNative (Claude Code, Codex, Gemini)AI Agent node (limited)Direct API (no orchestration)
Mobile monitoringiOS app + PWAn8n cloud dashboardNone
CostFree & open source + API tokens$20–$50/month + API costsMultiple SaaS subscriptions
Data stays localYes — SQLite on your machineNo — vendor cloudVendor dependent
Setup< 5 minutes2–4 hoursPer-tool setup (days)

The key difference: amux combines AI agent orchestration with the business ops API layer in one process. n8n and Zapier are good at connecting SaaS services but require separate setup for AI reasoning. Separate tools require context-switching and no single dashboard to monitor everything.

That said, amux and n8n work well together. Use amux for the AI agent loop (reasoning, code generation, complex judgment) and n8n for the integration plumbing (webhooks, SaaS connectors). See the amux vs n8n comparison for details.

FAQ

Q Can AI agents really handle my business email?
For high-volume, repeatable email tasks — replying to inbound leads, sending follow-ups, distributing updates — yes. The amux Gmail API integration sends correctly threaded replies with your real account signature. For nuanced negotiations or sensitive relationships, draft-and-review mode works well: the agent drafts, you approve before send.
Q Is the browser automation reliable enough for real tasks?
For structured, repeatable tasks on sites you control or understand well — yes. The saved auth profile means no login failures. The AI browser agent mode handles layout changes better than selector-based automation. For dynamically changing UIs or sites with aggressive bot detection, tasks may need occasional re-prompting. Monitor via the amux iOS app to catch failures quickly.
Q Do I need to run separate coding and business ops agents?
It's best practice to separate them: a biz-ops session for business automation and dedicated coding sessions for software development. This avoids context confusion and makes the board easier to read. Both share the same amux server, kanban board, and monitoring dashboard.
Q How do I get started with business automation on amux?
Install amux (brew install mixpeek/amux/amux), connect a Gmail account (GET /api/gmail/[email protected]), register a biz-ops session (amux register biz-ops --yolo), and add your first scheduled task. The getting started guide covers the full setup in under 5 minutes.
Q Is my business data safe with amux?
amux stores all data locally in SQLite at ~/.amux/amux.db. CRM contacts, notes, schedules, email history — all on your machine. Gmail tokens are stored in ~/.amux/gmail-tokens/. Nothing is sent to external servers except the AI API calls (to Anthropic, OpenAI, or Google). See the security guide for hardening recommendations.
Run your whole business with AI agents.

amux is the open-source control plane for both coding agents and business automation — one dashboard, one API, one install.

Get Started on GitHub — Free & Open Source
Download on the App Store