# Narrow the trigger, or stop the run early Many findings end with "this automation should only run for X": only ICP companies, only pricing pages, only stage changes, only senior hires. There are three places to put X, and they save different things. | Where | What it saves | When to use it | |---|---|---| | A trigger setting (a list, a filter, a mode) | The whole run and the trigger fee. The run never starts. | The trigger has a setting that can express X. | | The prose filter on a signal watch: `eventCriteria` on a business event, `changeFilter` on a website change | The whole run and the fee. Swan judges each event against the sentence before a run starts; a miss costs nothing. | X is about what the event says: the role, the seniority, the department, the round size, the kind of page change. | | A stop at the top of the automation body | Everything after the stop: lookups, research, writes, posts and long reads. The fee and the first read are still paid. | Nothing above can express X. | Before you write "limit the trigger to X", find X in the table below. If X is not there, the change is a stop in the body. Never propose a setting that the trigger does not have, and never tell the team that a body stop removes the fee. ## What the prose filter can judge The prose filter is the strongest narrowing tool Swan has, and the most often left empty. Every business-event and website-change watch should have one (checks C4 and C5). It has limits: - It reads only the event: its name, headline, summary and details, and the company's domain. It does not read the Swan record, the CRM or the web. "Only companies over 200 employees" or "only our ICP" in the criteria cannot be judged. - A condition that needs a detail the event leaves out counts as met. "Only rounds above $20M" lets through a round with no amount. - When the judge cannot answer, the event runs. The filter never loses an event. So split each rule by what it is about: | The rule is about | Where it goes | |---|---| | The event: role, seniority, department, round, amount, kind of change, page | `eventCriteria` or `changeFilter`, one or two plain sentences | | The company, when it is already in Swan: size, revenue, owner, funnel stage, market, tag | `companyFilters` on the watch (they only narrow companies Swan already has) | | The relationship: customer, open deal, recent outreach, competitor | A stop at the top of the body, from the Swan record or the CRM | | Anything the event leaves out and the record does not hold | A stop at the top of the body; never a paid lookup before it | Good criteria: "A sales or marketing leadership hire (VP, head or director), or 2 or more sales roles opening at once. Ignore junior roles and internships." Bad criteria: "Only ICP companies that would buy from us." The judge cannot see the ICP, so nearly every event passes. ## What each trigger can filter before the run Read the live settings in the automation's frontmatter and in `/agents/automation-schemas/` before you write. Field names there win over this page. | Trigger | Settings that narrow before the run | What no setting can do | |---|---|---| | Website visitor | `identificationMode: ONLY_CONTACTS` (named people only; company-only matches never start a run), `allowedCountryCodes`, `excludedPaths` (pages the tracker does not track), `minimumSessionTimeSec`, `excludeLists` (HubSpot lists), `dailyLimit`. A second visit from the same company or person within 20 minutes does not start a run. These settings live on the org's tracking script, not on one automation | Company size, industry, revenue, ICP fit, target market, buyer title, "only pricing or docs pages", "not seen in the last 30 days", referrer or ad source. No target-market gate exists: in the last 30 days, no visit in any org was skipped for target market | | Business event | `eventTypes`, the companies (`domains`, `hubspotLists`, `companyFilters` on size, revenue, owner, funnel stage, market, tag), and `eventCriteria` in prose, judged on the event before the fee | Company facts inside the criteria; facts about companies not in Swan yet; the relationship (customer, open deal) | | Website change | `domains`, `hubspotLists`, `companyFilters`, `cronSchedule`, and `changeFilter` in prose, judged on the change before a run starts | Company facts inside the filter; the relationship | | LinkedIn engagement | The tracked profiles and pages, `maxComments`, `maxReactions` | Who the engager is: title, company, employee of a competitor or of the team | | CRM workflow (HubSpot) | The workflow's enrollment filters, set in HubSpot | Anything the CRM cannot filter on | | Integration event | `eventFilter`: conditions on the event's own fields (equals, in a set, contains, starts or ends with, greater or less than, exists) | Facts that are not in the event's fields | | Message received | `mode` (which replies start a run) | The content of the reply | | Webhook, form | Nothing in Swan. Filter at the sender | Everything | | Schedule | `cronSchedule` only | The run decides what it works on | When most runs end on a condition that no setting can express and the trigger charges a fee, the fee stays after the fix. Say so with the number, put the stop in the body, and report the missing setting to Swan as a product gap. ## How to write the stop A run reads its system prompt, the agent file and the whole automation body before it does anything. Swan's runs are also told to collect context before they act. A stop works only when the body says, before anything else, what to check and that the run ends there. 1. Put the stop as the first section of the body, under a heading such as "Stop first". 2. Check only what the run already has, in order of cost: 1. The event itself. For a website visitor: the pages and their titles (up to 15), the page count, the referrer, UTM parameters, the country, the company name and domain, and the person's name, role, email and LinkedIn when the person is known. 2. The Swan record of the company or contact: one read, never a search across the brain. 3. The CRM record, when the stop is about owner, stage or customer status. 4. Never a paid lookup, enrichment or web research before the stop. 3. Write each condition as a test on a named fact: "the visitor's pages include /pricing or /docs", "the company record shows more than 200 employees". When the fact is missing, say what the run does: stop, or continue to the next check. Do not let the run look it up. 4. Say what the run does when it stops: nothing else. No note, no CRM write, no Slack post, no memory write, no ticket. It closes with a one-line reason, such as "stopped: careers page only". 5. Put the long method after the stop, or better, in a skill the run opens only when it passes the stop. On data-and-intelligence pricing, every character the run reads costs credits, so a short body is part of the stop. 6. Keep the stop identical in meaning when you move it. A stop moves; it never weakens. Example for a website visitor automation: ``` ## Stop first Check these in order, using only this visit and the company's Swan record. Stop at the first miss. Do not research, enrich, write, post or open a ticket for a visit that stops. 1. The pages include /pricing, /docs or /demo. Otherwise stop: "no buying page". 2. The domain is not a personal email domain, a university or a school. Otherwise stop: "not a company". 3. The company record is not a customer and not a partner. Otherwise stop: "existing relationship". 4. If the record shows the headcount, it is 50 or more. Otherwise stop: "under 50 employees". If the headcount is missing, continue. When a check stops the run, close it with the reason and nothing else. ## Then Open the skill "Website visitor play" and follow it. ``` ## How to say it on the proposal page | The finding | Write | Never write | |---|---|---| | A setting exists | "Turn on named visitors only: 5,841 company-only visits stop before they start." | | | No setting exists | "Add a stop at the top of the automation: visits from companies outside your markets end before any lookup. The 2-credit visit fee stays." | "Fire the trigger only for your target markets." "Limit the trigger to companies over 2,000 employees." | | Both | Name the setting first, then the stop, with the credits each one saves. | | Count the savings honestly. A setting saves the fee plus the average cost of a discarded run. A stop saves the average cost of a discarded run minus what the run still pays to read up to the stop: the fee, and on data-and-intelligence pricing about 1 credit per 5,000 characters read.