如何触发电子邮件发送

How to trigger an email sending

我实际上是 Google 和 Dialogflow 上 Actions 的新手。 为了提高我的能力,我想在用户要求联系支持服务时触发 Google Assistant 上的电子邮件发送建议。

上下文是这样的: I am using Google Assistant answer on Dialogflow

User: "I would like to send an email to the support service."

Bot:

Output vocal text: "Sure. On your Google Assistant, you would find a shortcut to send an email"

Google Assistant interface: Shortcut that trigger a mail sending interface to the support service email address. (It's like when you ask Google to send an email. It asks you to who and what message).

我还想指出,我一直在 Google 和 Dialogflow 文档上进行操作,尽管我只能找到有关帐户链接的电子邮件文档。

编辑:我并不是在寻找代码,只是提示我在哪里可以找到这些信息,如果可能的话,如何正确使用它们。

非常感谢, 我真的很期待提高我的能力。

your screenshot 中的 UX 在操作上下文中不可用。相反,您应该使用您的对话设计来帮助用户提供支持请求,然后从您的 Dialogflow webhook 发送电子邮件。

例如,您的对话可以引导用户选择支持主题并提供问题摘要以及他们可能需要的任何帐户信息。然后,您将使用此信息撰写一封电子邮件,并通过 SMTP 或 IMAP 从您的 fulfillment webhook 发送它。