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 UPDATE scheduled_action_event_run r\n SET state = 'finished', finished_at = $3,\n event_context = r.event_context #- '{github,payload}',\n outcome = CASE WHEN r.state = 'started' THEN $4::jsonb\n WHEN NOT a.enabled THEN $5::jsonb ELSE $6::jsonb END\n FROM scheduled_action a\n WHERE r.action_id = $1 AND r.event_id = $2 AND a.id = r.action_id\n AND ((r.state = 'started' AND r.deadline <= $3)\n OR (r.state = 'pending' AND (NOT a.enabled OR a.event_filters IS NULL\n OR a.configuration_revision <> r.configuration_revision)))\n RETURNING r.claim_token\n ",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "claim_token",
"type_info": "Uuid"
}
],
"parameters": {
"Left": [
"Uuid",
"Uuid",
"Timestamptz",
"Jsonb",
"Jsonb",
"Jsonb"
]
},
"nullable": [
true
]
},
"hash": "5fee689d78b6d843632782bfb4b54720c5966e32c57e7a38ac54da51a0012638"
}