# 按购买信号联系客户

Source: https://won.dev/zh/docs/tutorials/buying-signals

一家公司刚发布了三个采购岗位、刚完成一轮融资，或者进口量翻了一倍，它现在就需要些什么。这篇教程用[信号 API](/zh/docs/signals) 找到这样的公司，在每家找到该联系的人，并让每封邮件都从那件让它值得一读的事说起。下面以招聘信号为例，融资和进口激增信号的用法相同。

**开始之前。** 测试 key 返回样例信号，不花钱。用正式 key 时，10 家公司、每家 2 个人、每家 1 个邮箱，最多花 $0.70，[下面有明细](#cost)。发信需要一个带发信域名的发件方：见[找海外买家并发开发信](/zh/docs/tutorials/find-buyers-and-email-them#sender)的第 4 步和第 5 步。

## 1. 选信号 [#signal]

每种信号都对应一个公司开始需要某样东西的时刻。按你卖什么来选：

| 你卖的是                 | 搜索                                | 条件                                                                   |
| ------------------------ | ----------------------------------- | ---------------------------------------------------------------------- |
| 商品、零部件或包装       | `POST /signals/import-surge/search` | 你的买家进口的 `hs_code` 或 `product`，以及他们的 `importer_country`。 |
| 采购或寻源服务           | `POST /signals/hiring/search`       | `department: ["purchasing"]`                                           |
| 面向某个团队的软件或服务 | `POST /signals/hiring/search`       | 这个团队的 `department` 或 `titles`，团队在扩张就加上 `min_jobs: 3`。  |
| 公司有钱之后才会买的东西 | `POST /signals/funding/search`      | `stages`，例如 `seed` 或 `series_a`，以及 `company_country`。          |

更多场景见[信号指南](/zh/docs/signals#choosing)。

## 2. 找公司 [#search]

找最近 7 天（默认时间段）在招采购人员的美国公司。把你的客户和已经联系过的公司放进 `exclude_domains`：

```bash
curl https://api.won.dev/v1/signals/hiring/search \
  -H "Authorization: Bearer $WON_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "department": ["purchasing"],
  "job_country": ["US"],
  "exclude_domains": ["your-customer.example"],
  "limit": 10,
  "max_cost": 0.3
}'
```

返回结果，只保留第一家公司和它最新的职位：

```json
{
  "data": [
    {
      "company": {
        "id": null,
        "name": "SAMPLE Northfield Home Furnishings",
        "domain": "northfield-home.example",
        "country": "US",
        "employees": "201-500",
        "industry": "Retail Furniture and Home Furnishings"
      },
      "type": "hiring",
      "why_now": "Posted 2 jobs in the last 30 days, the newest \"Senior Buyer, Upholstery\" (Charlotte, NC) on 2026-11-12.",
      "matches": 2,
      "signals": [
        {
          "id": "sig_3k8m2x9p4q1w",
          "type": "hiring",
          "occurred_at": "2026-11-12",
          "title": "Senior Buyer, Upholstery",
          "url": "https://careers.northfield-home.example/senior-buyer-upholstery"
        }
      ]
    }
  ]
}
```

`why_now` 用数字和日期说明发生了什么，`signals` 列出背后的职位和链接。每返回一家公司 $0.03。见[找正在招人的公司](/zh/docs/signals/hiring-search)。

## 3. 找到该联系的人 [#people]

招采购的人通常就是这个团队的负责人。按公司的 `domain` 列出这个团队的资深成员，再查出你选中的那个人的工作邮箱：

```bash
curl https://api.won.dev/v1/enrich/people/search \
  -H "Authorization: Bearer $WON_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "domain": "northfield-home.example",
  "department": ["purchasing"],
  "seniority": ["executive", "manager"],
  "limit": 2
}'
```

```bash
curl https://api.won.dev/v1/enrich/people/email/find \
  -H "Authorization: Bearer $WON_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "person_id": "per_4m7q2x9k1c8d" }'
```

每列出一个人 $0.005，每找到一个邮箱 $0.03。如果信号的 `company.id` 不是 `null`，说明这家公司在海关数据里，`GET /trade/companies/{id}/contacts` 一次调用就能返回它带验证邮箱的采购人员。

## 4. 把信号变成开场白 [#opener]

`why_now` 是事实，不是问候语。开场第一句由你自己写，或者让你的 agent 写，作为你自己的占位符传入。先说发生了什么，再说为什么和对方有关：

| 发生了什么                                          | 开场白                                              |
| --------------------------------------------------- | --------------------------------------------------- |
| 发布了 2 个职位，最新的是“Senior Buyer, Upholstery” | I saw you are hiring a senior buyer for upholstery. |
| 2026-11-02 宣布完成种子轮融资                       | Congratulations on the seed round this month.       |
| 最近 3 个月沙发进口量增长 80%                       | Your sofa imports grew fast this autumn.            |

每位收件人在 `variables` 里带上自己的开场白，正文用 `{{opener}}` 引用：

```json
{
  "contact_id": "per_4m7q2x9k1c8d",
  "company": "Northfield Home Furnishings",
  "variables": { "opener": "I saw you are hiring a senior buyer for upholstery." }
}
```

如果某个占位符没有默认值，而收件人又没有对应的值，这位收件人会以 `missing_variable` 被排除在发送活动之外，而不是收到一封有空缺的邮件。见[占位符](/zh/docs/email#placeholders)。

## 5. 启动发送活动 [#launch]

先带 `dry_run: true` 创建发送活动，看过预览后，再用 `start: true` 发送同样的请求：

```bash
curl https://api.won.dev/v1/email/campaigns \
  -H "Authorization: Bearer $WON_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "sender_id": "snd_4k2m9x7p1q8w3e5r",
  "name": "Hiring buyers, November",
  "steps": [
    {
      "subject": "Upholstery suppliers for {{company}}",
      "body": "Hi {{first_name|there}},\n\n{{opener}} When the new buyer starts, would a second supplier for wooden-frame sofas help? We ship to the US in five weeks.\n\n{{sender_first_name}}"
    },
    {
      "delay_days": 4,
      "body": "Hi {{first_name|there}},\n\nHappy to send our price list to whoever runs upholstery at {{company}}. Who should I write to?\n\n{{sender_first_name}}"
    }
  ],
  "recipients": [
    {
      "contact_id": "per_4m7q2x9k1c8d",
      "company": "Northfield Home Furnishings",
      "variables": { "opener": "I saw you are hiring a senior buyer for upholstery." }
    }
  ],
  "dry_run": true
}'
```

一个信号只在几周内算新闻。发现当天就启动发送活动，不要先攒进一份长名单。

## 6. 每周跑一次 [#repeat]

信号每天都有。每周搜索一次，把 `since` 设为上次运行的第二天，并把已经联系过的公司加进 `exclude_domains`。组织在过去 30 天内为同一信号付过费的公司，再次返回时免费。

如果你想给已有的名单排序，可以用 `POST /signals/find` 逐家检查，或者用任务（`operation: "signals.find"`）一次检查最多 100 家。每种信号只在公司确实有这个信号时才计费。见[检查公司信号](/zh/docs/signals/find)。

## 这次流程花多少钱 [#cost]

用正式 key，最多：

| 步骤                     | 计费                 | 最多花费  |
| ------------------------ | -------------------- | --------- |
| 2. 找 10 家公司          | `signal_hiring` × 10 | $0.30     |
| 3. 每家列出 2 个人       | `person_record` × 20 | $0.10     |
| 3. 每家找 1 个邮箱       | `person_email` × 10  | $0.30     |
| 4 和 5. 开场白和发送活动 | 免费                 | $0        |
| **合计**                 |                      | **$0.70** |

融资信号每家公司 $0.20，进口激增信号 $0.05。发信域名按天计费，见[定价与计费](/zh/docs/billing)。