Use case: CRM and sales
Every rep's email, logged to the right deal.
Reps live in Gmail and Outlook, and your CRM only knows what they remember to log. workwae syncs their mailboxes, sends from their own address and reports what happens next, so the timeline fills itself in.
deal-email.ts
// Send from the rep's own mailbox
const send = await workwae.outbox.create({
accountId: rep.accountId,
to: [{ address: "jordan@example.com" }],
subject: "Proposal and next steps",
html: proposal,
reference: "deal_4821",
tracking: { opens: true, clicks: true },
});
// Your webhook, when Jordan opens it
{
"type": "message.opened",
"data": {
"reference": "deal_4821",
"actor": "human",
"isMachine": false
}
}