Skip to content

AI Agents

Durable multi-step tasks that don’t require AI reasoning:

  • Create accounts across Google, Slack, Xero, Productive, Notion
  • Send onboarding emails in sequence
  • Provision access and set up project structures

AI agents that reason, analyze, and act:

  • Deploy to Cloudflare Workers alongside the existing app
  • Use Anthropic SDK for LLM reasoning
  • Share the D1 database with the web app
  • Trigger: Cron (hourly)
  • Reads: Productive projects, tasks, time entries, historical patterns
  • Analyzes: Capacity, utilisation trends, upcoming deadlines
  • Proposes: Schedule changes to an approval queue
  • Executes: Approved changes via Productive API
  • Trigger: Admin action (new employee added)
  • Reads: Client brief, team capacity
  • Proposes: Project plan + resource allocation
  • Executes: Account provisioning via Cloudflare Workflows
  • Trigger: Client communications (Slack, email)
  • Monitors: Priority changes, urgency signals
  • Adjusts: Timelines and priorities
  • Flags: Conflicts and over-allocations
ComponentPurpose
Mastra (mastra)Agent framework with tool use, memory, RAG
Anthropic SDKLLM provider for reasoning
Cloudflare WorkflowsDurable deterministic step execution
D1Shared database with web app
Cron TriggersPeriodic agent runs

Post-MVP. First: employee onboarding workflow (Cloudflare Workflows), then resourcing agent (Mastra).