有什么方法可以让我使用 Dialogflow Chatbot 从 BigQuery 中读取信息
Is there any way that i can read from BigQuery using Dialogflow Chatbot
我想实现一个功能,我想在 dialogflow 聊天机器人中显示使用 select statement.Is 这个 possible.Kindly 帮助[=10= 从 BigQuery 检索的数据]
根据评论部分中提到的内容,似乎 Dialogflow Fulfillment 正是您在这里需要的。当用户键入表达式时,Dialogflow 匹配意图并根据调整后的 fulfillment 函数发送 webhook 请求,webhook 服务然后执行预期的操作,如调用 API 服务或提供一些其他业务逻辑流程。
Dialogflow 与 Bigquery 的集成还需要应用实现代码来组成适当的 GCP Cloud function that will handle communication with Bigquery API service. Said this, you can use built-in Inline 编辑器并编写您的实现函数,但是它不接受任何其他 Node.js 编程语言。
关于实施的更多说明,我认为您可以遵循可能符合您最初目标的 codelabs tutorial which provides in detail the general workflow, assuming that you can inject your own code replacing the domestic addToBigQuery()
function in Index.js
from the example. For this purpose you can visit nodejs-bigquery Github repository containing a lot of useful code samples, in particular the generic query() 功能。
我想实现一个功能,我想在 dialogflow 聊天机器人中显示使用 select statement.Is 这个 possible.Kindly 帮助[=10= 从 BigQuery 检索的数据]
根据评论部分中提到的内容,似乎 Dialogflow Fulfillment 正是您在这里需要的。当用户键入表达式时,Dialogflow 匹配意图并根据调整后的 fulfillment 函数发送 webhook 请求,webhook 服务然后执行预期的操作,如调用 API 服务或提供一些其他业务逻辑流程。
Dialogflow 与 Bigquery 的集成还需要应用实现代码来组成适当的 GCP Cloud function that will handle communication with Bigquery API service. Said this, you can use built-in Inline 编辑器并编写您的实现函数,但是它不接受任何其他 Node.js 编程语言。
关于实施的更多说明,我认为您可以遵循可能符合您最初目标的 codelabs tutorial which provides in detail the general workflow, assuming that you can inject your own code replacing the domestic addToBigQuery()
function in Index.js
from the example. For this purpose you can visit nodejs-bigquery Github repository containing a lot of useful code samples, in particular the generic query() 功能。