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 EXISTS (\n SELECT 1\n FROM email_messages m\n JOIN email_message_recipients r ON r.message_id = m.id\n JOIN email_contacts c ON c.id = r.contact_id\n WHERE m.link_id = $1\n AND m.is_sent = true\n AND c.link_id = $1\n AND LOWER(c.email_address) = $2\n UNION ALL\n SELECT 1\n FROM email_messages m\n JOIN email_contacts c ON c.id = m.from_contact_id\n WHERE m.link_id = $1\n AND m.is_sent = false\n AND c.link_id = $1\n AND LOWER(c.email_address) = $2\n LIMIT 1\n ) AS \"exists!\"\n ",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "exists!",
"type_info": "Bool"
}
],
"parameters": {
"Left": [
"Uuid",
"Text"
]
},
"nullable": [
null
]
},
"hash": "8836199bec1d69563bff190098f2e2a3aa14d1d50a9fc9befcadd70c2341e192"
}