designing-email-templates
यह क्या करती है
यह स्किल एजेंट को PostHog की वर्कफ़्लो लाइब्रेरी के भीतर ईमेल टेम्पलेट डिज़ाइन करने देती है। यह मार्केटर और प्रोडक्ट टीमों के लिए है जो ऐसे अच्छे ईमेल चाहते हैं जिनमें हर पाठक का निजी विवरण दिखे।
कब इस्तेमाल करें
- ✓जब आपको किसी अभियान या वर्कफ़्लो के लिए नया ईमेल टेम्पलेट चाहिए।
- ✓जब आप PostHog में मौजूदा ईमेल टेम्पलेट बदलना या ठीक करना चाहें।
- ✓जब आप चाहें कि ईमेल में पहला नाम जैसा निजी विवरण दिखे।
Skill का लिंक
https://github.com/PostHog/posthog/blob/master/products/workflows/skills/designing-email-templates/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“कृपया नए यूज़र के लिए स्वागत ईमेल टेम्पलेट डिज़ाइन कीजिए, जिसके ऊपर मेरा लोगो हो और अभिवादन में उनका पहला नाम हो।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट टेम्पलेट का डिज़ाइन एक संरचित फ़ॉर्मेट में लिखता है, जिसे PostHog संपादन योग्य ईमेल में बदल देता है। निजी विवरण के लिए वह Liquid प्लेसहोल्डर इस्तेमाल करता है और PostHog में टेम्पलेट खोलने के लिए एक लिंक साझा करता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Designing email templates
Use this skill when creating or editing email templates for PostHog workflows — broadcast campaigns and function_email workflow actions send the rendered template.
How authoring works
You author the design JSON (content.email.design) and save it with workflows-create-email-template. The server renders the sent email from your design with the same renderer PostHog's visual editor uses, so the template opens as editable blocks for humans and sends exactly what the design describes. Schema, the native blocks and spacing rules every email follows, and a working example in references/unlayer-design-json.md.
When talking to the user, call it the template's design — the design document format is an internal implementation detail. Always share the template's _posthogUrl edit link in your reply after creating or updating, so the user can open it in PostHog directly.
Read references/design-guidelines.md before composing — it covers committing to a design direction, typography, color, and the patterns that make an email look designed rather than generated. For one fragment the block editor can't express, use an html-type content block inside the design.
Personalization with Liquid
Email content uses Liquid templating. Liquid tags pass through the renderer as plain text, so use them anywhere — block text, subject, links:
Hi {{ person.properties.first_name | default: 'there' }},
Marketing emails must include an unsubscribe link — render it with the built-in variables:
<a href="{{ unsubscribe_url }}">Unsubscribe</a>
({{ unsubscribe_url_one_click }} is also available for one-click list-unsubscribe flows.)
A template written for Customer.io can keep its {% unsubscribe_url %} tag, which renders the same link as {{ unsubscribe_url }}.
Output is HTML-escaped by default, so a value renders as text even when it contains markup:
- Don't add
| escape. It escapes a second time, and&reaches the inbox as&amp;. - For HTML your own backend builds, such as a summary list, add
| raw:{{ variables.summary_html | raw }}. Never userawon text a person typed. - Format money with
currency:{{ variables.amount | currency: "USD" }}renders$1,234.50. A value that isn't a number renders unchanged.
Click tracking and opt-out
Every link is automatically rewritten through a click-tracking redirect. This breaks mobile universal links / app deeplinks, which only resolve when the href stays on their own domain. To keep a link untracked, mark its anchor (use an html block) with clicktracking="off" or data-ph-no-track:
<a href="https://app.example.com/deeplink" data-ph-no-track>Open in app</a>
The marker must be on the <a> tag itself, not a child element. Opted-out links get no click metrics.
Images
Call media-images-list with purpose="email" first — reuse an existing image (a logo, a header banner) instead of uploading a duplicate.
To add a new image, upload it with the presigned flow rather than embedding bytes in the design:
media-image-upload-startwith the file's name andpurpose="email"— returnsid,upload_url, andform_fields.- From a shell, POST the local file to
upload_url:curl -X POST <upload_url> -F key=value... -F file=@/path/to/image.png(theform_fieldsfrom the response,filelast). Never base64-encode image bytes into a tool call — a flipped token corrupts the image. media-image-upload-completewith theid— returns the permanenturl.
Put that url in the image block's values.src.url (see references/unlayer-design-json.md). The block also takes values.src.width/height; the media tools don't return dimensions, so if you have shell access to the local file, measure it yourself rather than guessing.
Images must be under 4MB and decode as PNG, JPEG, GIF, WebP, AVIF or BMP.
Creating a template
Call workflows-create-email-template with:
{
"name": "Welcome email",
"description": "Sent to new signups on day 0",
"type": "email",
"content": {
"templating": "liquid",
"email": {
"subject": "Welcome to {{ person.properties.company | default: 'our product' }}",
"design": {
"counters": { "u_row": 1 },
"schemaVersion": 16,
"body": { "rows": ["…"], "values": { "preheaderText": "Three short
अक्सर पूछे जाने वाले सवाल
क्या एजेंट के बनाने के बाद मैं टेम्पलेट बदल सकता हूँ?
हाँ। टेम्पलेट PostHog में संपादन योग्य ब्लॉक के रूप में खुलता है, जिसे लोग वहीं बदल सकते हैं।
Liquid टैग क्या होते हैं?
ये प्लेसहोल्डर होते हैं, जैसे पहला नाम, जो ईमेल भेजते समय हर पाठक के विवरण से भर जाते हैं।
क्या एजेंट डिज़ाइन की शैली चुनता है?
हाँ। उसका मार्गदर्शन उसे लेआउट लिखने से पहले डिज़ाइन की साफ़ दिशा चुनने को कहता है, ताकि ईमेल सोच-समझकर बना लगे।
जानकारी
लेखक का मूल विवरण
Author, save, and edit email templates in the PostHog workflows library — compose email design JSON with Liquid personalization and create and round-trip-edit templates over MCP. Use when asked to design, build, update, or fix an email template for workflows, broadcasts, or campaigns.
repo: PostHog/posthog
लोकप्रियता
- GitHub स्टार
- 41k
- रैंकिंग में स्थान
- #6981
- लाइसेंस
- —
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
depot-ci
41kयह आपके एजेंट को Depot CI वर्कफ़्लो सेट अप करने, चलाने और माइग्रेट करने में मदद करती है, साथ ही रन के लॉग पढ़ने में।
depot-container-builds
41kयह आपके एजेंट को Depot के रिमोट बिल्डर पर Docker इमेज बनाने में मदद करती है, जिसमें मल्टी-प्लेटफ़ॉर्म इमेज और बिल्ड सुधार शामिल हैं।
depot-github-runners
41kयह आपके एजेंट को GitHub Actions जॉब Depot के मैनेज्ड रनर पर ले जाने, रनर का साइज़ और लेबल चुनने, और रनर सेटअप की समस्याएँ ठीक करने में मदद करती है।
editing-agents-md
41kयह आपके एजेंट को तय करने में मदद करती है कि कोई नियम AGENTS.md या CLAUDE.md में जाए या नहीं, और उसे ऐसे लिखे कि फ़ाइल भारी न हो।
मिलती-जुलती skills
product-lens
280kआपके एजेंट को बनाने से पहले product ideas को परखने में मदद करता है। market fit और user experience का विश्लेषण करके तय करता है कि product आगे बढ़े या नहीं।
investor-outreach
280kआपके एजेंट को investors को ईमेल लिखने में मदद करता है। निवेश माँगने या अपडेट भेजने के लिए यह पर्सनलाइज़्ड मैसेज बनाता है।
release-announcement
103kयह आपके एजेंट को launch announcements लिखने में मदद करता है। इसमें उपयोगकर्ता पर असर और नई features कैसे इस्तेमाल करें, इस पर ध्यान दिया जाता है।