Felo AI实时网络搜索,用于回答需要当前/实时信息的问题。适用于时事、新闻、趋势、实时数据查询等场景。
Felo 搜索技能 : 何时使用是一项面向实际任务的技能,主要用于测试此技能以获取当前或实时信息;当前事件和新闻: 最新动态、 趋势话题、 突发新闻;
该技能适合需要稳定复用相关能力的场景,可作为自动化工作流的一部分,也便于后续检查、调整和扩展。从功能定位来看,该技能强调把分散的操作要求整理成清晰、可复用的处理流程,使用户能够围绕既定目标快速准备输入、选择执行方式并获得结构化结果。实际使用前应先确认任务范围、数据来源、运行环境、必要权限和关键参数,再依据技能说明逐步执行;
若输入条件不完整,应先补齐信息或采用保守配置,避免因错误假设导致结果偏离需求。执行过程中需要关注工具调用是否成功、接口或依赖是否可用、输出格式是否符合预期,并对异常提示、缺失字段和边界情况进行处理;涉及批量任务时,还应保存进度,避免中断后重复操作。
当用户提问涉及当前或实时信息时,触发本技能:
触发词:
显式指令: /felo-search、"search with felo"、"felo search"
请勿用于以下情况:
设置环境变量 FELO_API_KEY:
Linux/macOS:
export FELO_API_KEY="your-api-key-here"
Windows(PowerShell):
$env:FELO_API_KEY="your-api-key-here"
Windows(CMD):
set FELO_API_KEY=your-api-key-here
如需永久生效,请将该变量添加至 shell 配置文件(如 ~/.bashrc 或 ~/.zshrc)或系统环境变量中。
当本技能被触发后,请使用 Bash 工具按以下步骤执行:
使用 Bash 工具验证 API 密钥是否已正确设置:
if [ -z "$FELO_API_KEY" ]; then echo "ERROR: FELO_API_KEY not set" exit 1 fi echo "API key configured"
若 API 密钥未设置,请向用户说明配置方法并立即终止执行。
提取用户查询内容,并通过临时 JSON 文件调用 Felo API(以妥善处理特殊字符):
# 创建查询 JSON(将 USER_QUERY 替换为实际查询内容)
cat > /tmp/felo_query.json << 'EOF'
{"query": "USER_QUERY_HERE"}
EOF
# 调用 Felo API
curl -s -X POST https://openapi.felo.ai/v2/chat
-H "Authorization: Bearer $FELO_API_KEY"
-H "Content-Type: application/json"
-d @/tmp/felo_query.json
# 清理临时文件
rm -f /tmp/felo_query.json
注意事项:
USER_QUERY_HERE 替换为用户的实际查询内容cat > file << 'EOF')确保正确处理中文、日文及各类特殊字符-s 参数以获得简洁输出API 返回的 JSON 结构如下:
{
"answer": "AI-generated answer text",
"query_analysis": ["optimized query 1", "optimized query 2"]
}
请解析该 JSON 响应,并按如下格式向用户呈现结果:
## Answer [显示 answer 字段内容] ## Query Analysis Optimized search terms: [列出 query_analysis 中的各项]
用户提问: “What's the weather in Tokyo today?”(今天东京天气如何?)
预期响应格式:
## Answer Tokyo weather today: Sunny, 22°C (72°F). High of 25°C, low of 18°C. Light winds from the east at 10 km/h. UV index: 6 (high). Good day for outdoor activities! ## Query Analysis Optimized search terms: Tokyo weather today, 東京 天気 今日
Bash 命令:
cat > /tmp/felo_query.json << 'EOF'
{"query": "What's the weather in Tokyo today?"}
EOF
curl -s -X POST https://openapi.felo.ai/v2/chat
-H "Authorization: Bearer $FELO_API_KEY"
-H "Content-Type: application/json"
-d @/tmp/felo_query.json
rm -f /tmp/felo_query.json
用户提问: “What's new in Hangzhou recently?”(杭州最近有什么新动态?)
预期响应格式:
## Answer Recent news in Hangzhou: Asian Games venue upgrades completed, West Lake night tours launched, new metro lines opened. Details... ## Query Analysis Optimized search terms: Hangzhou recent news, Hangzhou events, 杭州 最近 新闻
Bash 命令:
cat > /tmp/felo_query.json << 'EOF'
{"query": "What's new in Hangzhou recently"}
EOF
curl -s -X POST https://openapi.felo.ai/v2/chat
-H "Authorization: Bearer $FELO_API_KEY"
-H "Content-Type: application/json"
-d @/tmp/felo_query.json
rm -f /tmp/felo_query.json
用户提问: “What are the best things to do in Taipei?”(台北有哪些必做之事?)
Bash 命令:
cat > /tmp/felo_query.json << 'EOF'
{"query": "What are the best things to do in Taipei"}
EOF
curl -s -X POST https://openapi.felo.ai/v2/chat
-H "Authorization: Bearer $FELO_API_KEY"
-H "Content-Type: application/json"
-d @/tmp/felo_query.json
rm -f /tmp/felo_query.json
用户提问: “Popular restaurants in Tokyo?”(东京有哪些热门餐厅?)
Bash 命令:
cat > /tmp/felo_query.json << 'EOF'
{"query": "Popular restaurants in Tokyo"}
EOF
curl -s -X POST https://openapi.felo.ai/v2/chat
-H "Authorization: Bearer $FELO_API_KEY"
-H "Content-Type: application/json"
-d @/tmp/felo_query.json
rm -f /tmp/felo_query.json
INVALID_API_KEY — API 密钥无效或已被撤销MISSING_PARAMETER — 缺少必需参数query 参数INVALID_PARAMETER — 参数值无效CHAT_FAILED — 内部服务错误若 FELO_API_KEY 未设置,请显示如下提示信息:
❌ Felo API Key not configured To use this skill, you need to set up your Felo API Key: 1. Get your API key from https://felo.ai (Settings → API Keys) 2. Set the environment variable: Linux/macOS: export FELO_API_KEY="your-api-key-here" Windows (PowerShell): $env:FELO_API_KEY="your-api-key-here" 3. Restart Claude Code or reload the environment
端点地址: https://openapi.felo.ai/v2/chat
认证方式: 在 Authorization 请求头中使用 Bearer Token(取自 FELO_API_KEY 环境变量)
请求格式:
{
"query": "user's search query"
}
响应格式:
{
"answer": "AI-generated comprehensive answer",
"query_analysis": ["optimized query 1", "optimized query 2"]
}
answer 和 query_analysis 字段相关专题
热门下载
相关下载
精品课程
共6课时 | 54.7万人学习
共89课时 | 134万人学习
共49课时 | 82.5万人学习
最新文章