简体   繁体   English

如何使用api.ai将谷歌搜索引擎集成到聊天机器人?

[英]How to integrate google search engine to a chatbot using api.ai?

The question is not about integrating on any website. 问题不在于在任何网站上进行整合。 It's about chatbots using AI 这是关于使用AI的聊天机器人

There are inbuilt domains for web search, but those are not free to use . 有用于网络搜索的内置域名 ,但这些域名 不能免费使用

So I was wondering if I can query google search engine directly and process it in the backend code and return it as required ? 所以我想知道我是否可以直接查询谷歌搜索引擎并在后端代码中处理它并根据需要返回它

Yes. 是。 You can integrate Google Search, but you'll need to run a program (node/python) on a server that'll take the query parameters from the user and make the search and return a JSON. 您可以集成Google搜索,但是您需要在服务器上运行程序(node / python),该程序将从用户获取查询参数并进行搜索并返回JSON。

Go to https://www.google.co.in/cse to make your own custom search engine. 转到https://www.google.co.in/cse制作您自己的自定义搜索引擎。 You can restrict search results from a specific website or not. 您可以限制特定网站的搜索结果。

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

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