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": "UPDATE external_chat g SET backfill_state = 'waiting_for_phone'\n FROM UNNEST($2::text[], $3::timestamptz[]) AS i(jid, at)\n WHERE g.user_id = $1 AND g.provider = 'whatsapp' AND g.remote_id = i.jid AND g.state = 'active'\n AND (g.backfill_state = 'waiting_for_message'\n OR (g.kind = 'direct' AND g.backfill_state = 'done' AND g.backfill_imported = 0\n AND g.backfill_cursor IS NULL AND i.at < g.adopted_at))\n RETURNING g.id",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "id",
"type_info": "Uuid"
}
],
"parameters": {
"Left": [
"Text",
"TextArray",
"TimestamptzArray"
]
},
"nullable": [
false
]
},
"hash": "4ef49e289ea7b4221dd717f4c739d7989bd2f7c606bed9af6296dbd2b8a3dda5"
}