简体   繁体   English

将用户输入从 IBM Watson Assistant 发送到数据库或通过电子邮件

[英]Sending User Input from IBM Watson Assistant to Database or via E-Mail

I want to implement an evaluation feature to my chatbot.我想为我的聊天机器人实现评估功能。 User would be able to rate service on a scale of 1 to 5 and make suggestions.用户将能够以 1 到 5 的等级对服务进行评分并提出建议。

I guess I would use slots for that and store the provided data in a variable.我想我会为此使用插槽并将提供的数据存储在变量中。 What would be the easiest way for me to save and access that data later?我以后保存和访问该数据的最简单方法是什么?

Somehow I need to write it to a database and make that database easily accessible.不知何故,我需要将其写入数据库并使该数据库易于访问。 Or ideally having Watson sending an email with the feedback to myself.或者理想情况下,让 Watson 向我自己发送一个 email 和反馈。 Is there an IBM Cloud Database service available for that?是否有可用的 IBM Cloud Database 服务?

What would be my first steps in order to achieve this?为了实现这一目标,我的第一步是什么? Maybe you have some tips or documentation links, or even code snippets if it's not to much work for you.也许你有一些提示或文档链接,甚至是代码片段,如果它对你没有多大用处的话。

I used IBM Cloud functions to get a joke from an API to Watson via webhook.我使用 IBM Cloud 函数通过 webhook 从 API 到 Watson 获取笑话。 I used code from the internet.我使用了来自互联网的代码。 So I am somewhat familiar with the concept, but I need more guidance and couldn't find anything helpful.所以我对这个概念有点熟悉,但我需要更多的指导,找不到任何有用的东西。 Basically I know nothing about NODE.基本上我对NODE一无所知。

I would recommend the tutorial and its code on how to build a database-driven Slackbot with Watson Assistant .我会推荐有关如何使用 Watson Assistant 构建数据库驱动的 Slackbot的教程及其代码。 It uses a webhook and Cloud Functions to interact with a database for various actions.它使用 webhook 和 Cloud Functions 与数据库交互以执行各种操作。 You could use that as blueprint for setting up the webhook and see how the database is invoked.您可以将其用作设置 webhook 的蓝图,并查看如何调用数据库。

Make sure to secure the webhook.确保保护 webhook。 This can only be done using the command line (CLI), see the Cloud Functions doc on securing web actions .这只能使用命令行 (CLI) 完成,请参阅Cloud Functions 文档关于保护 web 操作

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

相关问题 扫描数据库并发送特定标签更改的电子邮件 - Scanning a Database and sending an e-mail of changes of a certain tag 从Sharepoint网站/数据库中提取电子邮件地址 - Extracting e-mail addresses from Sharepoint site/database 我想连接保存他在 watson assistant 中发送的用户数据的数据库 - I want to connect database that saves data from the user that he sends in watson assistant 当用户使用电子邮件登录时从表中获取用户名 - Getting User's name from table when they login with e-mail 在.NET中从数据库映像列将多个文件附加到电子邮件 - Attaching Multiple Files To An E-Mail From Database Image Column In .NET 更新数据库时自动向管理员发送电子邮件 - Automatic E-Mail to Admin when Database is Updated 注册毯子,数据库,信息,wordpress,mySQL,电子邮件 - Registration blanket, database, info, wordpress, mySQL, e-mail 在RDBMS中保留电子邮件 - persist e-mail in a RDBMS 每天自动通过电子邮件传输SQL Server数据 - Transferring SQL Server data via e-mail automatically every day 提交表单时,我检查 sql 数据库中是否还没有电子邮件,但它不起作用 - While submitting a form I check if there the e-mail isnt already in the sql database but it doesnt work
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM