可以使用Google Prediction API开发预测聊天机器人吗? [英] Can Google Prediction API be used to develop Predictive Chat Bot?
问题描述
我只是在摆弄不同的机器学习平台,并打算使用Google预测API来创建预测聊天机器人.
I was just fiddling around different machine learning platforms and was planing to use Google predictive API for creating predictive chat bot.
我现在面临的问题是对API的每个请求都需要OAuth身份验证.我将无法对用于处理客户输入的文本的请求进行身份验证这一事实是我们真正关心的问题.我如何可能实时响应访客用户在聊天中输入的文本?是否有可能针对此用例制作Google预测性API?
The issue that I am facing now is each request to the API requires OAuth authentication. The fact that I will not be able to authenticate requests for processing the text entered by a client is the real concern. How will I probably respond to a text entered in the chat by a guest user in real time? Is it possible or is Google predictive API not made for this use case?
我正在遵循 Google的Prediction API快速入门指南,并使用POST MAN进行API调用.
如有可能,请使用引用或代码段指导我.
I am following Prediction API Quick Start Guide by Google and using POST MAN for making API calls.
If possible, please guide me using references or code snippet.
推荐答案
您可以创建服务帐户来代替OAuth身份验证令牌.您可以通过Google Cloud Console创建它们.然后,它将使您能够创建可用于与API交互的服务器到服务器(Google)身份验证.
You can create service accounts in place of OAuth authentication tokens. You can create these through the Google Cloud Console. It will then give you the ability to create a server to server (Google) auth that you can use to interact with the API.
这篇关于可以使用Google Prediction API开发预测聊天机器人吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!