Logo Email Report

Email Report

Tổ chức
cognyai
email-report

Tự động tạo báo cáo hiệu quả email hằng tuần hoặc hằng tháng theo ba định dạng — bản cập nhật trên Slack, email gửi CEO, mục trong tài liệu trình bày cho hội đồng quản trị — từ dữ liệu ESP thực tế

Add to TypingMind

Tổng quan

Nhà phát hànhcognyai
Kho mãclaude-code-marketing-skills
Tên kỹ năngemail-report
Sao
111
Bản fork
15
Tệp đi kèm
Chỉ có hướng dẫn
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • Hướng dẫn có đủ mọi thứ cần thiết

    Mọi thứ mô hình cần đều nằm trong hướng dẫn — không có tệp bổ sung cần đồng bộ.

  • Mã nguồn mở

    Được cognyai công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Email Report trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/cognyai/claude-code-marketing-skills/tree/main/skills/email-report
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/cognyai/claude-code-marketing-skills.git /tmp/claude-code-marketing-skills
mkdir -p .claude/skills
cp -r /tmp/claude-code-marketing-skills/skills/email-report .claude/skills/email-report
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Email Report trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Email Report ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Email Report với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Email Report

The 3-hour tax every email marketer pays: pulling last period's numbers, charting the trend, explaining the variance, and writing commentary in the right voice for the audience. This skill does it in one command and outputs three versions — Slack ping, CEO email, board deck section — so you can ship the one your stakeholder needs.

Requires: Cogny MCP + a connected ESP. Sign up

Usage

/email-report — monthly report, all three formats (default) /email-report weekly — last 7 days /email-report monthly ceo — monthly, only the CEO email /email-report weekly slack — weekly, only the Slack update

Step 0: Is Cogny connected?

If no mcp__cogny__* tools exist (no list_integrations, no cogny_status), print this and stop:

Email Report needs your marketing data through Cogny's MCP gateway.

1. Sign up at https://cogny.com and connect your ESP (Klaviyo, Mailchimp, Rule, Get a Newsletter, Brevo, MailerLite, Drip, Salesforce Marketing Cloud, Symplify or Braze); a store, Stripe or GA4 adds revenue context.
2. Add Cogny to .mcp.json in your project:
   {"mcpServers": {"cogny": {"type": "http", "url": "https://app.cogny.com/mcp"}}}
3. Restart Claude Code; it opens a browser for the OAuth login on first use.

Nothing to run without Cogny.

When Cogny is connected but no ESP is, say "connect your ESP in Cogny" and stop; a connected integration that fails its health check gets "reconnect in Cogny".

Prerequisites Check

Detect connected ESP (on Cloud, mcp__cogny__list_integrations; name any unhealthy integration as broken). If none, stop and prompt. Also note which store (Shopify, WooCommerce, Abicart, Litium), billing source (Stripe, for SaaS) and web analytics (GA4, Plausible) are connected — they supply revenue and email-driven sessions.

Health check: health_status misses revoked tokens, so make one cheap read per integration before relying on it (e.g. Mailchimp tool_get_account_info, Get a Newsletter tool_list_senders, Klaviyo get_account, GA4 tool_run_report for one day, Stripe stripe_api_read GetSubscriptions with limit: 1). A 401, Forbidden or scope error means 🔴 "reconnect in Cogny": name it, don't retry, and report from the rest.

Missing tool: if a tool named here isn't exposed by the workspace, call mcp__cogny__refresh_mcp_discovery once, use the fallback named next to the tool for this run, mark that source ⚠ "needs reconnect", and tell the user to reconnect the Cogny MCP. Never loop on refresh. Get a Newsletter fallbacks: tool_get_report_have_not_opened → that report's list contacts minus the openers from tool_get_report_opens; tool_get_report_link_clicks → tool_get_report_opens (per-contact click counts) or tool_get_report_clicks (per-link totals); tool_get_report_opens_aggregated → the totals in tool_get_report. Mailchimp tool_get_campaign_content → tool_get_campaign for the headers, and ask the user for the body.

ESP connected but 0 sends in the window: skip that ESP's campaign section with a one-line note ("Rule: connected, 0 sends in ") and keep its list-size numbers. If no ESP sent anything in the period, see "Zero sends in the period" in step 2.

Works with

