Логотип Workflows Campaign Enrollment

Workflows Campaign Enrollment

Организация
clay-run
workflows-campaign-enrollment

Enrol Audiences people into a Clay campaign from a workflow step, using the "Enroll in campaign" action (`enroll-lead-in-sequence`). Use when a workflow should start emailing the people it just processed.

Add to TypingMind

Обзор

Издательclay-run
Репозиторийagent-plugins
Название навыкаworkflows-campaign-enrollment
Звёзды
145
Форки
24
Файлы в комплекте
Только инструкции
Ссылки
  • Инструкции в формате Markdown

    Модель загружает файл SKILL.md по мере необходимости, поэтому токены расходуются только при подходящем запросе.

  • Работает с любой большой языковой моделью

    Навыки ИИ — это обычный Markdown, а не код для конкретного поставщика, поэтому они работают с GPT, Claude, Gemini, Grok и локальными моделями.

  • Всё необходимое — в инструкциях

    Всё необходимое для модели содержится в инструкциях — никаких дополнительных файлов для синхронизации.

  • Открытый исходный код

    Издатель навыка на GitHub — clay-run. Перед установкой изучите исходные материалы.

Установка

Установите навык ИИ Workflows Campaign Enrollment в TypingMind, чтобы использовать его с любой LLM, или добавьте его в другой агент, который умеет читать SKILL.md.

1

Установка в TypingMind

TypingMind устанавливает навык прямо из его папки на GitHub: читает SKILL.md, собирает файлы ресурсов и сохраняет результат локально.

  1. Откройте приложение и перейдите в раздел «Плагины → Навыки».
  2. Выберите «Установить из GitHub».
  3. Вставьте указанную ниже ссылку на папку навыка и подтвердите установку.
    https://github.com/clay-run/agent-plugins/tree/main/clay/skills/workflows-campaign-enrollment
  4. Включите навык в каждом чате, где хотите его использовать.
Плагины → Навыки → Добавить навык → По ссылке GitHub, затем вставьте ссылку на папку и нажмите «Продолжить».
2

Установка в другом агенте

Любой агент с поддержкой формата Agent Skills может использовать этот навык — скопируйте папку в каталог навыков этого агента.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/clay-run/agent-plugins.git /tmp/agent-plugins
mkdir -p .claude/skills
cp -r /tmp/agent-plugins/clay/skills/workflows-campaign-enrollment .claude/skills/workflows-campaign-enrollment
После копирования перезапустите Claude Code, чтобы загрузить новый навык.

Использование в TypingMind

Включите навык Workflows Campaign Enrollment в любом чате TypingMind, и дальше модель всё сделает сама. Его название и описание хранятся в системном промпте, а при появлении подходящего запроса модель сама загружает полные инструкции. Вам не нужно вызывать навык вручную, и до фактического использования он не расходует токены.

Модель сама загружает навык Workflows Campaign Enrollment, как только появляется подходящий для него запрос.

Работает с любой моделью ИИ

Навыки ИИ — это обычные инструкции в Markdown, а не код для конкретного поставщика, поэтому навык Workflows Campaign Enrollment не привязан к модели, для которой он был создан. Установите его один раз в TypingMind и используйте с GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama или локальной моделью, которую запускаете самостоятельно, — со своими ключами API.

  • Загружается только при необходимости

    Системный промпт содержит только название и описание. Инструкции загружаются при первом подходящем запросе, поэтому неиспользуемый навык не расходует токены.

  • Меняйте модели прямо в чате

    Навык состоит из инструкций, а не кода, поэтому смена модели не нарушает его работу: новая модель читает тот же файл SKILL.md.

Инструкции навыка

Это содержимое файла SKILL.md, которое загружает модель. Прочитайте его перед установкой: навык — это инструкции, которым будет следовать ваша модель.

Enrolling people in a campaign from a workflow

If the action is absent from clay workflows actions list, this workspace does not have it — say so rather than trying to work around it.

How the Enroll in campaign action works as a workflow step. For the workflow mechanics this builds on (node creation, input mapping, $.result.* output paths), use the /workflows skill and its data-passing.md.

Everything else about campaigns — reading them, writing sequence copy, analytics, variants — lives behind clay campaigns, which is hidden in some products. Run clay campaigns --help before offering any of it, and point the user at the Campaigns UI when it is absent.

One run of this step enrols one Audiences person into one campaign. It confirms enrollment, not delivery: the email provider owns pacing from there.

A successful run sends a real email. Get the user's explicit confirmation before publishing or test-running a workflow that contains this step.

