UnisKB/ui/public/fx/google_search/detail.md

23 lines
1.0 KiB
Markdown
Raw Normal View History

## 概述
Google 搜索工具是一个实时 API可提取搜索引擎结果提供来自 Google 的结构化数据。它支持各种搜索类型,包括 Web、图像、新闻和地图。
## 配置
1. 创建 Google Custom Search Engine
2025-03-25 10:33:14 +00:00
在[Programmable Search Engine]https://programmablesearchengine.google.com/)中 添加 Search Engine
2025-03-26 06:25:22 +00:00
![google 创建引擎](/ui/fx/img/google_AddSearchEngine.jpg)
2. 获取cx参数
2025-03-25 10:33:14 +00:00
进入添加引擎在【基本】菜单中获取搜索引擎的ID即cx。
2025-03-26 06:25:22 +00:00
![google cx ](/ui/fx/img/google_cx.jpg) 3.获取 API Key
2025-03-25 10:33:14 +00:00
打开 https://developers.google.com/custom-search/v1/overview?hl=zh-cn获取API Key。
2025-03-26 06:25:22 +00:00
![google API Key](/ui/fx/img/google_APIKey.jpg)
2025-03-25 10:33:14 +00:00
3. 配置启动参数
在Google搜索函数的启动参数中填写配置以上参数。
2025-03-26 06:25:22 +00:00
![启动参数](/ui/fx/img/google_setting.jpg)
2025-03-25 10:33:14 +00:00
4. 在应用中使用
在高级编排应用中,点击添加组件->函数库->博查,设置使用参数。
2025-03-26 06:25:22 +00:00
![应用中使用](/ui/fx/img/google_app_used.jpg)