Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

feat(emails): add case study and logo wall invite for multi-seat owners

Richie McIlroya673f13ae8f4
diff --git a/emails/CATALOG.md b/emails/CATALOG.md
index a2e5358d2..94ad0d852 100644
--- a/emails/CATALOG.md
+++ b/emails/CATALOG.md
@@ -170,6 +170,7 @@ Campaigns are manually scheduled product updates, with no automatic enrollment.
| --- | --- | --- | --- |
| Cap v0.6 launch \| Customers | customer | [Meet Cap v0.6, our biggest update yet](../emails/marketing/customer-update.ts) | `cmtvpmfxc01ls0j0nnlffombv` |
| Cap v0.6 launch \| Noncustomers | free | [Meet Cap v0.6, our biggest update yet](../emails/marketing/free-update.ts) | `cmtvpmjej01kr0j18cxoz2n0y` |
+| Case study and logo wall invite \| Cap Pro multi-seat org owners | customer | [Could we feature your team on the Cap website?](../emails/marketing/customer-case-study.ts) | `cmumrftj50y4j0jy2giifxlnk` |
## Branding and personalization
@@ -600,6 +601,30 @@ The release video is the best way to see what's new:
See Cap v0.6 in action →
+### customer-case-study
+
+Invite named Cap Pro organisation owners with more than one seat to reply if they'd like their team on the website logo wall, in a case study, or both.
+
+**Subject:** Could we feature your team on the Cap website?
+
+**Preview:** A spot on our new logo wall, and a case study if you're up for it.
+
+**Variables:** `contact.capGreeting` (fallback: Hey,)
+
+**Edit:** [emails/marketing/customer-case-study.ts](../emails/marketing/customer-case-study.ts)
+
+{contact.capGreeting}
+
+We're adding a logo wall to the Cap website to show the teams using Cap, and I'd love to include yours.
+
+We're also putting together case studies, and it'd be great to feature your team in one of those too.
+
+If you're enjoying Cap and would like to be featured, just reply and let me know if you're happy to be on the logo wall, do a case study, or both. For a case study, I'll send you a short Q&A to fill in.
+
+It'd really help Cap move into the next stage of our growth, and help us tell other great teams like yours all about Cap.
+
+Thanks so much for supporting us :)
+
## Application emails
These are repository send paths and retained templates, not confirmation of production delivery. They continue through Resend and keep their existing React Email layouts. Loops audience filters do not control them. Shared marketing branding does not automatically restyle these templates.
diff --git a/emails/campaigns.ts b/emails/campaigns.ts
index b41a965da..3208b854d 100644
--- a/emails/campaigns.ts
+++ b/emails/campaigns.ts
@@ -1,3 +1,5 @@
+import { condition } from "./audiences";
+import { customerCaseStudy } from "./marketing/customer-case-study";
import { customerUpdate } from "./marketing/customer-update";
import { freeUpdate } from "./marketing/free-update";
import type { Campaign } from "./types";
@@ -15,4 +17,16 @@ export const campaignTemplates: Campaign[] = [
audience: "free",
promotional: true,
},
+ {
+ ...customerCaseStudy,
+ name: "Case study and logo wall invite | Cap Pro multi-seat org owners",
+ audience: "customer",
+ promotional: false,
+ audienceConditions: [
+ condition("capPlanName", "Cap Pro"),
+ condition("capTeammate", false),
+ condition("capMultiSeatOwner", true),
+ condition("capHasFirstName", true),
+ ],
+ },
];
diff --git a/emails/marketing/customer-case-study.ts b/emails/marketing/customer-case-study.ts
new file mode 100644
index 000000000..61974c39d
--- /dev/null
+++ b/emails/marketing/customer-case-study.ts
@@ -0,0 +1,20 @@
+import type { EmailDefinition } from "../types";
+
+export const customerCaseStudy = {
+ id: "customer-case-study",
+ key: "customer-case-study",
+ purpose:
+ "Invite named Cap Pro organisation owners with more than one seat to reply if they'd like their team on the website logo wall, in a case study, or both.",
+ subject: "Could we feature your team on the Cap website?",
+ previewText:
+ "A spot on our new logo wall, and a case study if you're up for it.",
+ variables: ["capGreeting"],
+ body: [
+ "<Paragraph>{contact.capGreeting}</Paragraph>",
+ "<Paragraph>We're adding a logo wall to the Cap website to show the teams using Cap, and I'd love to include yours.</Paragraph>",
+ "<Paragraph>We're also putting together case studies, and it'd be great to feature your team in one of those too.</Paragraph>",
+ "<Paragraph>If you're enjoying Cap and would like to be featured, just reply and let me know if you're happy to be on the logo wall, do a case study, or both. For a case study, I'll send you a short Q&amp;A to fill in.</Paragraph>",
+ "<Paragraph>It'd really help Cap move into the next stage of our growth, and help us tell other great teams like yours all about Cap.</Paragraph>",
+ "<Paragraph>Thanks so much for supporting us :)</Paragraph>",
+ ].join(""),
+} satisfies EmailDefinition;
diff --git a/emails/resources.json b/emails/resources.json
index 0dbbdfce5..5ad02bf21 100644
--- a/emails/resources.json
+++ b/emails/resources.json
@@ -13,6 +13,8 @@
"customer-update": "cmtvpmfxc01ls0j0nnlffombv",
"segment:free-update": "cmtvpmit001kb0j1v86w1bx2w",
"free-update": "cmtvpmjej01kr0j18cxoz2n0y",
+ "segment:customer-case-study": "cmumrfr011iv10jylfrowi082",
+ "customer-case-study": "cmumrftj50y4j0jy2giifxlnk",
"mailingList": "cmtvqgqjj027l0j10fbgb2uvy",
"Cap lifecycle header v2": "cmtwvpzle14zq0iydhsxuvn7j",
"Cap lifecycle signature v2": "cmtwvvcxf14yz0jzwk5rv3zsy",