Attaching the action

  • actionKey: "enroll-lead-in-sequence"
  • actionPackageId: "b1ab3d5d-b0db-4b30-9251-3f32d8b103c1"

Two inputs, and they come from completely different places:

ParameterMappingWhere the value comes from
campaignIdstatic onlyclay workflows actions dynamic-fields (below)
entityIdreferencean upstream Audiences step's record id (below)

Outputs, all under $.result: enrollmentStatus ("enrolled" or "already_enrolled" — both are successes), campaignId, entityId, email, and entityResolution ("provided", "matched", or "created"). Only the first four are declared output parameters, so entityResolution is in the run result but never in clay workflows actions schema or a token picker.

campaignId must be a static value

The campaign is a fixed choice, not per-run data. A reference, item, llm, or map mapping is rejected with inputMappingConfig key "campaignId" must be a static value. Resolve a real id first:

bash
clay workflows actions dynamic-fields b1ab3d5d-b0db-4b30-9251-3f32d8b103c1 \
  enroll-lead-in-sequence campaignId --type select

That returns only campaigns that are active and take their leads from a workflow, so its output is the only safe source for this value. Do not pick an id out of clay campaigns list: most campaigns there draw leads from an audience instead, and pointing this step at one fails every run with campaign_not_workflow.

Two outcomes are blocking, not retryable — report them to the user rather than trying again:

  • Couldn't load campaigns. Try again. — the lookup itself failed.
  • No live campaigns take their leads from a workflow. Launch one to enroll. — the workspace has no eligible campaign, and this step cannot be configured at all until it does. Launching is not something any skill can do; the user has to do it in the Campaigns UI.

entityId is an Audiences record id

There are three supported ways to get one, and they answer different questions.

Per-run (the normal case): take it from an upstream Audiences step. Both upsert-audiences-record and update-audiences-record return the record they touched as entityId, so put one of them ahead of this step and wire its output through. /workflows's audiences.md covers configuring the upsert itself.

json
{
  "inputSchema": {
    "type": "object",
    "properties": {
      "record_id": {
        "type": "string",
        "sourceNodeId": "wfn_upsert",
        "sourcePath": "$.result.entityId"
      }
    }
  },
  "tools": [
    {
      "toolType": "clay_action",
      "actionKey": "enroll-lead-in-sequence",
      "actionPackageId": "b1ab3d5d-b0db-4b30-9251-3f32d8b103c1",
      "inputMappingConfig": {
        "campaignId": { "type": "static", "value": "<id from dynamic-fields>" },
        "entityId": { "type": "reference", "expression": "{{record_id}}" }
      }
    }
  ]
}

sourcePath must be $.result.entityId. $.result on its own passes the whole output object and fails with invalid_input — an enrich step's outputs sit under result, per /workflows's data-passing.md.

Looking a record up instead of writing one. Look up in Audiences (lookup-in-audiences) also carries the id, at $.result.records[0].fields.id. Use it when the person is already in Audiences and the workflow has no reason to write to them. Three differences from the upsert route, all of which bite:

  • It declares no output schema, so clay workflows actions schema returns an empty outputParameters and there is no field-level token to pick. Run the action once and read the path off .result before wiring it — see /workflows's data-passing.md.
  • It returns a list capped by limit, so you must index records[0]. A lookup that matches nothing returns an empty array, and the enrol step then fails invalid_input.
  • It cannot create anyone. If the workflow might be seeing a new person, use the upsert route — that is the difference that decides between them.

A fixed record (testing, or a workflow that always targets the same person): clay audiences records search-ids --entity-type people … returns matching ids; map one as a static value. This is wrong for a workflow meant to enrol whoever it just processed.

Before it will run

  • The campaign must be active. A paused or draft campaign rejects every enrollment.
  • The person needs an email address on their record, plus any field the campaign copy marks required.

A contact and an account created by the same upstream upsert are not yet linked in a way this step can read, so company tokens in the copy render blank on that first enrollment. Enrich or associate the account in an earlier run if the copy depends on it.

Failure codes

Every failure carries one of these codes, and the message alongside it is safe to relay verbatim. This is the whole set — a code outside it means the step failed before enrollment was attempted.