ESP (Prefix)Campaigns + metricsFlows / journeysList size + growthESP-attributed revenue
Klaviyo (Klaviyo)list_campaigns, get_campaign_values_reportlist_flows, get_flowlist_profiles✓ (get_campaign_values_report with conversion_metric_id = Placed Order)
Mailchimp (Mailchimp)tool_list_campaigns, tool_get_reporttool_list_automations, tool_get_automationtool_get_audience✗
Rule (Rule)tool_list_campaigns, tool_get_campaign_statisticstool_list_journeystool_list_subscribers✗
Get a Newsletter (Get_a_Newsletter)tool_list_sent, tool_get_report (one report per sent mail)—tool_list_lists (active_subscribers_count per list)✗
Brevo (Brevo)list_email_campaigns (status: "sent"), get_email_campaign (stats are in the campaign's statistics)not exposedlist_contact_lists (subscriber counts per list)✗. get_smtp_report (start_date, end_date) is transactional mail only: report it as its own line
MailerLite (MailerLite)list_campaigns (filter_status: "sent"), get_campaign (stats)not exposedlist_groups (active counts), list_subscribers✗
Drip (Drip)list_campaigns, get_campaign (Email Series: subscriber counts, no per-email open/click rates)list_workflowslist_subscribers (subscribed_after) for new subs✗ (subscriber lifetime_value is LTV, not period revenue)
Salesforce Marketing Cloud (Salesforce_Marketing_Cloud)list_email_sends (start_date, end_date): per-send rates + window totalsget_journey_email_performance, get_triggered_send_summary — lifetime totals, no date filternot exposedconversions count only
Symplify (Symplify)get_campaign_overview (start, end), get_campaign_reportlist_journeys (names only)not exposed✓ conversion amount per delivery
Braze (Braze)braze_list_campaigns → braze_get_campaign_analytics (length ≤ 100, ending_at; daily, email channel only)braze_list_canvases → braze_get_canvas_summarybraze_list_email_unsubscribes (start_date, end_date) for unsubs; list size not exposed✓ Braze-attributed revenue

Revenue from the store and analytics (enhanced when connected):

SourceToolWhat it is
Shopifytool_list_orders (query_filter: "created_at:>=YYYY-MM-DD created_at:<YYYY-MM-DD", page with after)All store orders in the window (context, not email revenue)
WooCommerceget_sales_report (date_min, date_max)Store sales totals
Abicart / Litiumget_sales_summary (start_date, end_date, group_by: "week")Orders + revenue per period, base currency
GA4tool_run_report (dimensions: ["sessionCampaignName"], metrics: ["sessions","keyEvents","purchaseRevenue"], dimension_filter on sessionDefaultChannelGroup = Email)Email-driven sessions and last-click revenue
Plausiblebreakdown (dimension: "visit:utm_campaign", filters: [["is","visit:utm_medium",["email"]]])Email-driven visits and goal conversions
Stripe (SaaS)stripe_api_read: GetInvoices (paid, created in the window), GetSubscriptions (new: created in the window; cancelled: there is no canceled_at filter, so list status: "canceled" and keep rows whose canceled_at falls in the window client-side), GetRefunds. Use limit 20–25 and page with starting_after (a 100-row page is ~370KB)Billed revenue, new subscriptions and churn for SaaS businesses; use it where a store would supply revenue

Report ESP-attributed revenue, GA4 email revenue and store (or Stripe) revenue as separate labeled lines. They use different attribution windows and never add up.

Steps

1. Define the period and read the previous report

ModeCurrent windowComparison
weeklylast 7 daysprior 7 days + 4-week rolling avg
monthlylast 30 daysprior 30 days + 12-week rolling avg

State the exact date ranges up front.

Call read_context_node with path: "insights/email/reports/<weekly|monthly>/latest". If it exists, it holds the previous report's narrative and key numbers: use them in "What happened" ("this matches the trend from last month" / "this reverses the dip we flagged"). If it doesn't exist, this is the first run for that mode; say so.

2. Pull the data

Per-ESP tool adapter. The right tool depends on which ESP is connected:

DataKlaviyoMailchimpRuleGet a Newsletter
Campaign listlist_campaignstool_list_campaignstool_list_campaignstool_list_sent
Campaign metricsget_campaign + list_events (metric-filtered)tool_get_reporttool_get_campaign_statisticstool_get_report
Automation / flow listlist_flowstool_list_automationstool_list_journeysnot available
Flow metricsget_flowtool_get_automationtool_list_journeys (limited)not available
Subscriber list sizelist_profiles (count)tool_get_audiencetool_list_subscribers (count)tool_list_lists → sum of active_subscribers_count (not the tool_list_contacts count, which includes inactive contacts)
Revenue per send✓ via list_events with metric="Placed Order"not availablenot availablenot available

Get a Newsletter: tool_list_sent rows carry subject, send time and report_id, so tool_get_sent isn't needed. Its delivered equals sent_to even when mails bounced, so use sent_to − bounced as the delivered denominator. Exclude test sends (under 10 recipients, or "test" in the subject).

For Brevo, MailerLite, Drip, Salesforce Marketing Cloud, Symplify and Braze, use the tools in Works with above. Pull each ESP's numbers separately; if several are connected, the report gets one metrics column per ESP, never a blended total.

For the current window AND the comparison window, pull:

Campaign broadcasts:

  • Each campaign's subject, send date, recipient count, opens, unique opens, clicks, unique clicks, unsubs, bounces.
  • Revenue attributed — Klaviyo, Braze, Symplify. For Klaviyo, fetch "Placed Order" events scoped to the send window and attribute by campaign (or get_campaign_values_report with revenue_per_recipient). Braze returns revenue in braze_get_campaign_analytics; Symplify returns conversion amount per delivery. For the other ESPs, omit ESP-attributed revenue and use GA4/Plausible email-driven revenue or conversions if connected, labeled as such.

Flows / automations — varies by ESP:

  • Klaviyo: flow name, triggered volume, revenue per flow (via events).
  • Mailchimp: automation name, sends, opens, clicks (no revenue).
  • Rule: journey name + limited metrics.
  • Drip: workflow names from list_workflows; Email Series subscriber counts from get_campaign.
  • Salesforce Marketing Cloud: get_journey_email_performance — lifetime numbers, so show them as "since launch", never as this period's change.
  • Symplify: list_journeys gives names only; journey performance isn't exposed.
  • Braze: Canvas name + braze_get_canvas_summary for the window (revenue included).
  • Brevo, MailerLite: automations aren't exposed; skip and say so.
  • Get a Newsletter: no flow object exists. Skip this section; use a "recurring sends" proxy if the user has a newsletter cadence.

List-level metrics:

  • List size at period start vs end
  • New subscribers in period
  • Unsubscribes in period
  • Net change + growth rate

Zero sends in the period: if no connected ESP sent a broadcast in the current window, don't compute rates (they'd be 0/0). Output a short report instead: "No email sends in (last send: , )", the list-size change, any flow/journey numbers that exist, and the store/Stripe/GA4 context lines. Flag the gap as a finding if the previous report showed a regular cadence.

