Nhúng Hành động nhanh
Khi điều hành một doanh nghiệp, bạn sẽ có nhu cầu gửi email tự động cho những người dùng của mình vì các mục đích khác nhau, chẳng hạn như xác nhận gói đăng ký của họ, yêu cầu xếp hạng, đánh giá, xác nhận vé tham gia sự kiện, đặt chỗ sự kiện, v.v.. Để đảm bảo rằng các người dùng của bạn có thể theo dõi các email từ danh sách, bạn có thể nhúng tính năng Hành động nhanh vào email của mình.
Schema.org là một cộng đồng hợp tác đang làm việc để tạo và quảng cáo các lược đồ để đánh dấu dữ liệu có cấu trúc trên internet. Định dạng được schema.org xác định, đồng thời được Zoho Mail hiểu và đánh dấu này sẽ được hiển thị dưới dạng Hành động nhanh trong danh sách email. Để thêm Hành động nhanh trong email mà bạn sẽ gửi, bạn có thể thêm đánh dấu Dữ liệu vi mô hoặc JSON-LD (như được schema.org xác định) trong nội dung HTML của email.
Những việc cần làm đối với Zoho Mail để xác định các Hành động nhanh
Để nhúng các hành động nhanh này vào email bạn gửi, có hai điều cần được kiểm tra.
- Email bạn sẽ gửi phải chứa một tập lệnh cụ thể được nhúng trong Dữ liệu vi mô hoặc định dạng JSON-LD.
- Miền mà bạn gửi những email này phải được đăng ký trong danh sách miền đã xác định của chúng tôi.
Định dạng để nhúng Hành động nhanh
Để nhúng Hành động nhanh vào email mình gửi đi, bạn sẽ phải nhúng tập lệnh vào email bạn sẽ gửi. Zoho Mail hỗ trợ cả định dạng JSON-LD và Dữ liệu vi mô trong đánh dấu email.
Dữ liệu vi mô
Dữ liệu vi mô là một ngôn ngữ đánh dấu được thiết kế để mô tả và làm nổi bật các phần cụ thể của email. Mỗi đánh dấu này có thể bao gồm các thuộc tính liên quan. Ở định dạng Dữ liệu vi mô, ba thuộc tính cơ bản được sử dụng là itemtype, itemprop và itemscope.
Itemscope - Việc sử dụng thuộc tính này trong thẻ div biểu thị rằng tất cả thông tin kèm theo trong thẻ div này đều thuộc về một thực thể.
Itemtype - Khi bạn đề cập đến một itemtype, điều đó biểu thị rằng tất cả các phần tử trong phạm vi đó đều thuộc lớp được đề cập. Bạn có thể đặt điều này thành bất kỳ lớp nào trong lớp schema.org.
Itemprop - Thông tin bổ sung về lớp được đề cập dưới dạng itemtype có thể được cung cấp khi sử dụng thuộc tính này.
JSON-LD
JSON-LD là cú pháp dựa trên JSON, một ngôn ngữ đánh dấu khác thường được sử dụng. Ở định dạng JSON-LD, @context được đặt thành http://schema.org, @type được đặt thành bất kỳ lớp nào hiện có trong lớp schema.org, và các thuộc tính của lớp đó được xác định trong tập lệnh.
Cú pháp để đánh dấu văn bản
Lưu thao tác
Bạn có thể thêm nút Lưu thao tác vào email mà phiếu giảm giá/ưu đãi nhà hàng được gửi cùng với email và cần được lưu. Chỉ có thể thực hiện thao tác này một lần từ danh sách email.
Nhúng cú pháp JSON-LD hoặc Dữ liệu vi mô bên dưới vào nội dung HTML của email để Zoho Mail nhận dạng và thêm nút Lưu thao tác vào email của bạn.
JSON-LD
<script type="application/ld+json">
{
"@context": "http://schema.org
",
"@type": "EmailMessage",
"potentialAction": {
"@type": "SaveAction",
"name": "Save Coupon",
"handler": {
"@type": "HttpActionHandler",
"url": "https://nearbuy.com/save?offerId=hse237
"
}
},
"description": "Giảm giá 10% tại The Fat Duck"
}
</script>
Dữ liệu vi mô
<div itemscope itemtype="http://schema.org/EmailMessage
">
<div itemprop="potentialAction" itemscope itemtype="http://schema.org/SaveAction
">
<meta itemprop="name" content="Save Coupon"/>
<div itemprop="handler" itemscope itemtype="http://schema.org/HttpActionHandler
">
<link itemprop="url" href="https://nearbuy.com/save?offerId=hse237
"/>
</div>
</div>
<meta itemprop="description" content="Giảm giá 10% tại The Fat Duck"/>
</div>
Xác nhận thao tác
Bạn có thể thêm nút Xác nhận thao tác vào email mà người dùng được yêu cầu xác nhận đăng ký của họ cho một dịch vụ hoặc trang web cụ thể.
Nhúng cú pháp JSON-LD hoặc Dữ liệu vi mô bên dưới vào nội dung HTML của email để Zoho Mail nhận dạng và thêm nút Xác nhận thao tác vào email của bạn.
JSON-LD
<script type="application/ld+json">
{
"@context": "http://schema.org
",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ConfirmAction",
"name": "Confirm Subscription",
"handler": {
"@type": "HttpActionHandler",
"url": "https://nigella.com/confirm?subscriptionId=567qwe
"
}
},
"description": "Xác nhận đăng ký nhận Bản tin của Nigella Lawson"
}
</script>
Dữ liệu vi mô
<div itemscope itemtype="http://schema.org/EmailMessage
">
<div itemprop="potentialAction" itemscope itemtype="http://schema.org/ConfirmAction
">
<meta itemprop="name" content=“Confirm Subscription"/>
<div itemprop="handler" itemscope itemtype="http://schema.org/HttpActionHandler
">
<link itemprop="url" href="https://nigella.com/confirm?subscriptionId=567qwe
"/>
</div>
</div>
<meta itemprop="description" content="Xác nhận đăng ký nhận Bản tin của Nigella Lawson"/>
</div>
Xem thao tác
Bạn có thể thêm nút Xem thao tác trong những trường hợp bạn muốn chuyển hướng người dùng đến một trang web khác để xem một số nội dung. Thông thường, bạn sẽ nhận được email xác nhận đơn hàng từ trang web thương mại điện tử. Những email này thường có một tùy chọn để bạn có thể xem danh sách đặt hàng của mình. Đây là một ví dụ hoàn hảo về kiểu Xem thao tác.
Nhúng cú pháp JSON-LD hoặc Dữ liệu vi mô bên dưới vào nội dung HTML của email để Zoho Mail nhận dạng và thêm nút Xem thao tác vào email của bạn.
JSON-LD
http://schema.org
",https://www.saltychocolate.com/gp/ref=nav_youraccount_orders
",Dữ liệu vi mô
<div itemscope itemtype="http://schema.org/EmailMessage
">
<div itemprop="potentialAction" itemscope itemtype="http://schema.org/ViewAction
">
<link itemprop="target" href="https://www.saltychocolate.com/gp/ref=nav_youraccount_orders
"/>
<meta itemprop="name" content="View Order"/>
</div>
<meta itemprop="description" content="Xem chi tiết đơn hàng và thông tin theo dõi"/>
</div>
Theo dõi thao tác
Bạn có thể thêm nút Theo dõi thao tác vào email mà người dùng sẽ được yêu cầu để theo dõi đơn hàng đã đặt hoặc gói hàng mà họ đang đợi.
Nhúng cú pháp JSON-LD hoặc Dữ liệu vi mô bên dưới vào nội dung HTML của email để Zoho Mail nhận dạng và thêm nút Xác nhận thao tác vào email của bạn.
JSON-LD
<script type="application/ld+json">
{
"@context": "http://schema.org
",
"@type": "ParcelDelivery",
"deliveryAddress": {
"@type": "PostalAddress",
"streetAddress": "42 Shirley Ave.",
"addressLocality": "West Chicago",
"addressRegion": "CA",
"addressCountry": "US",
"postalCode": "60185"
},
"expectedArrivalUntil": "2017-03-12T12:00:00-08:00",
"carrier": {
"@type": "Organization",
"name": "DHL"
},
"itemShipped": {
"@type": "Product",
"name": "Dark Chocolate Syrup"
},
"partOfOrder": {
"@type": "Order",
"orderNumber": "127963",
"merchant": {
"@type": "Organization",
"name": "Rebecca Anderson"
}
},
"trackingUrl": "https://dhl.com/track/645287829
"
"potentialAction": {
"@type": "TrackAction",
"target": "https://dhl.com/track/645287829
"
},
}
</script>
Dữ liệu vi mô
<div itemscope itemtype="http://schema.org/ParcelDelivery
">
<div itemprop="deliveryAddress" itemscope itemtype="http://schema.org/PostalAddress
">
<meta itemprop="streetAddress" content="42 Shirley Ave."/>
<meta itemprop="addressLocality" content="West Chicago"/>
<meta itemprop="addressRegion" content="IL"/>
<meta itemprop="addressCountry" content="US"/>
<meta itemprop="postalCode" content="60185"/>
</div>
<meta itemprop="expectedArrivalUntil" content="2017-03-12T12:00:00-08:00"/>
<div itemprop="carrier" itemscope itemtype="http://schema.org/Organization
">
<meta itemprop="name" content="DHL"/>
</div>
<div itemprop="itemShipped" itemscope itemtype="http://schema.org/Product
">
<meta itemprop="name" content="Dark Chocolate Syrup"/>
</div>
<div itemprop="partOfOrder" itemscope itemtype="http://schema.org/Order
">
<meta itemprop="orderNumber" content="127963"/>
<div itemprop="merchant" itemscope itemtype="http://schema.org/Organization
">
<meta itemprop="name" content="Rebecca Anderson"/>
</div>
</div>
<link itemprop="trackingUrl" href="https://dhl.com/track/645287829
"/>
<div itemprop="potentialAction" itemscope itemtype="http://schema.org/TrackAction
">
<link itemprop="target" href="https://dhl.com/track/645287829
"/>
</div>
</div>
Thao tác RSVP
Cân nhắc một email mà bạn được mời tham gia một sự kiện. Nội dung HTML cơ bản của email sẽ có thông tin về ngày giờ, địa điểm diễn ra sự kiện, người tham dự, người dẫn chương trình, v.v.. Hơn nữa, bạn sẽ cần đồng ý nếu bạn sẽ tham gia sự kiện. Tất cả các lời mời tham gia sự kiện thường có 3 lựa chọn - “Có”, “Không” và “Có thể”. Trong những trường hợp như vậy, bạn có thể chèn một tập lệnh để nhúng hành động nhanh RSVP vào danh sách email. Khi bạn nhấp vào tùy chọn này, một bản tóm tắt sự kiện ngắn gọn với ba tùy chọn sẽ được hiển thị.
Nhúng cú pháp JSON-LD hoặc Dữ liệu vi mô bên dưới vào nội dung HTML của email để Zoho Mail nhận dạng và thêm nút Xem thao tác vào email của bạn.
JSON-LD
<script type="application/ld+json">
{
"@context": "http://schema.org
",
"@type": "Event",
"name": "Marketers Monthly Meet",
"startDate": "2017-10-08T15:30",
"endDate": "2027-10-08T16:30",
"location": {
"@type": "Place",
"address": {
"@type": "PostalAddress",
"name": "Zylker Inc.",
"streetAddress": "24 Goldfield Avenue, Knit Conference Room",
"addressLocality": "South Windsor",
"addressRegion": "CT",
"postalCode": "06074",
"addressCountry": "USA"
}
},
"potentialAction": [
{
"@type": "RsvpAction",
"rsvpResponse": "yes",
"handler": {
"@type": "HttpActionHandler",
"url": "https://sitename.com/rsvp?eventId=123&value=yes
"
},
"attendance": "http://schema.org/RsvpAttendance/Yes
"
},
{
"@type": "RsvpAction",
"rsvpResponse": "no",
"handler": {
"@type": "HttpActionHandler",
"url": "https://sitename.com/rsvp?eventId=123&value=no
"
},
"attendance": "http://schema.org/RsvpAttendance/No
"
},
{
"@type": "RsvpAction",
"rsvpResponse": "maybe",
"handler": {
"@type": "HttpActionHandler",
"url": "https://sitename.com/rsvp?eventId=123&value=maybe
"
},
"attendance": "http://schema.org/RsvpAttendance/Maybe
"
}
]
}
</script>
Nói một cách đơn giản, bạn cũng có thể chèn tập lệnh Dữ liệu vi mô vào phần nội dung HTML trong khi gửi email.
Dữ liệu vi mô
<div itemscope itemtype="http://schema.org/Event
">
<meta itemprop="name" content="Marketers Monthly Meet"/>
<meta itemprop="startDate" content="2017-10-08T15:30"/>
<meta itemprop="endDate" content="2017-10-08T16:30"/>
<div itemprop="location" itemscope itemtype="http://schema.org/Place
">
<div itemprop="address" itemscope itemtype="http://schema.org/PostalAddress
">
<meta itemprop="name" content="Zylker Inc."/>
<meta itemprop="streetAddress" content="24 Goldfield Avenue, Knit Conference Room"/>
<meta itemprop="addressLocality" content="South Windsor"/>
<meta itemprop="addressRegion" content="CT"/>
<meta itemprop="postalCode" content="06074"/>
<meta itemprop="addressCountry" content="USA"/>
</div>
</div>
<div itemprop="potentialAction" itemscope itemtype="http://schema.org/RsvpAction
">
<div itemprop="handler" itemscope itemtype="http://schema.org/HttpActionHandler
">
<link itemprop="url" href="https://sitename.com/rsvp?eventId=123&value=yes
"/>
</div>
<link itemprop="attendance" href="http://schema.org/RsvpAttendance/Yes
"/>
<meta itemprop="rsvpResponse" content="yes">
</div>
<div itemprop="potentialAction" itemscope itemtype="http://schema.org/RsvpAction
">
<div itemprop="handler" itemscope itemtype="http://schema.org/HttpActionHandler
">
<link itemprop="url" href="https://sitename.com/rsvp?eventId=123&value=no
"/>
</div>
<link itemprop="attendance" href="http://schema.org/RsvpAttendance/No
"/>
<meta itemprop="rsvpResponse" content="no">
</div>
<div itemprop="potentialAction" itemscope itemtype="http://schema.org/RsvpAction
">
<div itemprop="handler" itemscope itemtype="http://schema.org/HttpActionHandler
">
<link itemprop="url" href="https://sitename.com/rsvp?eventId=123&value=maybe
"/>
</div>
<link itemprop="attendance" href="http://schema.org/RsvpAttendance/Maybe
"/>
<meta itemprop="rsvpResponse" content="maybe">
</div>
</div>
Xếp hạng và đánh giá
Sau khi đến một nhà hàng hoặc khách sạn hay khu nghỉ dưỡng để nghỉ mát, bạn thường nhận được các email yêu cầu xếp hạng dịch vụ của họ hoặc thu thập phản hồi về dịch vụ. Trong khi gửi những email như thế này, bạn có thể nhúng tập lệnh để thêm Xếp hạng chúng tôi hoặc Hành động nhanh Đánh giá vào email.
Xếp hạng theo điểm số
Tùy chọn này cho phép bạn nhập xếp hạng theo điểm số cho nhà hàng đó bằng cách nhấp vào nút Xếp hạng chúng tôi.
Nhúng cú pháp JSON-LD hoặc Dữ liệu vi mô bên dưới vào nội dung HTML của email để Zoho Mail nhận dạng và thêm nút Hãy xếp hạng vào email của bạn.
JSON-LD
<script type="application/ld+json">
{
"@context": "http://schema.org
",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ReviewAction",
"review": {
"@type": "Review",
"itemReviewed": {
"@type": "FoodEstablishment",
"name": "The Fat Duck"
},
"reviewRating": {
"@type": "Rating",
"bestRating": "5",
"worstRating": "1"
}
},
"handler": {
"@type": "HttpActionHandler",
"url": "https://thefatduck.com/review?id=abc123
",
"requiredProperty": {
"@type": "Property",
"name": "review.reviewRating.ratingValue"
},
"method": "http://schema.org/HttpRequestMethod/POST
"
}
},
"description": "Chúng tôi hy vọng bạn đã có khoảng thời gian tuyệt vời khi dùng bữa với chúng tôi. Vui lòng đánh giá trải nghiệm của bạn tại đây."
}
</script>
Dữ liệu vi mô
<div itemscope itemtype="http://schema.org/EmailMessage
">
<div itemprop="potentialAction" itemscope itemtype="http://schema.org/ReviewAction
">
<div itemprop="review" itemscope itemtype="http://schema.org/Review
">
<div itemprop="itemReviewed" itemscope itemtype="http://schema.org/FoodEstablishment
">
<meta itemprop="name" content="The Fat Duck"/>
</div>
<div itemprop="reviewRating" itemscope itemtype="http://schema.org/Rating
">
<meta itemprop="bestRating" content="5"/>
<meta itemprop="worstRating" content="1"/>
</div>
</div>
<div itemprop="handler" itemscope itemtype="http://schema.org/HttpActionHandler
">
<link itemprop="url" href="https://thefatduck.com/review?id=abc123
"/>
<div itemprop="requiredProperty" itemscope itemtype="http://schema.org/Property
">
<meta itemprop="name" content="review.reviewRating.ratingValue"/>
</div>
<link itemprop="method" href="http://schema.org/HttpRequestMethod/POST
"/>
</div>
</div>
<meta itemprop="description" content="Chúng tôi hy vọng bạn đã có khoảng thời gian tuyệt vời khi dùng bữa với chúng tôi. Vui lòng đánh giá trải nghiệm của bạn tại đây."/>
</div>
Nội dung đánh giá
Nếu bạn muốn yêu cầu đánh giá cùng với xếp hạng trong email mà bạn đang gửi đi, bạn có thể nhúng Hành động nhanh Đánh giá vào danh sách email.
Nhúng cú pháp JSON-LD hoặc Dữ liệu vi mô bên dưới vào nội dung HTML của email để Zoho Mail nhận dạng và thêm nút Xem xét vào email của bạn.
JSON-LD
<script type="application/ld+json">
{
"@context": "http://schema.org
",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ReviewAction",
"review": {
"@type": "Review",
"itemReviewed": {
"@type": "FoodEstablishment",
"name": "The Fat Duck"
},
"reviewRating": {
"@type": "Rating",
"bestRating": "5",
"worstRating": "1"
}
},
"handler": {
"@type": "HttpActionHandler",
"url": "https://thefatduck.com/review?id=abc123
",
"requiredProperty": {
"@type": "Property",
"name": "review.reviewRating.ratingValue"
},
"optionalProperty": {
"@type": "Property",
"name": "review.reviewBody"
},
"method": "http://schema.org/HttpRequestMethod/POST
”
}
},
"description": "Chúng tôi hy vọng bạn hài lòng với trải nghiệm dùng món hải sản tại The Fat Duck. Hãy cho chúng tôi biết thêm về trải nghiệm của bạn"
}
</script>
Dữ liệu vi mô
<div itemscope itemtype="http://schema.org/EmailMessage
">
<div itemprop="potentialAction" itemscope itemtype="http://schema.org/ReviewAction
">
<div itemprop="review" itemscope itemtype="http://schema.org/Review
">
<div itemprop="itemReviewed" itemscope itemtype="http://schema.org/FoodEstablishment
">
<meta itemprop="name" content="The Fat Duck"/>
</div>
<div itemprop="reviewRating" itemscope itemtype="http://schema.org/Rating
">
<meta itemprop="bestRating" content="5"/>
<meta itemprop="worstRating" content="1"/>
</div>
</div>
<div itemprop="handler" itemscope itemtype="http://schema.org/HttpActionHandler
">
<link itemprop="url" href="https://thefatduck.com/review?id=abc123
"/>
<div itemprop="requiredProperty" itemscope itemtype="http://schema.org/Property
">
<meta itemprop="name" content="review.reviewRating.ratingValue"/>
</div>
<div itemprop="optionalProperty" itemscope itemtype="http://schema.org/Property
">
<meta itemprop="name" content="review.reviewBody"/>
</div>
<link itemprop="method" href="http://schema.org/HttpRequestMethod/POST
"/>
</div>
</div>
<meta itemprop="description" content="Chúng tôi hy vọng bạn hài lòng với trải nghiệm dùng món hải sản tại The Fat Duck. Hãy cho chúng tôi biết thêm về trải nghiệm của bạn"/>
</div>
Biểu mẫu đăng ký để nhúng Hành động nhanh:
Để Zoho Mail có thể xác định sơ đồ mà bạn đang nhúng trong email của mình và để đảm bảo rằng miền gửi sơ đồ là hợp lệ, tên miền đó phải được đăng ký với chúng tôi. Điền vào biểu mẫu dưới đây và Gửi biểu mẫu để đăng ký với chúng tôi, để Zoho Mail có thể nhận dạng các Đoạn mã email của bạn. Quy trình đăng ký tên miền sẽ hoàn tất sau khi tên miền được xem xét. Tổ chức gửi yêu cầu đăng ký sẽ được liên hệ, trong trường hợp cần giải thích rõ hơn về vấn đề này.
Chú ý:
- Bạn nên sử dụng các tùy chọn Xem thao tác và Theo dõi thao tác hơn là Lưu và Xác nhận thao tác.
- Nếu các tùy chọn Lưu và Xác nhận thao tác đang được sử dụng, thì phần xác thực sẽ do người gửi đảm nhận.