CodeMeans
contact_not_foundno such record, or it belongs to another workspace / is deleted
ambiguous_identitythe record could not be resolved to a single person
canonical_email_mismatchthe record has no usable email address
missing_required_fieldsthe record is missing data the campaign copy requires
campaign_not_activethe campaign is not active
campaign_not_workflowthat campaign takes its leads from an audience, not a workflow
campaign_not_foundthe campaign no longer exists
lead_in_cooldownenrolled in a related campaign too recently
cooldown_check_unavailablethe cooldown could not be checked
insufficient_creditsthe workspace is out of credits for this enrollment
snippet_generation_failedthe campaign's AI snippets could not be generated
provider_rejectedthe email provider refused this person (blocklist, unsubscribe)
invalid_inputusually a sourcePath that passed an object instead of the id
feature_disabledenrollment from workflows is off for this workspace
provider_result_indeterminatethe provider's answer could not be confirmed
enrollment_persistence_unavailablethe enrollment result could not be recorded
unexpected_erroran unhandled failure

provider_result_indeterminate and enrollment_persistence_unavailable mean the person may already be enrolled. Re-running the step can send a second email, so report them and let the user check the campaign rather than retrying.

Testing a step without enrolling anyone

clay campaigns variants send-test cannot preview a workflow-fed campaign — it looks for a preview lead in an audience, and these campaigns have none. Sending a test render of the copy is only possible from the step's own panel in the app today. Say so rather than sending a real enrollment to check the copy.

Часто задаваемые вопросы

Что делает навык ИИ Workflows Campaign Enrollment?

Enrol Audiences people into a Clay campaign from a workflow step, using the "Enroll in campaign" action (`enroll-lead-in-sequence`). Use when a workflow should start emailing the people it just processed.

Зачем использовать Workflows Campaign Enrollment в TypingMind?

Потому что вы устанавливаете навык один раз и используете его с любой моделью. Workflows Campaign Enrollment — это обычный текст в формате Markdown, а не код для конкретного поставщика, поэтому один и тот же навык работает с GPT-5, Claude, Gemini, Grok или локальной моделью. Вы можете менять модель прямо во время чата, и навык продолжит работать. TypingMind использует ваши собственные ключи API, поэтому вы платите поставщикам напрямую, а не оформляете подписку с оплатой за каждое место. Ваши навыки и чаты остаются в вашем собственном хранилище.

Как установить Workflows Campaign Enrollment в TypingMind?

В TypingMind откройте «Плагины → Навыки → Установить из GitHub» и вставьте https://github.com/clay-run/agent-plugins/tree/main/clay/skills/workflows-campaign-enrollment. TypingMind прочитает файл SKILL.md и установит навык, который можно включать отдельно для каждого чата.

Какие модели ИИ могут использовать Workflows Campaign Enrollment?

Любая модель, которую вы подключите в TypingMind. Навыки ИИ — это обычные инструкции в формате Markdown, а не код для конкретного поставщика, поэтому GPT, Claude, Gemini, Grok и локальные модели могут загружать этот навык, когда запрос ему соответствует.

Со сколькими моделями ИИ можно использовать Workflows Campaign Enrollment?

С любым количеством. В TypingMind вы можете использовать Workflows Campaign Enrollment с любой моделью, которая поддерживает навыки, в том числе с GPT, Claude, Gemini, Grok, DeepSeek, Mistral и Llama. Для этого вы используете собственные ключи API.

Бесплатен ли навык ИИ Workflows Campaign Enrollment?

Навык опубликован на GitHub. Издатель — clay-run. Условия лицензии можно найти в репозитории. Вы платите только своему поставщику ИИ за использованные токены.

Что такое навыки ИИ?

Навык ИИ — это набор инструкций, которыми модель ИИ может пользоваться каждый раз, когда ей нужно выполнить конкретную задачу. Он соответствует открытому формату Agent Skills: файл SKILL.md с названием и описанием, а также любые скрипты, шаблоны или справочные файлы, которые могут понадобиться модели. Модель читает инструкции, только когда ваш запрос соответствует навыку, поэтому установленный навык ничего не стоит, пока не используется.

Чем навыки ИИ отличаются от плагинов и серверов MCP?

Плагин или сервер MCP даёт модели новые инструменты, которые она может вызывать: при вызове где-то выполняется код и возвращает результат. Навык ИИ, напротив, даёт модели знания и описывает порядок действий: как подойти к задаче, какие шаги выполнить и каким должен быть хороший результат. Навыки — это обычный текст в формате Markdown, поэтому им не нужны сервер, ключ API или среда выполнения, и они работают с любой моделью.

Все

Создайте своё рабочее пространство с ИИ прямо сейчас

Подпишитесь на нашу рассылку, чтобы узнавать о новых функциях и предстоящих розыгрышах 👇