AGENT SKILL

pm-customerly

Customerly connector knowledge and safe action guide.

License 许可
AGPL-3.0
所属仓库
polymetrics-ai/cli
最近更新
2026-09-21
Stars
★ 7
Forks
0

01 前言 Front Matter

name
pm-customerly
description
Customerly connector knowledge and safe action guide.

02 资源文件 1

03 SKILL.md 正文

pm-customerly

Purpose

Reads Customerly users, leads, and accounts, and writes user/lead/tag/message/attribute/company mutations through the Customerly v1 REST API.

Icon

Capabilities

  • check=true catalog=true read=true write=true query=false
  • Integration type: api

Authentication

  • Use pm credentials add with --from-env or --value-stdin for secret fields.

Configuration

  • base_url
  • mode
  • page_size
  • api_key (secret) (required)

ETL Streams

  • users:
    • primary key: user_id, email
    • cursor: last_update
    • fields: city(string), country(string), create_date(string), crmhero_user_id(string), email(string), first_seen_at(string), last_activity(string), last_update(string), name(string), role(string), sub_active(boolean), sub_status(string), timezone(string), user_id(integer), username(string)
  • leads:
    • primary key: crmhero_user_id
    • cursor: last_update
    • fields: city(string), country(string), create_date(string), crmhero_user_id(string), email(string), last_update(string), name(string), role(string), sub_active(boolean), sub_status(string), timezone(string), username(string)
  • accounts:
    • primary key: account_id
    • fields: account_id(integer), email(string)

Sync Modes

  • ETL sync modes: full_refresh_append, full_refresh_overwrite, full_refresh_overwrite_deduped

Reverse ETL Actions

  • delete_user:
    • endpoint: DELETE /users?user_id={{ record.user_id }}
    • required fields: user_id
    • risk: external mutation; irreversibly deletes a live Customerly user and every conversation/survey/campaign record tied to them; approval required
  • delete_lead:
    • endpoint: DELETE /leads?email={{ record.email }}
    • required fields: email
    • risk: external mutation; irreversibly deletes a live Customerly lead and every associated record; approval required
  • unsubscribe_user:
    • endpoint: POST /users/unsubscribe/{{ record.user_id }}
    • required fields: user_id
    • risk: external mutation; unsubscribes a live user from Customerly messaging; approval required
  • add_tag:
    • endpoint: POST /tags
    • required fields: tag
    • risk: external mutation; adds or removes a tag on one or more live users/leads
  • delete_tag:
    • endpoint: DELETE /tags
    • required fields: tag
    • risk: external mutation; permanently removes a tag definition from the app; it is un-applied from every contact that carried it; approval required
  • send_message:
    • endpoint: POST /messages
    • required fields: from, to, content
    • risk: sends a user-visible message from Customerly on the sender's behalf; may notify the recipient
  • add_user_attributes:
    • endpoint: POST /users/add-attributes/{{ record.user_id }}
    • required fields: user_id, attributes
    • risk: external mutation; adds/overwrites custom attribute values on a live user
  • add_company_attributes:
    • endpoint: POST /company/add-attributes/{{ record.company_id }}
    • required fields: company_id
    • risk: external mutation; adds/overwrites custom attribute values (and optionally renames) a live company
  • add_user_to_company:
    • endpoint: POST /users/add-to-company
    • required fields: company_id
    • risk: external mutation; links a live user to a company, creating the company if it does not already exist

Security

  • read risk: external Customerly API read of user, lead, and account contact data
  • write risk: external mutation of live Customerly users/leads/tags/messages/attributes/companies, including irreversible user and lead deletion; approval required
  • approval: read: none; write: required
  • Never pass secret values in chat, shell arguments, logs, docs, or JSON output.

Commands

Inspect as a manual

pm connectors inspect customerly

Inspect as structured JSON

pm connectors inspect customerly --json

Agent Rules

  • Run pm connectors inspect customerly before creating credentials or plans.
  • Use --json only when the caller needs structured output; use the manual for human-readable guidance.
  • Never ask the user to paste secret values into chat.
  • For reverse ETL writes, create a plan, show the preview, wait for explicit approval, then run with the approval token.

04 同仓库更多 Skills