# Enrollment (/workflows/enrollment)

*Workflows*

**Enrollment** decides **who each workflow run is for** — which active trumpet user trumpet runs the steps as. It is separate from the **trigger**, which is what started the automation (a HubSpot deal, a buyer signal, an API call, and so on).

Configure enrollment with the **Enrollment** control on the workflow canvas. Brand admins can change it. The workflow must be **enabled** before anything runs. New workflows default to **For me** (the creator).

### What enrollment is [#what-enrollment-is]

Enrollment is the **audience** for a workflow: the trumpet users who can receive a run when the trigger fires.

An **enrolled user** is a real, active member of your brand in trumpet. It is **not**:

- A HubSpot or Gong contact
- A buyer or prospect
- Someone defined only in your API payload

When a trigger fires, trumpet resolves that audience, then starts **one run per enrolled user** who remains after any trigger-specific rules (described below). Each run uses that person’s identity for permissions, email steps, and values such as `user.email` in input mappings.

<Callout type="info" title="Trigger vs enrollment">
The trigger answers **what happened**. Enrollment answers **as whom** trumpet should act. HubSpot, Gong, and trumpet signals are brand-level events; enrollment narrows who actually gets a run.
</Callout>

### Choose who it runs for [#choose-who-it-runs-for]

| Setting | Who is enrolled |
|--------|-----------------|
| **For me** | One trumpet user — usually you. Can also be a dedicated **service account** user when you want a single actor for company automation. |
| **Specific teams** | Everyone on the teams you select. |
| **Entire brand** | Every active user in the company, including people added later. |

Only **active** brand members count toward enrollment. Pending invites are excluded.

**For me** and a **service account:** trumpet does not ship a separate “bot” user type. A service account is a normal brand user you create for automation (for example `automation@yourcompany.com`). Set enrollment to **For me** with that user selected so each trigger produces **one run**, attributed to that account in history, Pod ownership, and permissions. Use this when you want something to happen **once** for the company — not once per teammate.

**Entire brand** is different: one event can start **one run per enrolled user**. Use it when each person should run their own copy of the workflow, not when you want a single company-wide action.

### What happens when it fires [#what-happens-when-it-fires]

```text
Trigger fires → resolve enrolled users → optional owner match → one run per remaining user
```

For **For me** and **Specific teams**, many triggers **owner-match**: a run starts only for the enrolled user tied to that event. If nobody matches, or the event has no owner, trumpet **does not start a run** — you will not see a completed empty run in history for that person. **Entire brand** skips owner matching, so each enrolled user can get a run for the same event.

HubSpot is a common example:

| Enrollment | HubSpot deal events |
|--------------|---------------------|
| **For me** / **Specific teams** | Deal **owner email** must match the enrolled user’s trumpet email — run only for that owner |
| **Entire brand** | One run per enrolled user (no owner filter at dispatch) |

Gong, trumpet **signals**, and other integration triggers that owner-match follow the same enrollment rules; see each trigger’s catalog page for which field is compared. **API called** and **Salesforce Flow** do not owner-match — enrollment alone decides who runs.

<Callout type="warn" title="HubSpot owner email must match">
The deal **owner email** must match the enrolled user’s trumpet login email. If HubSpot uses a different address, fix the owner in HubSpot or align the trumpet account before you expect runs to start.
</Callout>

You do **not** need a Conditional step that compares the enrolled user to the event owner on owner-matched triggers when enrollment is **For me** or **Specific teams** — trumpet already applies that rule at dispatch. Do use conditionals for **business rules** (deal stage, template, custom fields, and so on).

The [Run workflow](/api/run-workflow) API does not pick the user in the request body. **Enrollment** alone decides who runs (and how many runs `enrolledUserCount` reports).

### Which enrollment should I pick? [#which-enrollment-should-i-pick]

- **Personal playbook** (my deals, my Pods, my follow-ups) → **For me** (yourself).
- **Each AE on a sales team, only on their own HubSpot deals** → **Specific teams** + HubSpot or Gong.
- **One company action** (one webhook, one Pod created as automation, one shared integration identity) → **For me** as a **service account**, not Entire brand.
- **Every teammate should execute the workflow on the same event** → **Entire brand**, and add your own conditionals so you do not spam the whole company.

<Callout type="idea" title="Customer success watching every deal">
**Specific teams** on HubSpot still owner-matches: only the deal owner on that team gets a run. If CS needs **every** deal regardless of owner, use **Entire brand** (with conditionals) or a **service account** pattern on triggers that do not owner-match (API / Salesforce).
</Callout>

### Use cases [#use-cases]

