AGENT SKILL

pm-campayn

Campayn 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-campayn
description
Campayn connector knowledge and safe action guide.

03 SKILL.md 正文

pm-campayn

Purpose

Reads and writes Campayn subscriber lists, signup forms, contacts, email campaigns, and calendar reports through the Campayn 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 (required)
  • mode
  • report_from
  • report_to
  • api_key (secret) (required)

ETL Streams

  • lists:
    • primary key: id
    • fields: contact_count(number), id(string), list_name(string), tags(string)
  • emails:
    • primary key: id
    • fields: id(string), name(string), percent_responses(number), percent_views(number), preview_thumb(string), preview_url(string), send_count(string), send_now(boolean), status(string), unique_responses(number), unique_views(number)
  • reports:
    • primary key: id
    • fields: id(string), name(string), preview_url(string), scheduled_date(string), status(string)
  • forms:
    • primary key: id
    • fields: contact_list_id(string), form_html(string), form_title(string), form_type(string), id(string), list_id(string), signup_count(string)
  • contacts:
    • primary key: id
    • fields: confirmed(string), email(string), first_name(string), id(string), image_url(string), last_name(string), list_id(string)

Sync Modes

  • ETL sync modes: full_refresh_append, full_refresh_overwrite

Reverse ETL Actions

  • add_contact:
    • endpoint: POST /lists/{{ record.list_id }}/contacts.json
    • required fields: list_id, email
    • risk: adds a new contact to a Campayn subscriber list; low-risk external mutation, no approval required
  • update_contact:
    • endpoint: PUT /contacts/{{ record.id }}.json
    • required fields: id
    • risk: replaces a contact's full field set (the upstream API's own docs warn any field not sent in the body is removed); external mutation, no approval required
  • unsubscribe_contact:
    • endpoint: POST /lists/{{ record.list_id }}/unsubscribe.json
    • required fields: list_id
    • risk: unsubscribes a contact from a list by id (single contact) or email (every contact on the list sharing that email address); the docs note neither path shows up in Reporting; low-risk external mutation, no approval required

Security

  • read risk: external Campayn API read of subscriber lists, campaigns, and reports
  • write risk: external mutation of Campayn contacts and list-subscription state (add contact, update contact, unsubscribe by id or email); no destructive delete endpoint is documented by the upstream API
  • approval: none; low-risk marketing-list mutations, no documented destructive writes
  • Never pass secret values in chat, shell arguments, logs, docs, or JSON output.

Commands

Inspect as a manual

pm connectors inspect campayn

Inspect as structured JSON

pm connectors inspect campayn --json

Agent Rules

  • Run pm connectors inspect campayn 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