Logo van Workflows Campaign Enrollment

Workflows Campaign Enrollment

Organisatie
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

Overzicht

Uitgeverclay-run
Repositoryagent-plugins
Skillnaamworkflows-campaign-enrollment
Sterren
145
Forks
24
Meegeleverde bestanden
Alleen instructies
Links
  • Instructies in Markdown

    Het model laadt het bestand SKILL.md alleen als dat nodig is. Dat kost dus alleen tokens als een verzoek daadwerkelijk bij de skill past.

  • Werkt met elk LLM

    AI-skills bestaan uit instructies in gewone Markdown, niet uit aanbiederspecifieke code. Daardoor werken ze met GPT, Claude, Gemini, Grok of een lokaal model.

  • Compleet zonder extra bestanden

    Alles wat het model nodig heeft, staat in de instructies — geen extra bestanden om te synchroniseren.

  • Open source

    Gepubliceerd door clay-run op GitHub. Bekijk de bronbestanden voordat je de skill installeert.

Installatie

Installeer de AI-skill Workflows Campaign Enrollment in TypingMind om deze met elk LLM te gebruiken, of voeg de skill toe aan een andere agent die SKILL.md kan lezen.

1

Installeren in TypingMind

TypingMind installeert een skill rechtstreeks vanuit de GitHub-map. De app leest SKILL.md, bundelt de bijbehorende bestanden en slaat het resultaat lokaal op.

  1. Open de app en ga naar Plug-ins → Skills.
  2. Kies "Installeren via GitHub".
  3. Plak de onderstaande URL van de skillmap en bevestig.
    https://github.com/clay-run/agent-plugins/tree/main/clay/skills/workflows-campaign-enrollment
  4. Schakel de skill in voor elke chat waarin je de skill wilt kunnen gebruiken.
Plug-ins → Skills → Skill toevoegen → Via GitHub-URL. Plak vervolgens de map-URL en druk op Doorgaan.
2

Installeren in een andere agent

Elke agent die het Agent Skills-formaat kan lezen, kan deze skill gebruiken — kopieer de map naar de skillmap van die agent.

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
Start Claude Code na het kopiëren opnieuw op, zodat de nieuwe skill wordt herkend.

Gebruik deze skill in TypingMind

Schakel Workflows Campaign Enrollment in voor een chat naar keuze in TypingMind en het model doet de rest. De naam en beschrijving staan in de systeemprompt. Zodra een verzoek bij de skill past, laadt het model zelf de volledige instructies. Je hoeft de skill nooit handmatig aan te roepen. Pas als het model de skill daadwerkelijk gebruikt, kost dat tokens.

Het model laadt Workflows Campaign Enrollment automatisch zodra een verzoek erbij past.

Werkt met elk AI-model

AI-skills zijn gewone Markdown-instructies in plaats van aanbiederspecifieke code. Daardoor is Workflows Campaign Enrollment niet gebonden aan het model waarvoor de skill is geschreven. Installeer de skill één keer in TypingMind en gebruik deze met GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama of een lokaal model dat je zelf draait — allemaal met je eigen API-sleutels.

  • Alleen geladen wanneer nodig

    De systeemprompt bevat alleen de naam en beschrijving. De instructies worden bij het eerste bijpassende verzoek opgehaald, dus een ongebruikte skill kost niets.

  • Wissel van model tijdens een chat

    Omdat de skill uit instructies bestaat en niet uit code, blijft deze werken als je van model wisselt — het volgende model leest hetzelfde SKILL.md-bestand.

Skillinstructies

Dit is de inhoud van SKILL.md die het model laadt. Lees deze vóór de installatie — een skill bestaat uit instructies die je model zal volgen.

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.

Veelgestelde vragen

Wat doet de AI-skill 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.

Waarom Workflows Campaign Enrollment gebruiken in TypingMind?

Omdat je deze skill één keer installeert en met elk model kunt gebruiken. Workflows Campaign Enrollment bestaat uit gewone Markdown in plaats van aanbiederspecifieke code. Dezelfde skill werkt dus met GPT-5, Claude, Gemini, Grok of een lokaal model. Ook als je midden in een chat van model wisselt, blijft de skill werken. TypingMind werkt met je eigen API-sleutels, dus je betaalt aanbieders rechtstreeks in plaats van een abonnement per gebruikersplek af te sluiten. Je skills en chats blijven in je eigen opslag.

Hoe installeer ik Workflows Campaign Enrollment in TypingMind?

Open Plug-ins → Skills → Installeren vanaf GitHub in TypingMind en plak https://github.com/clay-run/agent-plugins/tree/main/clay/skills/workflows-campaign-enrollment. TypingMind leest het bestand SKILL.md en installeert het als een skill die je per chat kunt inschakelen.

Welke AI-modellen kunnen Workflows Campaign Enrollment gebruiken?

Elk model dat je in TypingMind koppelt. AI-skills bestaan uit gewone Markdown-instructies in plaats van aanbiederspecifieke code. GPT, Claude, Gemini, Grok en lokale modellen kunnen deze skill dus allemaal laden wanneer een verzoek erbij past.

Hoeveel AI-modellen kan ik met Workflows Campaign Enrollment gebruiken?

Zoveel als je wilt. Je kunt Workflows Campaign Enrollment gebruiken met elk model dat skills ondersteunt, zoals GPT, Claude, Gemini, Grok, DeepSeek, Mistral of Llama. Allemaal in TypingMind met je eigen API-sleutels.

Is de AI-skill Workflows Campaign Enrollment gratis?

Deze skill is door clay-run op GitHub gepubliceerd. Bekijk de repository voor de licentievoorwaarden. Je betaalt alleen je eigen AI-aanbieder voor de tokens die je gebruikt.

Wat zijn AI-skills?

Een AI-skill is een herbruikbare bundel instructies die een AI-model leert hoe het één specifieke taak moet uitvoeren. De skill volgt het open Agent Skills-formaat: het bestand SKILL.md bevat de naam en beschrijving van de skill. Daarnaast kan de skill scripts, sjablonen of referentiebestanden bevatten die het model nodig heeft. Het model leest de instructies alleen als je verzoek bij de skill past. Een geïnstalleerde skill kost dus niets zolang deze niet wordt gebruikt.

Waarin verschillen AI-skills van plug-ins of MCP-servers?

Een plug-in of MCP-server geeft een model nieuwe tools om aan te roepen: code die ergens wordt uitgevoerd en een resultaat teruggeeft. Een AI-skill geeft het model juist kennis en een werkwijze: hoe het een taak moet aanpakken, welke stappen het moet volgen en hoe goede uitvoer eruitziet. Skills bestaan uit gewone Markdown en hebben dus geen server, API-sleutel of runtime nodig. Ze werken met elk model.

Bekijk alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