#### Create a Pod when my HubSpot deal is created [#create-a-pod-when-my-hubspot-deal-is-created]

*Audience:* Sales

Set **For me** and the [HubSpot deal created](/catalog/triggers/hubspot-deal-created) trigger. When you are the deal owner in HubSpot, trumpet starts one run as you. Steps such as create Pod from template can use the enrolled user as Pod owner. Do not add an owner-match Conditional — dispatch already limits runs to your deals.

#### Update my Pod when my deal stage changes [#update-my-pod-when-my-deal-stage-changes]

*Audience:* Sales

**For me** + [HubSpot deal property changed](/catalog/triggers/hubspot-deal-property_changed). Add a **Conditional** on properties that matter to you (for example deal stage equals Closed Won). Owner matching still applies only at dispatch.

#### After my Gong call, follow up on my Pod [#after-my-gong-call-follow-up-on-my-pod]

*Audience:* Sales

**For me** + [Gong call completed](/catalog/triggers/gong-call-completed). Runs when your Gong user email matches your trumpet email and you are the call owner.

#### Email me when a buyer views my Pod [#email-me-when-a-buyer-views-my-pod]

*Audience:* Sales, customer success

**For me** + [Page viewed](/catalog/triggers/signal-page-viewed). Runs when you are the Pod owner for that signal.

#### Sales team only gets their own deals [#sales-team-only-gets-their-own-deals]

*Audience:* Sales managers, RevOps

**Specific teams** (your AE team) + HubSpot. Each teammate gets a run only when they are the deal owner. Teammates who are not the owner get no run for that deal.

#### Run once for the whole brand (service account) [#run-once-for-the-whole-brand-service-account]

*Audience:* RevOps, admins

1. Create a dedicated trumpet user (for example `automation@yourcompany.com`) with the access your steps need.
2. Build the workflow with **For me** set to that user (or create and configure the workflow while signed in as that user).
3. Enable the workflow.

One trigger → **one run**, attributed to the service account in history and in actions such as Pod updates.

<Callout type="warn" title="Service accounts and owner-matched triggers">
**For me** still owner-matches on HubSpot, Gong, and signals. A service account only receives those events when it is the deal owner, call owner, or Pod owner. For “run once on every company event regardless of owner,” prefer [API called](/catalog/triggers/trumpet-api-called) or [Salesforce Flow called](/catalog/triggers/salesforce-flow-called) with **For me** on the service account, or use **Entire brand** when each teammate should actually run the workflow.
</Callout>

This is not the same as **Entire brand**, which fans out to every teammate.

#### Every teammate should react to the same company event [#every-teammate-should-react-to-the-same-company-event]

*Audience:* Leaders, enablement

**Entire brand** + HubSpot, Gong, or a signal + your own **Conditionals** (stage, template page, and so on). There is no owner filter at dispatch — each active user gets a run. Use this when everyone should do something, not when you want a single shared action.

#### Start a run from your stack [#start-a-run-from-your-stack]

*Audience:* Engineering, RevOps

Use [API called](/catalog/triggers/trumpet-api-called) or [Salesforce Flow called](/catalog/triggers/salesforce-flow-called). See [Run workflow](/api/run-workflow). The `data` payload does not select which trumpet user runs; enrollment does. Pair **For me** with a service account when the caller is a shared integration rather than a specific AE.

### If nothing ran [#if-nothing-ran]

| Symptom | Things to check |
|--------|------------------|
| No runs at all | Workflow is **enabled**; enrollment is fully configured (for example at least one team selected for **Specific teams**). |
| HubSpot / Gong never fires for you | **For me** or **Specific teams**: you are not the deal or call owner, or owner email ≠ your trumpet email. |
| Signal never fires for you | You are not the **Pod owner** on **For me** / **Specific teams**. |
| API returns an error | `422` — **Workflow enrollment is not configured** (no runnable users after resolving enrollment). See [Run workflow](/api/run-workflow). |
| Expected a single company run | You may have chosen **Entire brand** instead of **For me** (service account). |

### Related [#related]

<Cards>
<Card title="Workflows overview" href="/workflows/overview">
Triggers, steps, and the workflow catalog.
</Card>

<Card title="Run workflow API" href="/api/run-workflow">
Start an API or Salesforce-triggered workflow from your stack.
</Card>

<Card title="HubSpot deal created" href="/catalog/triggers/hubspot-deal-created">
Trigger reference for deal-created automations.
</Card>

<Card title="Trumpet signals" href="/catalog/triggers/signal-page-viewed">
Buyer actions in a Pod that can start a workflow.
</Card>
</Cards>