Unconnected senders (GA4): compare the GA4 email sessionCampaignName values with the connected ESPs' sends in the window. A campaign with email sessions that matches no ESP send means email is going out from a sender Cogny can't see (another ESP, a CRM, a product mailer). List those campaigns with their sessions and say "sent from an unconnected tool; connect it to include it in the report".

3. Compute the report metrics

For each window, compute:

MetricCalcWhy it matters
Sendstotal emails deliveredVolume sanity check
Open rateunique opens / deliveredSubject/preheader effectiveness (MPP-distorted)
CTRunique clicks / deliveredTrue engagement
CTORunique clicks / unique opensContent effectiveness (MPP-resilient)
Unsub rateunsubs / deliveredList health signal
Bounce ratebounces / sentDeliverability signal
Revenue per sendecom revenue / delivered (if available)The only metric execs actually care about
List growth rate(ending - starting) / startingAcquisition health

Show absolute value + % change vs prior period + % change vs rolling baseline.

4. Identify movers

Rank campaigns in the current window by open rate, CTR, and revenue. Identify:

  • Top performer — best campaign by revenue (or by CTOR if no revenue data)
  • Worst performer — bottom by revenue/CTOR
  • Anomaly — campaign whose metrics are >2σ from the user's typical baseline (surprise hit or surprise flop)

For each, write a one-sentence "why" hypothesis based on visible attributes (subject style, send time, segment, content type).

5. Explain variance

Don't just say "CTR dropped 8%." Explain it. Cross-reference:

  • Did send volume change? More sends to less-engaged segments drag rate metrics even if absolute revenue is fine.
  • Did the segment mix change? (All-list sends vs engaged-only)
  • Did cadence change? (More sends per week → fatigue)
  • Did a specific campaign drag the average? (One dud to a huge segment)
  • Did list hygiene change? (Big unsub event or re-engagement deadline)
  • Was there an external event? (holiday, launch, outage)

Phrase findings as claim → evidence:

"Open rate dropped from 28% to 22%. Two of four sends this month went to the dormant 180-day segment (120k recipients at 14% open), which pulled the average down. If you look at engaged-segment sends only, open rate actually rose from 34% to 36%."

6. Generate the three outputs

