360 Secure SkillHub
360 安全技能中心

小蜜蜂-询盘读取

通过 Bee Website Builder Open API 读取询盘数据,支持语言筛选、recent_days 时间范围、fields 字段白名单与分页参数,返回结构化询盘列表和分页信息,可用于客户来源统计、产品热度分析等场景;语言取值需来自 bee-languages-get 返回的列表。

分类:数据
mouxiaming
mouxiaming
热度 7.32
最近更新 2026-05-20 03:40:11

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add mouxiaming/bee-inquiry-read
兼容性
通用兼容
联网要求
需要联网
数据出网
必须出网
Metadata
name
bee-inquiry-read
description
Read, paginate, and analyze inquiry data from the Bee Website Builder platform, with support for multi-language filtering, field selection, and structured report generation.
homepage
https://open.tradew.com
metadata
{"openclaw":{"emoji":"🐝","requires":{"env":["BEE_API_KEY"]},"primaryEnv":"BEE_API_KEY"}}

bee-inquiry-read

Version: 2.0.4

Overview

Use the Bee Website Builder Open API to read inquiry data and generate a structured analysis report.

Supports full-field retrieval, on-demand field selection (fields), multi-language filtering, and paginated queries.


Input Parameters

api_key (string, Required)

API authentication key used for caller identity verification and interface access control.

  • Get it from: https://open.tradew.com
  • Recommended configuration: Inject it via skills.entries.env.BEE_API_KEY to avoid passing it in plaintext on every call.

language (string, Optional)

Site language filter.

⚠️ Constraint: If this parameter is provided, it must be selected manually from the list returned by the bee-languages-get skill. AI inference is not allowed.


recent_days (integer, Optional)

Time-range filter for inquiries.

⚠️ Constraint: Returns inquiry data from the most recent specified number of days, with a range of 0-36500. The default value is 0, meaning no time limit and all inquiries are returned.


fields (array of strings, Optional)

Field whitelist. Specifies which inquiry fields to return. If omitted, all fields are returned.

Available values:

Field Description
inquiry_id Unique inquiry ID
language Language
is_read Whether it has been read
title Inquiry title
content Inquiry content
country_code Country code
ip IP address
contact Contact information object
source Source channel
target_products Related product list
create_time Creation time

pagination (object, Required)

Pagination configuration parameters.

current_page (integer)

  • Default: 1
  • Minimum: 1
  • Pagination rules:
    • Must rely on data.pagination.has_next_page
    • Use data.pagination.next_page as the next page number
    • Do not infer pages based on total_page or manual increments
    • Requests must stop when has_next_page=false

page_size (integer)

  • Default: 10
  • Range: 10 ~ 50

Output Structure

Top-Level Fields

Field Type Description
status boolean Request status, true for success / false for failure
msg string Response message
data object | null Response data, null on failure

data.pagination

Field Type Description
current_page integer Current page number
page_size integer Items per page
total_page integer Total pages
total_count integer Total records
has_next_page boolean Whether a next page exists
next_page integer/null Next page number

data.list[] (array of objects)

Each inquiry record contains the following fields:

Field Type Description
inquiry_id integer Unique inquiry ID
language string Site language
is_read boolean Whether it has been read
title string Inquiry title
content string Inquiry content, which may contain an HTML form
country_code string Country code (ISO 3166-1)
ip string IPv4 or IPv6 address
contact object Contact information
source string Inquiry source channel
target_products array of objects Related product list
create_time string (datetime) Creation time (ISO 8601 format)

contact Object

Field Type Description
name string Contact name
email string Email address
tel string Contact phone
address string Contact address

target_products[] Object

Field Type Description
products_id integer Product ID
product_name string Product name
products_url string Product URL

Dependencies

Parameter Dependency skill Related field Mode
language bee-languages-get list[].language select

The value of the language parameter must be selected manually from the list returned by bee-languages-get.


Usage Examples

Basic Query (first page, 10 items per page)

{
  "api_key": "your-api-key",
  "pagination": {
    "current_page": 1,
    "page_size": 10
  }
}

With Language Filter and Field Restriction

{
  "api_key": "your-api-key",
  "language": "en",
  "fields": ["inquiry_id", "country_code", "source", "contact", "create_time"],
  "pagination": {
    "current_page": 1,
    "page_size": 50
  }
}

Return Inquiry Data from the Last 7 Days

{
  "api_key": "your-api-key",
  "recent_days": 7,
  "fields": ["inquiry_id", "country_code", "source", "contact", "create_time"],
  "pagination": {
    "current_page": 1,
    "page_size": 50
  }
}

Notes

  1. api_key is required and can be obtained from https://open.tradew.com
  2. pagination must comply with the allowed range (page_size 10-50, current_page >= 1)
  3. language must be manually selected from bee-languages-get and must not be inferred by the system
  4. Pagination rules: data.pagination.has_next_page indicates whether a next page exists; data.pagination.next_page provides the next page number and is null if there is no next page; whether to continue is decided by the user
  5. fields is optional. If omitted, all fields are returned; if provided, only the specified fields are returned

Applicable Scenarios

  • Foreign trade inquiry data retrieval
  • Customer source channel statistics
  • Product popularity and conversion analysis
  • Customer profiling and identity tag analysis
  • Paginated export and CRM data synchronization