我很高兴你问了!这是一个很棒的新功能,也是 Google 支持的标准,是 Schema.org 计划的一部分。
在这里复制他们的示例,该示例允许客户直接从电子邮件中查看某些内容!该块将直接复制到您的邮件模板中。
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "Restaurant",
"name": "Google Cafe",
"action": {
"@type": "ReviewAction",
"review": {
"@type": "Review",
"reviewRating": {
"@type": "Rating",
"bestRating": "5",
"worstRating": "1"
}
},
"handler": {
"@type": "HttpActionHandler",
"url": "{{ review_url }}",
"encoding": {
"url": "http://schema.org/Encoding/UrlEncoded"
},
"method": "http://schema.org/HttpRequestMethod/POST",
"requiredProperty": {
"@type": "Property",
"name": "review.reviewRating.ratingValue"
},
"optionalProperty": {
"@type": "Property",
"name": "review.reviewBody"
}
}
}
}
</script>
有关如何激活这些功能的文档可以在此处找到:https://developers.google.com/gmail/actions/ https://developers.google.com/gmail/actions/