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 INSERT INTO email_gmail_pending_label_writes\n (message_id, provider_label_id, write_id, label_present, label_present_before, expires_at)\n SELECT m.id, $3, $4, $5, NOT $5, now() + interval '12 hours'\n FROM email_messages m\n WHERE m.id = ANY($1) AND m.link_id = $2\n ORDER BY m.id\n ON CONFLICT (message_id, provider_label_id, write_id) DO NOTHING\n ",
"describe": {
"columns": [],
"parameters": {
"Left": [
"UuidArray",
"Uuid",
"Text",
"Uuid",
"Bool"
]
},
"nullable": []
},
"hash": "3d2c746b08e2d6a6cba0ff05ebf5f947a5593c747c0aa4b586b1ca75e09622d2"
}