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": "\n SELECT event.id AS \"id!\", event.actor_id AS \"actor_id!\",\n event.occurred_at AS \"occurred_at!\", event.action AS \"action!\", event.payload\n FROM unnest($3::text[]) selected(action)\n CROSS JOIN LATERAL (\n SELECT id, actor_id, occurred_at, action, action_payload AS payload\n FROM activity_events\n WHERE entity_type = $1 AND entity_id = $2 AND action = selected.action\n AND action NOT IN ('messaged', 'opened', 'edited', 'sent')\n AND (selected.action <> 'property_changed' OR cardinality($4::text[]) = 0\n OR action_payload->>'property' = ANY($4::text[]))\n ORDER BY occurred_at ASC, id ASC LIMIT $5\n ) event\n ORDER BY event.occurred_at ASC, event.id ASC LIMIT $5\n ",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "id!",
"type_info": "Uuid"
},
{
"ordinal": 1,
"name": "actor_id!",
"type_info": "Text"
},
{
"ordinal": 2,
"name": "occurred_at!",
"type_info": "Timestamptz"
},
{
"ordinal": 3,
"name": "action!",
"type_info": "Text"
},
{
"ordinal": 4,
"name": "payload",
"type_info": "Jsonb"
}
],
"parameters": {
"Left": [
"Text",
"Text",
"TextArray",
"TextArray",
"Int8"
]
},
"nullable": [
false,
false,
false,
false,
true
]
},
"hash": "74187721de1bb2d18f665de8eba9e6ea70beed6f40115a7d4a382fab38007c05"
}