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 SELECT\n bt.id AS token_id,\n bt.bot_id,\n bt.token_prefix,\n bt.label,\n bt.last_used_at,\n bt.expires_at,\n bt.revoked_at,\n bt.created_at,\n b.kind\n FROM bot_tokens bt\n JOIN bots b ON b.id = bt.bot_id\n JOIN comms_channel_participants cp\n ON cp.channel_id = $1\n AND cp.user_id = ('bot|' || b.id::text)\n AND cp.left_at IS NULL\n WHERE bt.token_hash = $2\n AND b.deleted_at IS NULL\n -- Its owner or any member of its team can mint a persona's\n -- token, not just the person a direct conversation is with, so\n -- no token posts into one.\n AND NOT EXISTS (\n SELECT 1\n FROM comms_channel_agents ca\n WHERE ca.channel_id = $1\n AND ca.kind = 'direct'\n )\n ",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "token_id",
"type_info": "Uuid"
},
{
"ordinal": 1,
"name": "bot_id",
"type_info": "Uuid"
},
{
"ordinal": 2,
"name": "token_prefix",
"type_info": "Text"
},
{
"ordinal": 3,
"name": "label",
"type_info": "Text"
},
{
"ordinal": 4,
"name": "last_used_at",
"type_info": "Timestamptz"
},
{
"ordinal": 5,
"name": "expires_at",
"type_info": "Timestamptz"
},
{
"ordinal": 6,
"name": "revoked_at",
"type_info": "Timestamptz"
},
{
"ordinal": 7,
"name": "created_at",
"type_info": "Timestamptz"
},
{
"ordinal": 8,
"name": "kind",
"type_info": "Text"
}
],
"parameters": {
"Left": [
"Uuid",
"Bytea"
]
},
"nullable": [
false,
false,
false,
true,
true,
true,
true,
false,
false
]
},
"hash": "a4826f9cff8bd3ec6c3fb85601e0d541780aa62437862a0c4eda5a0e273b6212"
}