Can Google Prediction API be used to develop Predictive Chat Bot?

无人久伴 提交于 2021-01-29 07:46:45

问题


I was just fiddling around different machine learning platforms and was planing to use Google predictive API for creating predictive chat bot.

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?

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.


回答1:


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.



来源:https://stackoverflow.com/questions/41906015/can-google-prediction-api-be-used-to-develop-predictive-chat-bot

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!