Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
{
"db_name": "PostgreSQL",
"query": "SELECT a.id FROM whatsapp_linked_account a\n WHERE (a.state = 'connected' OR EXISTS (\n SELECT 1 FROM whatsapp_pairing p WHERE p.account_id = a.id AND p.consumed_at IS NULL AND p.expires_at > now()))\n AND NOT EXISTS (\n SELECT 1 FROM pg_locks l\n WHERE l.locktype = 'advisory' AND l.objsubid = 1\n AND l.database = (SELECT oid FROM pg_database WHERE datname = current_database())\n AND ((l.classid::bigint << 32) | l.objid::bigint) = hashtextextended('whatsapp-account:' || a.id::text, 0))\n ORDER BY a.updated_at, a.id LIMIT $1",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "id",
"type_info": "Uuid"
}
],
"parameters": {
"Left": [
"Int8"
]
},
"nullable": [
false
]
},
"hash": "add7d9621be97026468f00045b9d9d154a9e52f08d0112664858783da832d12c"
}