- name
- bigmodel-web-search-fallback
- description
- Use Zhipu / BigModel web search as a non-invasive fallback when the built-in web_search route is unavailable, failing, or the user explicitly wants 智谱 / BigModel / GLM search. Supports both direct structured search results and chat-completions search-with-summary. Supports engine switching across search_std, search_pro, search_pro_sogou, and search_pro_quark.
BigModel Web Search Fallback
Use this skill when you want Zhipu search without modifying OpenClaw core.
It provides a local wrapper script with two execution modes:
raw— call Zhipu Web Search API directly and get structured resultschat— call Zhipu chat completions with the built-inweb_searchtool and get a synthesized answer
Requirements
Make sure the OpenClaw host has one of these environment variables set:
ZAI_API_KEYZHIPUAI_API_KEYBIGMODEL_API_KEY
If none is present, stop and report missing auth instead of retrying blindly.
Engine selection
This skill supports four Zhipu search engines:
search_std— default, lowest-cost/basic searchsearch_pro— stronger general search qualitysearch_pro_sogou— 搜狗-backed routesearch_pro_quark— 夸克-backed route
Default to search_std unless the user asks for:
- better search quality
- broader retrieval coverage
- a specific upstream engine
- result comparison across engines
When the user explicitly names an engine, honor it.
Quick decision
- Use
rawwhen you want structured results such as title/link/summary/media/date and you will write the final answer yourself. - Use
chatwhen you want GLM to search and summarize in one call. - Use
search_stdfirst for routine lookups. - Switch to
search_prowhen quality matters more than cost. - Switch to
search_pro_sogouorsearch_pro_quarkwhen the user wants to test or compare engines.
Commands
Run commands from the skill directory or use absolute paths.
Raw structured search
python scripts/zhipu_web_search.py raw --query "OpenClaw 是什么" --engine search_std --count 5 --prettySearch + answer synthesis
python scripts/zhipu_web_search.py chat --query "请简要说明 OpenClaw 是什么,并给出搜索来源。" --engine search_std --count 5 --prettyHigher-quality search
python scripts/zhipu_web_search.py raw --query "今天的 AI 新闻" --engine search_pro --count 5 --prettyExplicit engine comparison
python scripts/zhipu_web_search.py raw --query "OpenClaw 是什么" --engine search_pro_sogou --count 5 --pretty
python scripts/zhipu_web_search.py raw --query "OpenClaw 是什么" --engine search_pro_quark --count 5 --prettyWorkflow
- Decide whether the task needs
rawresults or achat-generated answer. - Pick the engine:
- default search_std - search_pro for better quality - search_pro_sogou / search_pro_quark for explicit engine routing or comparison
- Run the wrapper script.
- If using
raw, summarize the returned results yourself and cite the best links. - If using
chat, still sanity-check the answer before sending it. - If the user asks how this relates to built-in
web_search, explain that this is a non-invasive fallback and does not replace OpenClaw core tooling.
Notes
- The script prints JSON to stdout for easy parsing.
- Supported flags include
--domain-filter,--recency,--content-size,--count, and--engine. - Read
references/api-notes.mdif you need API details, engine guidance, or more examples.