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": "INSERT INTO external_chat_attachment (chat_id, person_id, source_id, ordinal, blob_id, sha256, state, account_id, locator, mime, filename, size,\n width, height, duration_seconds, presentation)\n VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16)\n ON CONFLICT (chat_id, person_id, source_id, ordinal) DO UPDATE SET account_id = excluded.account_id, locator = excluded.locator\n WHERE external_chat_attachment.state = 'pending'\n AND (external_chat_attachment.claimed_until IS NULL OR external_chat_attachment.claimed_until < now())",
"describe": {
"columns": [],
"parameters": {
"Left": [
"Uuid",
"Uuid",
"Text",
"Int2",
"Uuid",
"Bytea",
"Text",
"Uuid",
"Bytea",
"Text",
"Text",
"Int8",
"Int4",
"Int4",
"Int4",
"Text"
]
},
"nullable": []
},
"hash": "458641069e0325bdfe7fc87ec7433d0c2888c8a670e54f48060b4dd9da2a57ba"
}