PersuadioAI
Analyze leads, draft follow-up campaigns, and launch SMS outreach only with explicit human approval.
사용해야 할까요
품질 및 안전성
도구 정의와 프로토콜 준수에 대한 자동 분석을 기반으로 합니다.
컨텍스트 비용
이는 서버의 도구가 모델의 컨텍스트에 로드될 때마다 소비되는 대략적인 토큰 수입니다. 수치가 높을수록 다른 작업에 사용할 수 있는 주의가 줄어듭니다.
설치
원클릭 설치
`claude_desktop_config.json` 파일에 다음을 추가하세요:
{
"mcpServers": {
"mcp": {
"url": "https://api.persuadioai.com/mcp"
}
}
}원격 엔드포인트
https://api.persuadioai.com/mcpstreamable-http할 수 있는 일
도구 목록
도구 (21)
🟡add_leads_to_campaign(campaign_id, lead_ids, idempotency_key)
Move leads this account owns into a campaign this account owns, by explicit id. Updates membership only — sends nothing. Opted-out and suppressed leads are REJECTED with per-lead skip reasons even when listed explicitly; leads already in the target are deduplicated; the response includes the campaign's final lead count read back from the database. To pick the audience by filter instead of by id, use select_and_attach_leads (same attach semantics, driven by search_leads filters). If the target campaign was already reviewed, its earlier approval is stale (the launch step recounts recipients and refuses a token approved for a smaller audience), so a fresh review_campaign_readiness is required before launching.
입력 스키마
{
"type": "object",
"properties": {
"campaign_id": {
"type": "string",
"description": "The destination campaign."
},
"lead_ids": {
"type": "array",
"items": {
"type": "string"
},
"description": "Lead ids to move (from find_lead, list_leads or search_leads)."
},
"idempotency_key": {
"type": "string",
"maxLength": 200,
"description": "Optional but recommended. Retrying the same key returns the same result instead of re-running the move; reusing it with different arguments is rejected as idempotency_conflict."
}
},
"required": [
"campaign_id",
"lead_ids"
],
"additionalProperties": false
}🟢analyze_lead_source(campaign_id)
Summarise the leads in an account or one campaign: how many exist, how many can actually be contacted, how many opted out, and how they break down by status and source. Read-only — sends nothing and changes nothing. Start here when the operator asks what they have to work with.
입력 스키마
{
"type": "object",
"properties": {
"campaign_id": {
"type": "string",
"description": "Limit to one campaign. Omit to cover every campaign this account owns."
}
},
"additionalProperties": false
}🟡attach_leads_to_campaign(campaign_id, lead_ids, idempotency_key)
Attach leads this account owns to a campaign this account owns, by explicit id. Synonym for add_leads_to_campaign — same tool, same behavior, same response shape, just the verb some callers expect. Updates membership only — sends nothing. Opted-out and suppressed leads are REJECTED with per-lead skip reasons even when listed explicitly; leads already in the target are deduplicated; the response includes the campaign's final lead count read back from the database. To pick the audience by filter instead of by id, use select_and_attach_leads (same attach semantics, driven by search_leads filters). If the target campaign was already reviewed, its earlier approval is stale (the launch step recounts recipients and refuses a token approved for a smaller audience), so a fresh review_campaign_readiness is required before launching.
입력 스키마
{
"type": "object",
"properties": {
"campaign_id": {
"type": "string",
"description": "The destination campaign."
},
"lead_ids": {
"type": "array",
"items": {
"type": "string"
},
"description": "Lead ids to move (from find_lead, list_leads or search_leads)."
},
"idempotency_key": {
"type": "string",
"maxLength": 200,
"description": "Optional but recommended. Retrying the same key returns the same result instead of re-running the move; reusing it with different arguments is rejected as idempotency_conflict."
}
},
"required": [
"campaign_id",
"lead_ids"
],
"additionalProperties": false
}🟢check_campaign_readiness(campaign_id, lead_ids)
Read-only, idempotent campaign readiness status for monitoring and scheduled checks: recipient count, message, channels, cost and every pass/warn/fail check. SENDS NOTHING and NEVER mints an approval token or confirmation phrase, so it cannot launch a campaign. Use review_campaign_readiness only when a human is actively deciding whether to launch.
입력 스키마
{
"type": "object",
"properties": {
"campaign_id": {
"type": "string",
"description": "The campaign to check."
},
"lead_ids": {
"type": "array",
"items": {
"type": "string"
},
"description": "Check a subset of the campaign's leads. Omit for all of them."
}
},
"required": [
"campaign_id"
],
"additionalProperties": false
}⚪clone_campaign_draft(source_campaign_id, name, import_ids, lead_ids, channel_override, ...)
Copy a previous campaign's configuration (channel, message template, AI instructions, follow-up sequence, sender/automation settings) onto a brand-new campaign, and attach an audience to it. THE RESULT IS ALWAYS A DRAFT — this tool NEVER launches, NEVER sends, and never touches an approval token; it does not call launch_approved_campaign under any circumstance. import_ids (from preview_lead_import / import_leads_from_file) is the preferred way to supply a bulk audience — give several to combine multiple imported files into one campaign; leads are deduplicated across every import_id and lead_id given. At least one of import_ids/lead_ids should normally be supplied, or the clone has no audience. Use channels=['sms'] when the new draft must be text-only with no AI/voice calls, and from_address_id to pin the verified email identity on an email clone. After this, call review_campaign_readiness; only an explicit human approval may lead to launch_approved_campaign.
입력 스키마
{
"type": "object",
"properties": {
"source_campaign_id": {
"type": "string",
"description": "The campaign to copy settings from. Must be owned by this account."
},
"name": {
"type": "string",
"maxLength": 120,
"description": "Name for the new draft campaign."
},
"import_ids": {
"type": "array",
"items": {
"type": "string"
},
"description": "Preferred for bulk audiences: import_id values from preview_lead_import/import_leads_from_file. Combine several to merge multiple imported files."
},
"lead_ids": {
"type": "array",
"items": {
"type": "string"
},
"description": "Existing lead ids to include (from find_lead/list_leads). May be combined with import_ids; deduplicated together."
},
"channel_override": {
"type": "string",
"enum": [
"email",
"sms",
"both"
],
"description": "Override the cloned campaign's channel. Omit to keep the source campaign's channel."
},
"channels": {
"type": "array",
"items": {
"type": "string",
"enum": [
"email",
"sms",
"voice"
]
},
"minItems": 1,
"uniqueItems": true,
"description": "Optional explicit channel narrowing on the new draft. Example: ['sms'] makes an SMS campaign text-only and prevents AI/voice calling. This can only narrow the campaign type, never widen it."
},
"from_address_id": {
"type": "string",
"description": "Optional verified sender to pin on an email/both clone. Must belong to this account and remain on a live sending domain. Readiness re-checks final eligibility before launch."
},
"description": {
"type": "string",
"maxLength": 2000,
"description": "Optional new description. Omit to keep the source campaign's description."
},
"idempotency_key": {
"type": "string",
"maxLength": 200,
"description": "Required. Repeat a retried call safely — the same key returns the same cloned campaign instead of creating a duplicate."
}
},
"required": [
"source_campaign_id",
"name",
"idempotency_key"
],
"additionalProperties": false
}🟡create_campaign_draft(name, message, description, lead_ids, outreach_vertical, ...)
Create a campaign in draft status with its opening SMS. THIS SENDS NOTHING — a draft cannot deliver a message. It exists so a human can read the exact wording and audience before deciding. The message is rejected if it implies a prior relationship or manufactures urgency. After this, call review_campaign_readiness.
입력 스키마
{
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "A name the operator will recognise in their dashboard.",
"maxLength": 120
},
"message": {
"type": "string",
"description": "The opening SMS, 320 characters or fewer. Say who is writing and why. Do not imply a prior conversation or a deadline. An opt-out line is appended automatically on first contact.",
"maxLength": 320
},
"description": {
"type": "string",
"description": "Context for the operator: who this targets and why.",
"maxLength": 2000
},
"lead_ids": {
"type": "array",
"items": {
"type": "string"
},
"description": "Existing leads to move into this campaign. Ids outside this account are ignored."
},
"outreach_vertical": {
"type": "string",
"enum": [
"home_purchase",
"b2b"
],
"description": "Who the recipients ARE. 'home_purchase' — homeowners who might sell. 'b2b' — businesses and operators in the industry, never contacted about a house they live in. This chooses the copy rules AND which registered number the campaign may text from, so set it here rather than later: a b2b campaign left unset is treated as homeowner outreach. Omit it only when the campaign genuinely is homeowner outreach or you do not know.",
"maxLength": 40
},
"idempotency_key": {
"type": "string",
"description": "Repeat a retried call safely — the same key returns the same campaign.",
"maxLength": 120
}
},
"required": [
"name",
"message"
],
"additionalProperties": false
}🟡create_lead(campaign_id, name, first_name, last_name, phone, ...)
Add a single lead to a campaign this account owns. Requires campaign_id plus at least a phone or an email; deduplicates against the account's existing leads by contact detail. Writes a record only — sends nothing, to nobody, ever.
입력 스키마
{
"type": "object",
"properties": {
"campaign_id": {
"type": "string",
"description": "The campaign this lead belongs to (required — every lead lives in a campaign)."
},
"name": {
"type": "string",
"description": "Full name, if first/last are not given separately."
},
"first_name": {
"type": "string"
},
"last_name": {
"type": "string"
},
"phone": {
"type": "string",
"description": "Any common format; at least one of phone/email is required."
},
"email": {
"type": "string"
},
"company_name": {
"type": "string"
},
"notes": {
"type": "string"
}
},
"required": [
"campaign_id"
],
"additionalProperties": false
}🟢find_lead(query, campaign_id)
Search this account's leads by phone number, email address, or name. Phone matching tolerates formatting differences. Returns masked contact details plus lead ids. Read-only — sends nothing and changes nothing.
입력 스키마
{
"type": "object",
"properties": {
"query": {
"type": "string",
"description": "A phone number, an email address, or part of a name."
},
"campaign_id": {
"type": "string",
"description": "Optional: narrow the search to one campaign."
}
},
"required": [
"query"
],
"additionalProperties": false
}🟢get_campaign_status(campaign_id, status, limit, offset)
Report recorded campaign outcomes: leads, sent records, confirmed delivery receipts, replies, opt-outs, booking records, and AI-paused leads (not people awaiting a human). Omit campaign_id to list campaigns. Account totals are independent of pagination and status filters. Read-only. Null metrics are unavailable; read the caveats before telling the operator a campaign is or is not working.
입력 스키마
{
"type": "object",
"properties": {
"campaign_id": {
"type": "string",
"description": "One campaign. Omit to list all of them."
},
"status": {
"type": "string",
"description": "Filter the list by status, e.g. 'active', 'draft', 'paused'."
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 100
},
"offset": {
"type": "integer",
"minimum": 0
}
},
"additionalProperties": false
}🟢get_interested_leads(campaign_id, days, limit, offset)
List leads whose replies were classified as positive or as asking a question, newest first, with the reply text. The classifier is keyword and sentiment based, NOT a language model — the response says so explicitly, and the reply text is included so you can judge for yourself. Read-only.
입력 스키마
{
"type": "object",
"properties": {
"campaign_id": {
"type": "string",
"description": "Limit to one campaign."
},
"days": {
"type": "integer",
"description": "How far back to look, in days (1-365). Default 30.",
"minimum": 1,
"maximum": 365
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 100
},
"offset": {
"type": "integer",
"minimum": 0
}
},
"additionalProperties": false
}⚪import_leads_from_file(file, source, tags, column_mapping, dedupe_by, ...)
Upsert leads from an uploaded CSV or XLSX file into this account. WRITES TO THE DATABASE — SENDS NOTHING on any channel, ever; this only stores contacts. Deduplicates by phone/email (dedupe_by, default both) against both the file itself and every lead already in this account. Re-importing a lead that is opted-out, suppressed, or do-not-contact NEVER clears those flags and NEVER moves the lead — only genuinely new contacts are created. Returns an import_id: pass it to clone_campaign_draft's import_ids to attach this audience to a campaign. idempotency_key is required — retrying the same key returns the same result rather than importing twice; reusing it with different arguments is rejected as idempotency_conflict.
입력 스키마
{
"type": "object",
"properties": {
"file": {
"type": "object",
"description": "The uploaded lead file, inline. filename + content_base64 (raw file bytes, base64-encoded) — this server's transport is stateless JSON-RPC with no separate attachment channel, so the file rides in the tool call itself. .csv and .xlsx only; 15MB decoded max.",
"properties": {
"filename": {
"type": "string",
"maxLength": 255,
"description": "Original filename, e.g. 'alameda_investors.xlsx'. Determines .csv vs .xlsx parsing."
},
"content_base64": {
"type": "string",
"description": "The raw file bytes, base64-encoded."
}
},
"required": [
"filename",
"content_base64"
],
"additionalProperties": false
},
"source": {
"type": "string",
"maxLength": 100,
"description": "Where this list came from, e.g. 'PropStream export'. Stored as provenance and never overwritten on re-import."
},
"tags": {
"type": "array",
"items": {
"type": "string"
},
"maxItems": 25,
"description": "Optional labels applied to every imported/updated lead."
},
"column_mapping": {
"type": "object",
"description": "Optional override of auto-detected columns: {target_field: 'exact column name in the file'}. Target fields: first_name, last_name, full_name, phone, mobile_phone, email, address, property_address, city, state, zip, company_name. Anything not given here falls back to auto-detection.",
"additionalProperties": {
"type": "string"
}
},
"dedupe_by": {
"type": "array",
"items": {
"type": "string",
"enum": [
"phone",
"email"
]
},
"description": "Which normalized fields count as a duplicate match. Default: [\"phone\", \"email\"] (either matching is a duplicate)."
},
"mode": {
"type": "string",
"enum": [
"upsert"
],
"description": "Import mode. Only 'upsert' (create new, update existing) is currently supported."
},
"idempotency_key": {
"type": "string",
"maxLength": 200,
"description": "Required. Repeat a retried call safely — the same key returns the same import result instead of importing twice."
}
},
"required": [
"file",
"idempotency_key"
],
"additionalProperties": false
}🔴launch_approved_campaign(campaign_id, approval_token, confirmation, operator_authorized_this_launch, lead_ids, ...)
SENDS REAL MESSAGES TO REAL PEOPLE. This is irreversible and costs credits. It requires an approval_token from review_campaign_readiness and explicit operator authorization for this exact launch. In an interactive current turn where the human explicitly asked to send this campaign, pass operator_authorized_this_launch=true instead of asking them to copy/paste the server phrase. Never set that flag for a scheduled or background run, standing instructions, prior approval, enthusiasm, or inferred intent. Never infer approval. Never generate the confirmation yourself. The exact confirmation phrase remains supported for other clients. Never reuse an approval issued for a different campaign or a different size.
입력 스키마
{
"type": "object",
"properties": {
"campaign_id": {
"type": "string",
"description": "The campaign to launch."
},
"approval_token": {
"type": "string",
"description": "The token from review_campaign_readiness. Single-use and short-lived."
},
"confirmation": {
"type": "string",
"description": "The exact confirmation phrase from the readiness review. Optional only when operator_authorized_this_launch=true."
},
"operator_authorized_this_launch": {
"type": "boolean",
"description": "Set true only when the authenticated human operator explicitly asked to launch this exact campaign in the current interactive turn. Never set for scheduled/background execution, standing preferences, prior approvals, or inferred intent."
},
"lead_ids": {
"type": "array",
"items": {
"type": "string"
},
"description": "Must match the subset that was reviewed and approved."
},
"channel": {
"type": "string",
"enum": [
"sms",
"email"
],
"description": "Must match the channel the readiness review approved. Default 'sms'; 'email' launches email-only."
},
"from_address_id": {
"type": "string",
"description": "Email channel only: the same from_address_id the readiness review was run with (the approval binds to it)."
}
},
"required": [
"campaign_id",
"approval_token"
],
"additionalProperties": false
}🟢list_from_addresses
The verified email sender identities (from-addresses) this account can send campaigns from. Read-only; sends nothing. Use before an email-channel readiness review to pick the right sender.
입력 스키마
{
"type": "object",
"properties": {},
"additionalProperties": false
}🟢list_leads(campaign_id, status, limit, offset)
Page through this account's leads, optionally filtered by campaign and status. Read-only — sends nothing and changes nothing. For richer filtering (geography, source, tags, contact history, SMS eligibility), use search_leads — the same data with the audience-building filter vocabulary.
입력 스키마
{
"type": "object",
"properties": {
"campaign_id": {
"type": "string",
"description": "Optional: one campaign only."
},
"status": {
"type": "string",
"description": "Optional lead status filter, e.g. 'active'."
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 100
},
"offset": {
"type": "integer",
"minimum": 0
}
},
"additionalProperties": false
}⚪pause_campaign(campaign_id, reason)
Stop a campaign from sending anything further. Queued messages that have not yet gone out are skipped; anything already handed to the carrier cannot be recalled. Safe to call when unsure — pausing is reversible and errs toward not contacting people.
입력 스키마
{
"type": "object",
"properties": {
"campaign_id": {
"type": "string",
"description": "The campaign to pause."
},
"reason": {
"type": "string",
"description": "Why it is being paused, for the operator's records.",
"maxLength": 500
}
},
"required": [
"campaign_id"
],
"additionalProperties": false
}🟢preview_lead_import(file, column_mapping, dedupe_by)
Inspect an uploaded CSV or XLSX lead file WITHOUT writing anything to the database — read-only, sends nothing. Auto-detects common columns (name, phone, email, address, company/entity name) and reports row counts, in-file and account duplicates, missing contact fields, and how many leads would end up SMS- and email-contactable. Run this before import_leads_from_file so the operator can see what would happen first.
입력 스키마
{
"type": "object",
"properties": {
"file": {
"type": "object",
"description": "The uploaded lead file, inline. filename + content_base64 (raw file bytes, base64-encoded) — this server's transport is stateless JSON-RPC with no separate attachment channel, so the file rides in the tool call itself. .csv and .xlsx only; 15MB decoded max.",
"properties": {
"filename": {
"type": "string",
"maxLength": 255,
"description": "Original filename, e.g. 'alameda_investors.xlsx'. Determines .csv vs .xlsx parsing."
},
"content_base64": {
"type": "string",
"description": "The raw file bytes, base64-encoded."
}
},
"required": [
"filename",
"content_base64"
],
"additionalProperties": false
},
"column_mapping": {
"type": "object",
"description": "Optional override of auto-detected columns: {target_field: 'exact column name in the file'}. Target fields: first_name, last_name, full_name, phone, mobile_phone, email, address, property_address, city, state, zip, company_name. Anything not given here falls back to auto-detection.",
"additionalProperties": {
"type": "string"
}
},
"dedupe_by": {
"type": "array",
"items": {
"type": "string",
"enum": [
"phone",
"email"
]
},
"description": "Which normalized fields count as a duplicate match. Default: [\"phone\", \"email\"] (either matching is a duplicate)."
}
},
"required": [
"file"
],
"additionalProperties": false
}🟢recommend_followup_campaign(campaign_id, goal)
Propose how to follow up, based on which leads have never been contacted, were contacted without replying, or already replied. Returns segments with counts and a suggested approach for each. Read-only — this is a proposal to discuss with the operator, not a plan that has been put into effect.
입력 스키마
{
"type": "object",
"properties": {
"campaign_id": {
"type": "string",
"description": "Limit to one campaign. Omit to cover the whole account."
},
"goal": {
"type": "string",
"description": "What the operator is trying to achieve, in their words.",
"maxLength": 500
}
},
"additionalProperties": false
}🟢review_campaign_readiness(campaign_id, lead_ids, channel, from_address_id)
Pre-flight a campaign: how many people would be contacted, on which channels, what it would cost, and which checks pass, warn or fail. SENDS NOTHING. If everything passes, it returns a short-lived approval token and a confirmation phrase — both of which a human operator must authorise before launch_approved_campaign will do anything. Run this before every launch; the token is single-use and campaign-specific.
입력 스키마
{
"type": "object",
"properties": {
"campaign_id": {
"type": "string",
"description": "The campaign to review."
},
"lead_ids": {
"type": "array",
"items": {
"type": "string"
},
"description": "Review a subset of the campaign's leads. Omit for all of them."
},
"channel": {
"type": "string",
"enum": [
"sms",
"email"
],
"description": "How the campaign goes out. Default 'sms' (text + voice where applicable). 'email' reviews an email-only launch."
},
"from_address_id": {
"type": "string",
"description": "Email channel only: the sender identity to send from (see list_from_addresses). Omit to use the account default."
}
},
"required": [
"campaign_id"
],
"additionalProperties": false
}🟢search_leads(campaign_id, source, city, state, county, ...)
Search this account's leads by campaign/list, source, geography (city/state/county), lead type, tags, contact history (never_contacted / contacted_no_reply / replied) and SMS eligibility (textable phone, not opted out, not suppressed), with paging and a deterministic sort. Returns lead_id values plus masked contact details and per-lead eligibility flags. Read-only — SENDS NOTHING and changes nothing. This is the filter-rich sibling of list_leads (plain paging) and find_lead (locate one person); use the lead_ids it returns with add_leads_to_campaign, or let select_and_attach_leads run the same filters and attach a bounded subset in one step.
입력 스키마
{
"type": "object",
"properties": {
"campaign_id": {
"type": "string",
"description": "Only leads currently in this campaign/list (must be owned by this account)."
},
"source": {
"type": "string",
"description": "Exact source label, case-insensitive, e.g. 'PropStream export'."
},
"city": {
"type": "string",
"description": "Exact city, case-insensitive."
},
"state": {
"type": "string",
"description": "Exact state, case-insensitive, e.g. 'CA'."
},
"county": {
"type": "string",
"description": "Exact county, case-insensitive."
},
"lead_type": {
"type": "string",
"description": "Matches the lead's lead_type/investor_type field."
},
"investor_type": {
"type": "string",
"description": "Exact alias for lead_type — same field, same matching. Pass one or the other, not different values for both."
},
"tags": {
"type": "array",
"items": {
"type": "string"
},
"maxItems": 25,
"description": "Leads carrying ANY of these tags."
},
"status": {
"type": "string",
"description": "Lead status, e.g. 'new'."
},
"contact_status": {
"type": "string",
"enum": [
"never_contacted",
"contacted_no_reply",
"replied"
],
"description": "never_contacted = no opening SMS ever claimed for the lead and no reply on record."
},
"has_phone": {
"type": "boolean",
"description": "Filter on having any phone at all."
},
"sms_eligible": {
"type": "boolean",
"description": "Textable phone (cell, not landline-only), not opted out, not suppressed. Send-time compliance still re-checks."
},
"opted_out": {
"type": "boolean",
"description": "Lead flag OR suppression-list match (phone-format tolerant)."
},
"suppressed": {
"type": "boolean",
"description": "do-not-contact / unsubscribed."
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 200,
"description": "Page size, max 200. Default 25."
},
"offset": {
"type": "integer",
"minimum": 0
},
"sort": {
"type": "string",
"enum": [
"newest",
"oldest",
"score"
],
"description": "Deterministic orders (ties broken by id). Default 'newest'."
}
},
"additionalProperties": false
}🟡select_and_attach_leads(campaign_id, filters, requested_count, selection_strategy, idempotency_key)
Deterministically select up to requested_count SMS-eligible leads matching the same filters search_leads accepts (nested under 'filters') and attach them to a DRAFT campaign this account owns — the same membership move add_leads_to_campaign performs, driven by a filter instead of an id list. SENDS NOTHING and never launches. Opted-out and suppressed leads are never selected; leads already in the target are skipped. best_eligible orders by score (highest first) then newest, so the same request against the same data selects the same leads; the response lists the exact ids attached, the eligible total, and an honest shortfall when fewer matched than requested. Attaching to a reviewed campaign makes its earlier approval stale (the launch step recounts recipients and refuses a token approved for a smaller audience), so review_campaign_readiness must run again — and then STOP for the human operator.
입력 스키마
{
"type": "object",
"properties": {
"campaign_id": {
"type": "string",
"description": "The DRAFT campaign to attach to. Must be owned by this account and have status 'draft'."
},
"filters": {
"type": "object",
"description": "Same vocabulary as search_leads. filters.campaign_id = the source campaign/list to select FROM.",
"properties": {
"campaign_id": {
"type": "string",
"description": "Only leads currently in this campaign/list (must be owned by this account)."
},
"source": {
"type": "string",
"description": "Exact source label, case-insensitive, e.g. 'PropStream export'."
},
"city": {
"type": "string",
"description": "Exact city, case-insensitive."
},
"state": {
"type": "string",
"description": "Exact state, case-insensitive, e.g. 'CA'."
},
"county": {
"type": "string",
"description": "Exact county, case-insensitive."
},
"lead_type": {
"type": "string",
"description": "Matches the lead's lead_type/investor_type field."
},
"investor_type": {
"type": "string",
"description": "Exact alias for lead_type — same field, same matching. Pass one or the other, not different values for both."
},
"tags": {
"type": "array",
"items": {
"type": "string"
},
"maxItems": 25,
"description": "Leads carrying ANY of these tags."
},
"status": {
"type": "string",
"description": "Lead status, e.g. 'new'."
},
"contact_status": {
"type": "string",
"enum": [
"never_contacted",
"contacted_no_reply",
"replied"
],
"description": "never_contacted = no opening SMS ever claimed for the lead and no reply on record."
},
"has_phone": {
"type": "boolean",
"description": "Filter on having any phone at all."
},
"sms_eligible": {
"type": "boolean",
"description": "Textable phone (cell, not landline-only), not opted out, not suppressed. Send-time compliance still re-checks."
},
"opted_out": {
"type": "boolean",
"description": "Lead flag OR suppression-list match (phone-format tolerant)."
},
"suppressed": {
"type": "boolean",
"description": "do-not-contact / unsubscribed."
}
},
"additionalProperties": false
},
"requested_count": {
"type": "integer",
"minimum": 1,
"maximum": 500,
"description": "Exactly this many leads when enough are eligible; fewer (with an honest shortfall report) when not."
},
"selection_strategy": {
"type": "string",
"enum": [
"best_eligible"
],
"description": "Only 'best_eligible' (score desc, then newest; SMS-eligible only) is currently supported."
},
"idempotency_key": {
"type": "string",
"maxLength": 200,
"description": "Required. Retrying the same key returns the same selection instead of attaching twice; reusing it with different arguments is rejected."
}
},
"required": [
"campaign_id",
"requested_count",
"idempotency_key"
],
"additionalProperties": false
}🟡update_campaign_message(campaign_id, message, idempotency_key)
Rewrite the opening SMS of a campaign that is still a DRAFT. THIS SENDS NOTHING — it changes stored wording only, and it never launches or enqueues anything. DRAFT ONLY: a campaign that has already launched is refused, because editing it mid-send would tell one half of an audience something different from the other; clone it into a new draft instead. The replacement is held to the same rules as create_campaign_draft — 320 characters, and rejected if it implies a prior relationship or manufactures urgency. IT INVALIDATES PRIOR APPROVALS: any approval token issued before the edit stops working, because the launch check covers the message body. Run review_campaign_readiness again afterwards and get a fresh human approval before any launch.
입력 스키마
{
"type": "object",
"properties": {
"campaign_id": {
"type": "string",
"description": "The DRAFT campaign whose opening message should change. Must be owned by this account.",
"maxLength": 64
},
"message": {
"type": "string",
"description": "The replacement opening SMS, 320 characters or fewer. Say who is writing and why. Do not imply a prior conversation or a deadline. An opt-out line is appended automatically on first contact, so do not write one into the message.",
"maxLength": 320
},
"idempotency_key": {
"type": "string",
"description": "Recommended. Repeat a retried call safely — the same key with the same message replays the first result; the same key with a different message is refused.",
"maxLength": 120
}
},
"required": [
"campaign_id",
"message"
],
"additionalProperties": false
}커뮤니티
증거