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 id,\n provider_id,\n global_id,\n thread_id,\n provider_thread_id,\n replying_to_id,\n link_id,\n provider_history_id,\n internal_date_ts,\n snippet,\n size_estimate,\n subject,\n from_name,\n from_contact_id,\n sent_at,\n has_attachments,\n is_read,\n is_starred,\n is_sent,\n is_draft,\n headers_jsonb,\n created_at,\n updated_at,\n -- No body attributes\n NULL as \"body_text?\",\n NULL as \"body_html_sanitized?\",\n NULL as \"body_macro?\"\n FROM email_messages\n WHERE thread_id = $1 and link_id = $2\n ORDER BY 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": "global_id",
"type_info": "Text"
},
{
"ordinal": 3,
"name": "thread_id",
"type_info": "Uuid"
},
{
"ordinal": 4,
"name": "provider_thread_id",
"type_info": "Text"
},
{
"ordinal": 5,
"name": "replying_to_id",
"type_info": "Uuid"
},
{
"ordinal": 6,
"name": "link_id",
"type_info": "Uuid"
},
{
"ordinal": 7,
"name": "provider_history_id",
"type_info": "Text"
},
{
"ordinal": 8,
"name": "internal_date_ts",
"type_info": "Timestamptz"
},
{
"ordinal": 9,
"name": "snippet",
"type_info": "Text"
},
{
"ordinal": 10,
"name": "size_estimate",
"type_info": "Int8"
},
{
"ordinal": 11,
"name": "subject",
"type_info": "Text"
},
{
"ordinal": 12,
"name": "from_name",
"type_info": "Varchar"
},
{
"ordinal": 13,
"name": "from_contact_id",
"type_info": "Uuid"
},
{
"ordinal": 14,
"name": "sent_at",
"type_info": "Timestamptz"
},
{
"ordinal": 15,
"name": "has_attachments",
"type_info": "Bool"
},
{
"ordinal": 16,
"name": "is_read",
"type_info": "Bool"
},
{
"ordinal": 17,
"name": "is_starred",
"type_info": "Bool"
},
{
"ordinal": 18,
"name": "is_sent",
"type_info": "Bool"
},
{
"ordinal": 19,
"name": "is_draft",
"type_info": "Bool"
},
{
"ordinal": 20,
"name": "headers_jsonb",
"type_info": "Jsonb"
},
{
"ordinal": 21,
"name": "created_at",
"type_info": "Timestamptz"
},
{
"ordinal": 22,
"name": "updated_at",
"type_info": "Timestamptz"
},
{
"ordinal": 23,
"name": "body_text?",
"type_info": "Text"
},
{
"ordinal": 24,
"name": "body_html_sanitized?",
"type_info": "Text"
},
{
"ordinal": 25,
"name": "body_macro?",
"type_info": "Text"
}
],
"parameters": {
"Left": [
"Uuid",
"Uuid"
]
},
"nullable": [
false,
true,
true,
false,
true,
true,
false,
true,
true,
true,
true,
true,
true,
true,
true,
false,
false,
false,
false,
false,
true,
false,
false,
null,
null,
null
]
},
"hash": "966aa67009ff8376169045428a87b81c8ff478ddd1d7116a626d9a7d4bdc0297"
}