简体   繁体   English

如何通过对话流发送电子邮件

[英]How to send emails by dialogflow

I'm looking for a way to send email through dialogflow with the information the bot gets from the user, for example: full name, email, etc.我正在寻找一种通过对话流发送电子邮件的方法,其中包含机器人从用户那里获得的信息,例如:全名、电子邮件等。

I've already researched a lot and saw that there is a way using nodemailer, but I could not make it work.我已经研究了很多,看到有一种使用 nodemailer 的方法,但我无法让它工作。

You can send the mail in your fulfillment code at your backbend.您可以在您的后弯发送您的履行代码中的邮件。 You just need to "Enable webhook call for this intent" in the "Fulfillment" section of your Intent.您只需要在您的意图的“实现”部分中“为此意图启用 webhook 调用”。 Dialogflow itself has no support to send mails. Dialogflow 本身不支持发送邮件。 You need to implement that yourself eg with the npm package you found.您需要自己实现,例如使用您找到的 npm 包。

I think Botonic could be useful in this case.我认为Botonic在这种情况下可能很有用。 It's an open-source framework to create bots with React and it has a Dialogflow plugin to manage NLU stuff.它是一个使用 React 创建机器人的开源框架,它有一个Dialogflow 插件来管理 NLU 内容。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM