首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Google Actions实现

Google Actions实现
EN

Stack Overflow用户
提问于 2016-02-25 20:20:08
回答 1查看 130关注 0票数 0

我目前正在经营一家电商商店。我想在我的电子邮件中使用google操作和评论,这样我就可以从那里获得评论并提供一键操作。我是个新手,我发现这非常有用。有没有人可以帮助我如何开始呢?要求是什么?是否有任何与电子邮件相关的要求,如SPF、DKIM、DMARC等?

我将非常感谢您的支持。

EN

回答 1

Stack Overflow用户

发布于 2016-03-15 22:14:10

我最近也有类似的问题,因为我们想提供集成在Google Now和jotted down the process中的货件跟踪信息,我必须通过。

由于您希望提供post评论的功能,因此您的流程将略有不同(如这里所述:Review Action Email Markup - Google Developers),并且需要一个后端来处理HTTP POST请求。

从我的博客中摘录了我启动和运行跟踪操作的旅程:

  1. 根据Parcel Delivery action的谷歌开发人员示例在我们的电子邮件模板中实现微数据模式。我们选择了基本的选项来使事情变得简单。(请参阅此page)
  2. Validate the data.下面的最终结果在示例中的格式无效的失败validation.
  3. Realize (根据谷歌自己的validator)
  4. Tweak标签,并添加一个或两个丢失的ones.
  5. Validate再次。通过。
  6. 验证我们已经为发送者设置了DKIM键从我们的客户服务电子邮件地址发送到相同的地址,以验证按钮是否有效(它不会为其他收件人工作,直到Gmail将您列入白名单)
  7. 这次发送另一封电子邮件到谷歌。这是注册process.
  8. Fill in the registration form的一部分,这样谷歌的人就可以验证你的schema.
  9. Receive回复,他们已经将我的电子邮件转发给了正确的people.
  10. ???
  11. It,花了3个工作日(周三到周一),然后我收到了一封来自谷歌的电子邮件,说我们已经上线了。

我们使用Mandrill及其模板特性。模板最终在底部显示了这个元数据,其余的标记原封不动:

代码语言:javascript
复制
<body>

{{-- lots of tables for layout --}}

<div itemscope itemtype="http://schema.org/ParcelDelivery">
  <div itemprop="deliveryAddress" itemscope itemtype="http://schema.org/PostalAddress">
    <meta itemprop="streetAddress" content="{{ deliveryAddressStreet }}"/>
    <meta itemprop="addressLocality" content="{{ deliveryAddressCity }}"/>
    <meta itemprop="addressRegion" content="{{ deliveryAddressCountry }}"/>
    <meta itemprop="addressCountry" content="{{ deliveryAddressCountry }}"/>
    <meta itemprop="postalCode" content="{{ deliveryAddressZip }}"/>
  </div>
  <meta itemprop="expectedArrivalUntil" content="{{ expectedDelivery }}"/>
  <div itemprop="carrier" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="{{ carrier }}"/>
  </div>
  {{#each products}}
  <div itemprop="itemShipped" itemscope itemtype="http://schema.org/Product">
    <meta itemprop="name" content="{{ description }}"/>
  </div>
  {{/each}}
  <div itemprop="partOfOrder" itemscope itemtype="http://schema.org/Order">
    <meta itemprop="orderNumber" content="{{ ordernumber }}"/>
    <div itemprop="merchant" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="Our Store Name"/>
    </div>
    <link itemprop="orderStatus" href="http://schema.org/OrderInTransit"/>
  </div>
  <meta itemprop="trackingNumber" content="{{ shipmentTrackingNo }}"/>
  <link itemprop="trackingUrl" href="{{ shipmentTrackingLink }}"/>
  <div itemprop="potentialAction" itemscope itemtype="http://schema.org/TrackAction">
    <link itemprop="target" href="{{ shipmentTrackingLink }}"/>
    <link itemprop="url" href="{{ shipmentTrackingLink }}"/>
    <meta itemprop="name" content="Track shipment"/>
  </div>
</div>
</body>
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/35627133

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档