Foreign Trade Email Inquiry Classifier: Using Gmail to Automatically Distinguish Inquiries from Noise

前言

In foreign trade business, corporate email accounts often receive customer inquiries, supplier marketing emails, and various spam simultaneously. Manually judging and archiving each email one by one is time-consuming and prone to missing genuine inquiries. Common approaches involve setting simple rules or keyword filtering, but these have limited effectiveness for emails with diverse phrasing and ambiguous boundaries.

Below is an introduction to the SkillHub community skill “Foreign Trade Email Inquiry Classifier”: designed for Gmail-based foreign trade scenarios, it allows an Agent to assist with email classification according to the skill instructions and generate daily inquiry summaries. It is suitable for teams already using Skills-supporting clients like Cursor or Claude Code who wish to delegate classification logic to AI-assisted execution.

这是什么

The “Foreign Trade Email Inquiry Classifier” is a community skill on SkillHub (coordinates @user_c72f7801/foreign-trade-email-sorter, current version 1.0.1, category office-efficiency). The publisher is user_c72f7801, with source labeled as community.

In one sentence: it is a Gmail-based foreign trade corporate email classifier that automatically categorizes emails into spam, marketing emails, and inquiry emails, and generates a daily inquiry summary report. The skill tag includes requires_api_key=true, so you need to prepare the corresponding API credentials before use (specific fields are subject to the SKILL.md after installation).

核心功能

The following capabilities are all sourced from the official SkillHub page and scraped materials, with no additional extensions:

  1. Three-category automatic classification: spam, marketing emails, inquiry emails.
  2. Daily inquiry summary: aggregates inquiry-related emails on the basis of classification to facilitate daily follow-up.
  3. Gmail scenario: the skill instructions explicitly target the Gmail mailbox system, rather than generic IMAP clients.

Current statistics on the SkillHub page (subject to page display): rating 100000, downloads 1788, installs 23.

安装与启用

Before installation, please confirm that SkillHub CLI is installed on your machine; if not, you can check the version or run the installation script according to the official installation documentation.

command -v skillhub && skillhub --version

If not installed, you can use the installation script provided by SkillHub (full installation or CLI only, see SkillHub Installation and Priority Source Configuration).

Install the skill into a skills directory that the current Agent can recognize; SkillHub documentation emphasizes that --dir must be used during installation, otherwise the default directory may not be loaded by the client. Different clients have different paths, for example:

  • Cursor: ~/.cursor/skills/
  • Claude Code: ~/.claude/skills/
  • Codex: ~/.codex/skills/ 或项目下的 .agents/skills/

Execute the installation in the corresponding directory (replace <skills 目录> with the actual path):

skillhub install @user_c72f7801/foreign-trade-email-sorter --dir <skills 目录>

If you prefer to have the AI complete the installation through conversation, the prompt provided on the SkillHub page is: according to https://skillhub.cn/install/skillhub.md, install @user_c72f7801/foreign-trade-email-sorter.

After installation, restart or reload the Agent to enable the skill. Since it is marked requires_api_key=true, you should configure the API Key required for Gmail or related services in the skill instructions before enabling it, to avoid runtime authentication failures.

典型用法

Public materials do not provide step-by-step replicable business script examples; the general Skills workflow is: after installation, the Agent reads the SKILL.md in the package, follows its steps to connect to Gmail, perform classification, and output summaries.

A reproducible starting approach is as follows:

  1. Complete the skillhub install from the previous section and confirm the skill appears in the target skills directory.
  2. In Cursor (or another client), explain the goal to the Agent, for example: according to the “Foreign Trade Email Inquiry Classifier” skill, classify today’s Gmail inbox into inquiry / marketing / spam categories, and generate an inquiry summary.
  3. Follow the Agent’s guidance to complete the API Key and Gmail authorization scope, then execute classification and report generation.

Specific interface names, configuration item names, and report formats are subject to the SKILL.md in the installation package; this article does not fabricate field names or example email content.

适用场景与注意

Who is it for

  • Foreign trade companies or salespeople whose primary mailbox is on Gmail, with inquiries and marketing emails mixed together, needing to focus on genuine inquiries daily.
  • Already using AI clients that support SkillHub skills, and willing to integrate email capabilities via API Key.

Limitations and Considerations

  • The skill description only covers Gmail and does not declare support for other email service providers; you need to evaluate it yourself before migrating mailboxes.
  • requires_api_key=true: the key should be placed in environment variables or secure configurations recognized by the client, and should not be written into public repositories.
  • Automatic classification may have misclassifications; important inquiries are still recommended for manual review; the summary report is an aid rather than the sole basis for decision-making.
  • Community-sourced skill; behavior and update cadence depend on the publisher; before use, you can check the SkillHub page to confirm whether version 1.0.1 is still the latest version that meets your needs.

结尾

The “Foreign Trade Email Inquiry Classifier” separates noise from inquiries in the Gmail inbox and produces daily inquiry summaries, suitable for foreign trade teams that want to reduce manual sorting while needing verifiable classification results. Installation and coordinates are subject to SkillHub.

  • 技能页面:https://www.skillhub.cn/skills/user_c72f7801/foreign-trade-email-sorter
  • API 条目:https://api.skillhub.cn/user_c72f7801/foreign-trade-email-sorter
  • 安装说明:https://skillhub.cn/install/skillhub.md
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye