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 t.root_id FROM comms_message_threads t\n JOIN comms_messages m ON m.id = t.root_id\n WHERE t.root_id = ANY($1) AND t.parent_entity_type = 'channel'\n AND t.parent_entity_id = $2\n AND m.parent_entity_type = 'channel' AND m.parent_entity_id = $2\n AND m.thread_id IS NULL AND m.deleted_at IS NULL AND t.deleted_at IS NULL\n ORDER BY t.root_id FOR UPDATE OF t, m",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "root_id",
"type_info": "Uuid"
}
],
"parameters": {
"Left": [
"UuidArray",
"Text"
]
},
"nullable": [
false
]
},
"hash": "b90c462998e700aee35f0733a9b393a90ff7dfcf249e99cbaec0bd3b895b36c7"
}