6.1 Slack update (≤500 chars, 3 bullets)
📧 Email – <period label>
• Sends: <N> ( <±>% vs prior)  |  Open: <X>% ( <±>pp)  |  CTR: <Y>% ( <±>pp)
• 🏆 Top: "<subject>" — <metric>  |  ⚠️ Watch: <one-line variance call>
• Revenue: $<X> ( <±>% vs prior)  |  List: <±>% net growth  |  Next week: <1-line plan>
6.2 CEO email (≤250 words, narrative)
Subject: Email performance — <period label>

Hi <CEO first name>,

Quick update on email this <period>:

Headline: <one-sentence summary — is it good, bad, or mixed?>

What happened:
[2-3 sentences explaining volume, rate-metric movement, revenue. Tie to a
business narrative — launches, campaigns, segment focus.]

What's notable:
[1-2 sentences. Top campaign or surprise win or flagged concern.]

What's next:
[1-2 sentences. Concrete plan for next period. Pick ONE action, not five.]

Happy to dig deeper on any of this.

<signoff>
6.3 Deck section (full)
EMAIL PERFORMANCE — <period label>

Summary
  <two-sentence narrative>

Key metrics
  [table: current / prior / rolling / %Δ]
  Sends, Open rate, CTR, CTOR, Unsub rate, Revenue per send, List size

Trend
  [describe what a chart should show — up-and-to-the-right, step change, etc.]

Campaign roundup
  🏆 Best:  "<subject>"
           <segment>, <recipients>, <metric wins>
  📉 Worst: "<subject>"
           <what happened>

Flow performance (if applicable)
  [table of top 3 flows by revenue, with recipient count and conv rate]

What moved the needle
  [2-3 bullets — claim → evidence]

Plan for next <period>
  [2-3 bullets — concrete, owned, measurable]

7. Save the narrative

Persist the period summary to Cogny's context tree so future /email-report runs have historical continuity:

json
{
  "path": "insights/email/reports/<weekly|monthly>/latest",
  "body": "<period dates + the narrative summary + key numbers per ESP>"
}

Overwrite latest (step 1 reads it next run) and also write the same body to insights/email/reports/<weekly|monthly>/<YYYY-MM-DD> as the dated archive.

8. Create findings for notable issues

For anything serious (unsub rate spike, deliverability drop, revenue collapse, an unconnected sender), record it so it lands in the dashboard — not just the report. On Cloud call create_ticket first (fields mapped per section 2 of the routing guide); on Solo call create_finding:

json
{
  "title": "Unsub rate doubled vs prior month (0.18% → 0.37%)",
  "body": "<which campaigns drove it, which segment, recommended fix>",
  "action_type": "list_hygiene",
  "priority": "high"
}

Output defaults

  • If the user didn't specify a format, output all three and label them clearly.
  • Lead with the Slack version — fastest to read if they're skimming.
  • Include the raw metric table at the end so the user can copy numbers out.

Notes

  • Open rate is noisy since Apple MPP. Always report CTR and CTOR alongside. If open rate moves >5pp but CTOR doesn't, it's probably MPP population change, not real behavior.
  • For first-ever run, there's no prior period to compare to — call this out explicitly and use absolute numbers only.
  • Don't invent revenue numbers. ESP-attributed revenue exists only for Klaviyo ("Placed Order" events with a value field), Braze and Symplify. For Mailchimp, Rule, Get a Newsletter, Brevo, MailerLite, Drip and SFMC, say "revenue not exposed by this ESP's MCP" and use GA4/Plausible email-driven revenue, store or Stripe totals for context, or user-pasted revenue — each labeled with its source.
  • Definitions differ per ESP. Klaviyo, Mailchimp and Brevo opens include Apple MPP machine opens unless the payload separates them; Get a Newsletter reports per sent mail; SFMC journey totals are lifetime. Name the ESP on every number and never average rates across ESPs.

Recording findings

Use create_ticket when the workspace has it (Cloud) and create_finding otherwise (Solo). The fields differ; see section 2 of ../marketing-engineer/references/mcp-routing.md.

Câu hỏi thường gặp

Kỹ năng AI Email Report làm được gì?

Tự động tạo báo cáo hiệu quả email hằng tuần hoặc hằng tháng theo ba định dạng — bản cập nhật trên Slack, email gửi CEO, mục trong tài liệu trình bày cho hội đồng quản trị — từ dữ liệu ESP thực tế

Vì sao nên dùng Email Report trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Email Report là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Email Report trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/cognyai/claude-code-marketing-skills/tree/main/skills/email-report. TypingMind đọc tệp SKILL.md rồi cài đặt kỹ năng để bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Email Report?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Email Report với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Email Report với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Email Report có miễn phí không?

Kỹ năng này được cognyai phát hành trên GitHub. Hãy xem điều khoản giấy phép trong kho mã. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