Loading...
Loading...
Compare original and translation side by side
signup.sh.envapi.sh.envSKILL_DIR="$(dirname "$(find ~/.agents/skills -name SKILL.md -path "*/enrich-people-with-email-and-phone/*" 2>/dev/null | head -1)")"
API="$SKILL_DIR/api.sh"
SIGNUP="$SKILL_DIR/signup.sh"$SIGNUP$APIsignup.sh.envapi.sh.envSKILL_DIR="$(dirname "$(find ~/.agents/skills -name SKILL.md -path "*/enrich-people-with-email-and-phone/*" 2>/dev/null | head -1)")"
API="$SKILL_DIR/api.sh"
SIGNUP="$SKILL_DIR/signup.sh"$SIGNUP$APIapi.shapi.shbash "$API" POST /api/v1/signal/get-signal-list '{"pagination": {"limit": 1, "offset": 0}}'signalsundefinedbash "$API" POST /api/v1/signal/get-signal-list '{"pagination": {"limit": 1, "offset": 0}}'signalsundefined
Wait for user input. Then:
1. Run `bash "$SIGNUP" start "<user_email>"`
- Returns `{"status": "verification_code_sent", "email": "..."}` on success
2. Tell the user a 6-digit code was sent:3. Wait for input. Run `bash "$SIGNUP" verify "<user_email>" "<code>"`
- On success: returns `{"status": "authenticated", "user_id": "..."}`. Credentials are written to `.env` and `.gitignore` is updated automatically.
- On failure: returns `{"status": "failed", ...}`
4. Verify with `bash "$API" POST /api/v1/signal/get-signal-list '{"pagination": {"limit": 1, "offset": 0}}'`
5. If verification succeeds → continue to Step 1
6. If sign-up fails → ask user to retry
7. If verify fails → tell user the code was invalid or expired (up to 10 attempts in 24 hours), offer to retry or resend
---
等待用户输入。然后:
1. 运行 `bash "$SIGNUP" start "<user_email>"`
- 成功时返回 `{"status": "verification_code_sent", "email": "..."}`
2. 告知用户已发送6位验证码:3. 等待输入。运行 `bash "$SIGNUP" verify "<user_email>" "<code>"`
- 成功时:返回 `{"status": "authenticated", "user_id": "..."}`。凭证将被写入`.env`文件,`.gitignore`会自动更新。
- 失败时:返回 `{"status": "failed", ...}`
4. 使用 `bash "$API" POST /api/v1/signal/get-signal-list '{"pagination": {"limit": 1, "offset": 0}}'` 验证
5. 如果验证成功 → 继续步骤1
6. 如果注册失败 → 请用户重试
7. 如果验证失败 → 告知用户验证码无效或已过期(24小时内最多尝试10次),提供重试或重新发送的选项
---bash "$API" POST /api/v2/account/batch '{"account_ids": [<id>], "icp_people_page": 1, "icp_people_page_size": 100}'icp_peopleperson_idbash "$API" POST /api/v2/account/batch '{"account_ids": [<id>], "icp_people_page": 1, "icp_people_page_size": 100}'icp_peopleperson_idbash "$API" GET /api/v1/people/filtersbash "$API" POST /api/v1/people/list '{"filters": {<user_filters>}, "page": 0, "page_size": 500}'people_idstotal_countbash "$API" GET /api/v1/people/filtersbash "$API" POST /api/v1/people/list '{"filters": {<user_filters>}, "page": 0, "page_size": 500}'people_idstotal_countundefinedundefined
If the user has more than 500 people, explain that enrichment will be batched in chunks of 500.
Ask the user what they want enriched if they haven't specified:
---
如果用户的人员数量超过500,说明补充将按500人为一批分批进行。
如果用户未指定,询问用户需要补充的内容:
---bash "$API" POST /api/v1/enrich/people '{"people_ids": [<ids>], "enrich_emails": true, "enrich_phones": false}'bash "$API" GET /api/v1/enrich/people/<job_id>statuscompletedfailedbash "$API" POST /api/v1/enrich/people '{"people_ids": [<ids>], "enrich_emails": true, "enrich_phones": false}'bash "$API" GET /api/v1/enrich/people/<job_id>statuscompletedfailedundefinedundefined| Name | Phone | Status | |
|---|---|---|---|
| {person_name} | {email or "—"} | {phone_number or "—"} | {status} |
| ... | ... | ... | ... |
**Status meanings:**
- `enriched` — contact info found
- `already_enriched` — already had this info
- `not_found` — lookup completed but no result
- `no_linkedin_url` — can't enrich without a LinkedIn URL
- `error` — enrichment failed for this person
---| 姓名 | 邮箱 | 电话 | 状态 |
|---|---|---|---|
| {person_name} | {邮箱或“—”} | {电话号码或“—”} | {status} |
| ... | ... | ... | ... |
**状态含义:**
- `enriched` — 找到联系信息
- `already_enriched` — 已拥有该信息
- `not_found` — 查找完成但无结果
- `no_linkedin_url` — 没有LinkedIn URL无法补充信息
- `error` — 该人员的补充操作失败
---undefinedundefinedundefinedundefined