Skip to content

docs: add campaign personalization guide#374

Merged
KMKoushik merged 2 commits intomainfrom
docs-campaign-personalization-guide
Mar 7, 2026
Merged

docs: add campaign personalization guide#374
KMKoushik merged 2 commits intomainfrom
docs-campaign-personalization-guide

Conversation

@KMKoushik
Copy link
Member

@KMKoushik KMKoushik commented Mar 7, 2026

Summary

  • add a new docs guide explaining how to register contact book variables and use them in campaigns
  • cover dashboard setup, API examples, built-in variables, and fallback syntax for missing values
  • add the guide to the docs navigation under Guides

Verification

  • reviewed the new guide against existing docs guide structure and tone
  • confirmed only docs files were included in this commit; unrelated local files remain uncommitted

Summary by cubic

Adds a new campaign personalization guide and updates docs navigation. Also simplifies the Double Opt‑In best practices section (no accordions).

  • New Features

    • New guide: how to register contact book variables, use built‑in/custom variables, add fallbacks, and apply them in campaigns (dashboard + API examples).
    • Navigation updated: added “Campaign Personalization” under Guides.
  • Refactors

    • Double Opt‑In guide: replaced accordion best practices with a simple table and fixed {{ doubleOptInUrl }} formatting.

Written for commit 3ea37d7. Summary will update on new commits.

Summary by CodeRabbit

  • Documentation
    • Added a Campaign Personalization guide covering contact variables (built-in and custom), setup, variable insertion, fallback syntax, API examples, and best practices.
    • Updated Double Opt-In guidance: adjusted placeholder formatting and replaced accordion-style best practices with a static summary table.
  • Navigation
    • Guides list updated to include the new Campaign Personalization guide.

@vercel
Copy link

vercel bot commented Mar 7, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
unsend-marketing Ready Ready Preview, Comment Mar 7, 2026 9:17pm

Copy link

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Mar 7, 2026

Walkthrough

Updated documentation navigation and content: apps/docs/docs.json was modified to add "guides/campaign-personalization" to the Guides group. A new file apps/docs/guides/campaign-personalization.mdx was added, documenting contact-variable workflow, built-in and custom variables, dashboard setup, API examples, fallback syntax, and best practices. apps/docs/guides/double-opt-in.mdx was edited to adjust whitespace in the confirmation URL placeholder and replace a multi-accordion best-practices section with a static Markdown table.

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the main change: adding a new campaign personalization guide to the documentation.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Mar 7, 2026

Deploying usesend with  Cloudflare Pages  Cloudflare Pages

Latest commit: 3ea37d7
Status: ✅  Deploy successful!
Preview URL: https://26423578.usesend.pages.dev
Branch Preview URL: https://docs-campaign-personalizatio.usesend.pages.dev

View logs

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
apps/docs/guides/double-opt-in.mdx (1)

128-137: ⚠️ Potential issue | 🟡 Minor

Inconsistent variable format between table and warning.

Line 128 documents the variable as {{doubleOptInUrl}} (no spaces), while line 134 uses {{ doubleOptInUrl }} (with spaces). While both formats work (the regex uses \s* for whitespace tolerance per apps/web/src/lib/constants/double-opt-in.ts:67-68), the documentation should be consistent to avoid reader confusion.

Proposed fix: use consistent spacing

Pick one format and apply it to both locations. If choosing no spaces:

-  The `{{ doubleOptInUrl }}` variable is **required** in the email template. The
+  The `{{doubleOptInUrl}}` variable is **required** in the email template. The
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@apps/docs/guides/double-opt-in.mdx` around lines 128 - 137, The documentation
shows inconsistent spacing for the doubleOptInUrl template variable (table uses
`{{doubleOptInUrl}}` while the Warning uses `{{ doubleOptInUrl }}`); pick one
canonical format (preferably no spaces: `{{doubleOptInUrl}}`) and update the
Warning block to match the table. Make sure to adjust both occurrences in
apps/docs/guides/double-opt-in.mdx and keep aware that the parsing regex in
apps/web/src/lib/constants/double-opt-in.ts (around the regex at lines
referenced) already tolerates whitespace, so no code changes are needed.
🧹 Nitpick comments (1)
apps/docs/guides/campaign-personalization.mdx (1)

165-165: Minor style: "empty spaces" is redundant.

Per LanguageTool, "empty spaces" is redundant since spaces are inherently empty. Consider simplifying to "blank spaces" or "gaps".

Proposed fix
-| Use fallbacks for optional data              | Prevents awkward empty spaces when a contact is missing a value      |
+| Use fallbacks for optional data              | Prevents awkward gaps when a contact is missing a value              |
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@apps/docs/guides/campaign-personalization.mdx` at line 165, Replace the
redundant phrase "empty spaces" in the table row text "Prevent awkward empty
spaces when a contact is missing a value" with a simpler term such as "gaps" or
"blank spaces" (e.g., change it to "Prevent awkward gaps when a contact is
missing a value") so the wording is concise and non-redundant; update the string
in the docs where that exact table row appears.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Outside diff comments:
In `@apps/docs/guides/double-opt-in.mdx`:
- Around line 128-137: The documentation shows inconsistent spacing for the
doubleOptInUrl template variable (table uses `{{doubleOptInUrl}}` while the
Warning uses `{{ doubleOptInUrl }}`); pick one canonical format (preferably no
spaces: `{{doubleOptInUrl}}`) and update the Warning block to match the table.
Make sure to adjust both occurrences in apps/docs/guides/double-opt-in.mdx and
keep aware that the parsing regex in apps/web/src/lib/constants/double-opt-in.ts
(around the regex at lines referenced) already tolerates whitespace, so no code
changes are needed.

---

Nitpick comments:
In `@apps/docs/guides/campaign-personalization.mdx`:
- Line 165: Replace the redundant phrase "empty spaces" in the table row text
"Prevent awkward empty spaces when a contact is missing a value" with a simpler
term such as "gaps" or "blank spaces" (e.g., change it to "Prevent awkward gaps
when a contact is missing a value") so the wording is concise and non-redundant;
update the string in the docs where that exact table row appears.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 3f81daf0-998d-4074-b86a-8a5bc6e4ad2e

📥 Commits

Reviewing files that changed from the base of the PR and between fe88aaf and 3ea37d7.

📒 Files selected for processing (2)
  • apps/docs/guides/campaign-personalization.mdx
  • apps/docs/guides/double-opt-in.mdx

@KMKoushik KMKoushik merged commit 79f9049 into main Mar 7, 2026
6 checks passed
@KMKoushik KMKoushik deleted the docs-campaign-personalization-guide branch March 7, 2026 21:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant