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 m.id,\n m.provider_id,\n m.thread_id,\n m.provider_thread_id,\n m.replying_to_id,\n m.global_id,\n m.link_id,\n m.subject,\n m.snippet,\n m.from_contact_id,\n m.provider_history_id,\n m.internal_date_ts,\n m.sent_at,\n m.size_estimate,\n m.is_read,\n m.is_starred,\n m.is_sent,\n m.is_draft,\n m.has_attachments,\n m.headers_jsonb,\n m.created_at,\n m.updated_at\n FROM email_messages m\n WHERE m.thread_id = $1 AND m.link_id = $2\n ORDER BY m.internal_date_ts DESC NULLS LAST\n ",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "id",
"type_info": "Uuid"
},
{
"ordinal": 1,
"name": "provider_id",
"type_info": "Text"
},
{
"ordinal": 2,
"name": "thread_id",
"type_info": "Uuid"
},
{
"ordinal": 3,
"name": "provider_thread_id",
"type_info": "Text"
},
{
"ordinal": 4,
"name": "replying_to_id",
"type_info": "Uuid"
},
{
"ordinal": 5,
"name": "global_id",
"type_info": "Text"
},
{
"ordinal": 6,
"name": "link_id",
"type_info": "Uuid"
},
{
"ordinal": 7,
"name": "subject",
"type_info": "Text"
},
{
"ordinal": 8,
"name": "snippet",
"type_info": "Text"
},
{
"ordinal": 9,
"name": "from_contact_id",
"type_info": "Uuid"
},
{
"ordinal": 10,
"name": "provider_history_id",
"type_info": "Text"
},
{
"ordinal": 11,
"name": "internal_date_ts",
"type_info": "Timestamptz"
},
{
"ordinal": 12,
"name": "sent_at",
"type_info": "Timestamptz"
},
{
"ordinal": 13,
"name": "size_estimate",
"type_info": "Int8"
},
{
"ordinal": 14,
"name": "is_read",
"type_info": "Bool"
},
{
"ordinal": 15,
"name": "is_starred",
"type_info": "Bool"
},
{
"ordinal": 16,
"name": "is_sent",
"type_info": "Bool"
},
{
"ordinal": 17,
"name": "is_draft",
"type_info": "Bool"
},
{
"ordinal": 18,
"name": "has_attachments",
"type_info": "Bool"
},
{
"ordinal": 19,
"name": "headers_jsonb",
"type_info": "Jsonb"
},
{
"ordinal": 20,
"name": "created_at",
"type_info": "Timestamptz"
},
{
"ordinal": 21,
"name": "updated_at",
"type_info": "Timestamptz"
}
],
"parameters": {
"Left": [
"Uuid",
"Uuid"
]
},
"nullable": [
false,
true,
false,
true,
true,
true,
false,
true,
true,
true,
true,
true,
true,
true,
false,
false,
false,
false,
false,
true,
false,
false
]
},
"hash": "dfc54abc6dd32c35bf3d3c65288ead04d9990d5f6613bd7668dd7cba38ebe3a5"
}