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": "SELECT DISTINCT b.remote_id FROM external_chat b JOIN whatsapp_chat_membership m ON m.chat_id = b.id\n WHERE m.account_id = $1 AND m.generation = $2 AND m.consent_ended_at IS NULL AND b.state = 'active'\n AND external_chat_can_view(b.id, $3)\n ORDER BY b.remote_id",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "remote_id",
"type_info": "Text"
}
],
"parameters": {
"Left": [
"Uuid",
"Int8",
"Text"
]
},
"nullable": [
false
]
},
"hash": "4b37c801f784f0db5c4cbc614fab643811b35f0b3f85ceb9ab56bdc0d5802fbd"
}