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\n d.id AS \"id!\",\n d.name AS \"title!\",\n d.owner AS \"owner!\",\n COALESCE(\n (\n SELECT json_agg(\n json_build_object(\n 'property', pd.display_name,\n 'data_type', pd.data_type,\n 'values', ep.values\n )\n )\n FROM entity_properties ep\n JOIN property_definitions pd ON pd.id = ep.property_definition_id\n WHERE ep.entity_id = d.id\n AND ep.entity_type = 'TASK'::property_entity_type\n AND ep.values IS NOT NULL\n ),\n '[]'::json\n ) AS \"properties!\"\n FROM document_sub_type dst\n JOIN \"Document\" d ON d.id = dst.document_id\n WHERE dst.sub_type = 'task'\n AND d.\"deletedAt\" IS NULL\n AND d.owner LIKE 'macro|%@macro.com'\n AND length(btrim(d.name)) >= $1\n ORDER BY d.\"createdAt\" DESC\n LIMIT $2\n ",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "id!",
"type_info": "Text"
},
{
"ordinal": 1,
"name": "title!",
"type_info": "Text"
},
{
"ordinal": 2,
"name": "owner!",
"type_info": "Text"
},
{
"ordinal": 3,
"name": "properties!",
"type_info": "Json"
}
],
"parameters": {
"Left": [
"Int4",
"Int8"
]
},
"nullable": [
false,
false,
false,
null
]
},
"hash": "4c93e3e9876ee14e4da0fa7ce555e928ed5a8ac3bfe0e84ab80dfd605720bb74"
}