Morpheus

Morpheus is Payability’s automated outbound sales platform. It finds marketplace sellers who are likely to need faster access to their payouts, enriches them with publicly available contact intelligence, scores how acutely they feel payout pain, pushes them into HubSpot, and then keeps a human sales team supplied with a prioritised daily call list built from real engagement signals.

The platform is event-driven and serverless. Nothing runs on a server that waits for requests: everything is either a scheduled job, a queue consumer, or a container invoked on demand.

New here? Read System architecture for the shape of the system, then Business logic for the rules the system actually enforces.

What the platform does

Capability Where it lives

Discover sellers from marketplace data

enrichment-scraper via the SmartScout API

Enrich sellers with contacts, website, LinkedIn

enrichment-scorer — Claude on Bedrock with Tavily + HubSpot MCP tools

Score cash-flow urgency (payout-pain score)

Second AI pass in enrichment-scorer

Push companies, contacts, activities, tasks, deals into HubSpot

morpheus-hubspot — the only writer to the CRM

Rebuild each rep’s daily call list from engagement signals

Re-engagement handlers driven by BigQuery views

Classify inbound email replies

email-agent — Bedrock structured output

Line-type intelligence and Slack task escalation

phone-agent — Twilio Lookup, Slack, SQS

Multi-step LLM workflows on demand

AgentCore runtime — Strands agents in a container

Deployable units

The repository holds four independently deployed units. They never import each other at runtime — the only coupling is through SQS messages, the shared PostgreSQL database, and the shared Secrets Manager secret.

Unit Language Deployed by Purpose

agentcore/

Python 3.12

CDK (make deploy-cdk)

Container image running on Amazon Bedrock AgentCore — the on-demand LLM workflow runtime

cdk/

TypeScript

CDK (make deploy-cdk)

All AgentCore infrastructure — one stack, AgentCoreStack

lambdas/

Python 3.12

SAM (make deploy-lambdas)

Five Lambda functions, four queues, the schedules, and the shared secret

libs/

Python 3.12

SAM (as Lambda layers)

Five shared libraries consumed by the Lambdas and the runtime

The pipeline at a glance

flowchart LR
  SS(["SmartScout API"])
  BQ[("BigQuery\nHubSpot + app mirror")]

  subgraph ingest ["Ingest and enrich"]
    Scraper["λ enrichment-scraper"]
    Q1[["EnrichmentPipelineQueue\nFIFO"]]
    Scorer["λ enrichment-scorer"]
  end

  subgraph crm ["CRM integration"]
    Q2[["CrmSyncQueue\nFIFO"]]
    HubSpotFn["λ morpheus-hubspot"]
    HS(["HubSpot CRM"])
  end

  subgraph channels ["Channel agents"]
    Q3[["EmailAgentQueue"]]
    EmailFn["λ email-agent"]
    PhoneFn["λ phone-agent"]
    Slack(["Slack"])
  end

  PG[("PostgreSQL\nSupabase")]
  Bedrock(["Amazon Bedrock\nClaude / Nova"])

  SS --> Scraper --> Q1 --> Scorer
  Scorer --> PG
  Scorer <--> Bedrock
  Scorer --> Q2 --> HubSpotFn --> HS
  HubSpotFn --> PG
  BQ --> HubSpotFn
  BQ --> Scraper
  BQ --> PhoneFn
  PhoneFn --> Q2
  PhoneFn --> Q3
  PhoneFn --> Slack
  Q3 --> EmailFn --> PG
  EmailFn <--> Bedrock
  HS -.->|webhooks| Q2

Read the full walkthrough in Outbound funnel.

Documentation map

Section Contents

Business logic

Every domain rule the platform enforces: discovery filters, enrichment, scoring, re-engagement segments, priority formulas, ownership, escalation

AgentCore runtime

The Bedrock AgentCore container: workflow registry, agents, tools, memory, invocation contract

Lambda functions

One page per function — triggers, handlers, configuration, failure behaviour

Events

The complete event catalog, payload schemas, routing keys, and how to add one

Shared libraries

morpheus-common, morpheus-llm, morpheus-data-layer, morpheus-bigquery, pyb-hubspot

Data

Domain model, ORM models, repositories, enums, BigQuery warehouse and views

Infrastructure

CDK stack, SAM template, queues, schedules, layers, IAM, secrets, observability

Roadmap and plans

Forward-looking design documents for the agent estate and the BDR motion

Environment facts

Fact Value

AWS account

625663093496

AWS region

us-east-1

CDK stack

AgentCoreStack

SAM stack

morpheus-sam

Shared secret

agentcore-configs (Secrets Manager)

Operating subscription (tenant)

b191a905-5d19-4fa0-941b-d8eb81c0c477

HubSpot portal

9298797

BigQuery project

bigqueryexport-183608

Bedrock models with the us. prefix are invoked through cross-region inference profiles. See model IDs.