xiaozhi-esp32-server/docs/web-search-integration.md
lapy 70771b4209 chore(westernization): translate remaining Han text across code, UI and docs
Final localization pass over everything the audit covers, driven by the
local qwen3.8:instruct endpoint (thinking disabled) with placeholder-
masked, cached, resumable batches:

- Python server: comments, docstrings, log/error messages, prompt text
- manager-api Java: javadoc, exception messages, Swagger summaries,
  westernized test fixtures (locale strings, signed-URL examples)
- manager-web / manager-mobile: component comments and misc leftovers
  (functional split regexes such as /[、;;,,]/ left byte-identical)
- digital-human: HTML/UI text, JS comments, wake-word defaults aligned
  with the server canonical English wake words
- docs: device-call guide, wakeword and search integration guides

Also widens the westernization audit exception to the whole vendored
generator bundle and retires the stale per-file exception list.
2026-10-11 17:58:15 +01:00

2.6 KiB

Web search plugin usage guide

Feature description

The web search plugin web_search supports real-time web search during conversations and returns results. The plugin supports three search sources: Metaso, Tavily, and Serply. Users can choose one as needed.

API Key Application Guide

We currently support Mita Search ,Tavily Search and Serply Search.

  • Tavily Search: 1000 free requests per month.
  • Metaso Search: Offers high-quality domestic data sources.
  • Serply Search: Returns Google search results. Registration grants 2500 free credits; payment is required after credits are exhausted.

API Key Application Guide

  • Visit Metaso Search API, register and log in
  • On the API key management page, click " to create a new Key"
  • Copy the generated API Key (prefixed with mk-), which is essential for configuration
  • Visit Tavily Console , register and log in
  • Create an API Key in the Console
  • Copy the generated API Key (prefixed with tvly-); this is critical for configuration
  • Visit Serply, register and log in to your account
  • Create an API Key in the Console
  • Copy the generated API Key; this is critical information for configuration
  • See Serply documentation for interface details

Configuration Method

  • Log in to Console
  • Go to the "Configure Role" page and select the Agent to configure
  • Click the "Edit Function" button, find the "Web Search" plugin in the parameter configuration area on the right
  • Check " for online search"
  • Fill in the search source (metaso, tavily, or serply) and enter the corresponding API Key in the config
  • Save config, then save agent config

Method 2. Single-module xiaozhi-server deployment

Configure in data/.config.yaml:

  • Fill search source into provider, valid values are metaso, tavily or serply
  • Enter the obtained API Key into api_key
plugins:
  web_search:
    provider: "metaso"
    api_key: "your API Key"

To customize the number of returned results and tool descriptions, additionally configure max_results and description:

plugins:
  web_search:
    provider: "metaso"
    description: " web search tool. Use this tool when the user explicitly needs to search the web."
    max_results: 5
    api_key: "your API Key"

Also ensure web_search is enabled in the functions list:

plugins:
  functions:
    - web_search

Restart service after configuration to apply changes.