Token导航 LogoToken导航TokenDH.com
研究检索敏感数据clawhub未标认证来源可访问clear审计通过

smartleadsmartlead 命令行

Agent Skill

smartlead 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

9,535

周安装

382

GitHub Stars

公开资料未说明

下载量

3,087
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:smartlead(smartlead 命令行)
来源仓库:https://github.com/jzakirov/smartlead
安装命令:
openclaw skills install smartlead
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install smartlead

简介

通过 smartlead CLI 从命令行管理 Smartlead 活动、潜在客户和 Webhook。

SKILL.md

name
smartlead
description
Manage Smartlead campaigns, leads, and webhooks from the command line via the smartlead CLI.
metadata

Smartlead — CLI Usage Guide

Smartlead is the email outreach platform used by this workspace. Use smartlead CLI commands to manage campaigns, leads, webhooks, and message history.

Configuration

Credentials are resolved in order: ~/.config/smartlead-cli/config.toml → env vars → CLI flags.

Required:

  • SMARTLEAD_API_KEY — Smartlead API key

Optional:

  • SMARTLEAD_BASE_URL — base URL (default https://server.smartlead.ai/api/v1)
  • SMARTLEAD_PRETTY — set to 1 for rich table output

All commands output JSON by default. Add --pretty for human-readable tables (avoid in scripts).

Command Discovery (Use This Instead of Memorizing Commands)

Do not guess command names or options. Use --help and follow the CLI surface:

smartlead --help
smartlead campaigns --help
smartlead campaigns leads --help
smartlead webhooks --help
smartlead <group> <command> --help

Prefer curated commands (campaigns, leads, webhooks) over raw. Use raw only when the CLI does not expose the endpoint you need yet.

For openclaw-smartlead plugin setup, keep plugin config minimal unless there is a clear reason not to:

  • usually set only webhookSecret (plugin ingress auth)
  • plugin forwards normalized Smartlead payloads to OpenClaw /hooks/smartlead by default
  • prompt text / delivery channel / branching logic should live in OpenClaw hooks.mappings (or a hook transform), not plugin config
  • openclawHookUrl / openclawHookToken are typically auto-derived from OpenClaw hooks config

Common Workflows

Find campaign IDs

smartlead campaigns list

Get full email thread for a lead (most important for reply alerts)

# When you have campaign_id and lead_id directly:
smartlead campaigns leads message-history <campaign_id> <lead_id>

# When you only have an email address:
smartlead leads get-by-email --email person@example.com   # → get id field
smartlead campaigns leads message-history <campaign_id> <resolved_lead_id>

Inspect / patch a lead safely (preferred over full update)

smartlead campaigns leads update is a full update endpoint and Smartlead requires email in the body. For partial edits, prefer patch because it auto-fetches the current lead, merges your changes, and sends a valid full payload.

smartlead campaigns leads get <campaign_id> <lead_id>
smartlead campaigns leads patch <campaign_id> <lead_id> --first-name "Updated"

Reply Alert Workflow (EMAIL_REPLY webhook event)

When an EMAIL_REPLY webhook fires through openclaw-smartlead, your OpenClaw hook mapping/transform should construct the prompt. The forwarded payload includes flat fields like campaign_id, lead_id, lead_email, reply_category, preview_text, message_id, sequence_number, plus payload (sanitized raw Smartlead payload).

When responding to the hook prompt, always follow this sequence:

  1. Extract campaign_id and lead_id from the prompt context.

- lead_id comes from sl_email_lead_id (not sl_email_lead_map_id).

  1. If lead_id is present: smartlead campaigns leads message-history <campaign_id> <lead_id>
  2. If lead_id is missing but lead_email is present:

smartlead leads get-by-email --email <lead_email> → then message-history.

  1. Summarize the conversation (bullets or short paragraph).
  2. Send a channel message starting with exactly "New lead answer", including:

- Lead email, campaign ID - One-line reply preview (from preview_text) - The conversation summary

Set up a campaign webhook pointing at openclaw

# List current webhooks first
smartlead webhooks list <campaign_id>

# Create/update (id: null = create new)
smartlead webhooks upsert <campaign_id> --body-file webhook.json

Example webhook.json:

{
  "id": null,
  "name": "OpenClaw Reply Alerts",
  "webhook_url": "https://<your-openclaw-host>/smartlead/webhook",
  "event_types": ["EMAIL_REPLY"],
  "categories": ["Interested"]
}

Use smartlead webhooks upsert --help for the current allowed event_types. categories are Smartlead workspace lead-category labels (for example Interested), not webhook event types.

For OpenClaw side setup, prefer:

  • plugin route /smartlead/webhook for Smartlead ingress/auth/dedupe
  • OpenClaw hooks.mappings on /hooks/smartlead for prompt templates and branching
  • optional hook transform for deterministic routing like positive/negative/OOO handling

Webhook Payload Fields (EMAIL_REPLY)

Key fields available when an EMAIL_REPLY event arrives:

FieldDescription
campaign_idSmartlead campaign ID
sl_email_lead_idLead ID (use this for message-history)
sl_email_lead_map_idLead-map ID (different from lead_id — do not confuse)
sl_lead_emailOriginal target lead email
leadCorrespondence.targetLeadEmailMore reliable target email field
leadCorrespondence.replyReceivedFromActual email that replied (may differ from target)
subjectEmail subject
preview_textReply preview snippet
event_timestampISO timestamp of the reply
secret_keyWebhook validation secret (set in Smartlead)

Important Edge Cases / Pitfalls

MistakeFix
Guessing CLI optionsUse smartlead ... --help for the exact command shape
Using smartlead campaigns list --limit .../campaigns does not support limit; use --offset, --client-id, --include-tags
Using sl_email_lead_map_id as lead_idUse sl_email_lead_id for message-history
Treating replyReceivedFrom as the targettargetLeadEmail is who was originally emailed
Using campaigns leads update without emailSmartlead rejects it; prefer campaigns leads patch, or include email in the full update body
Email lookups failing due to case mismatchNormalize emails to lowercase before get-by-email / updates
Sending webhook categories: []categories must be a non-empty list of Smartlead lead category labels
Assuming webhook categories is a global enumCategories are workspace-specific labels (e.g. Interested); inspect Smartlead UI / Test Webhook
Running --pretty in automated scriptsDrop --pretty, parse JSON output
Starting alert without "New lead answer"First line must be exactly New lead answer
Forgetting authEnsure SMARTLEAD_API_KEY is set in env or config

Deletion Behavior

Delete commands prompt for confirmation in interactive shells. In scripts/automation, pass --yes to skip prompts.

Examples:

smartlead campaigns delete <campaign_id>
smartlead campaigns leads delete <campaign_id> <lead_id>
smartlead webhooks delete <campaign_id> --webhook-id <id>

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

93.13%
按下载量换算2,875

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills