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 AND (occurred_at, id) < ($5, $6)\n ORDER BY occurred_at DESC, id DESC LIMIT $7\n ) event\n ORDER BY event.occurred_at DESC, event.id DESC LIMIT $7\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",
"Timestamptz",
"Uuid",
"Int8"
]
},
"nullable": [
false,
false,
false,
false,
true
]
},
"hash": "bbe91bbffcd4264d7f12fdaae93996a859f433af3b482abf56d6705b6648e4df"
}