Details
# Leadfeeder MCP Plugin
Turn website visitor intelligence into pipeline. Six skills covering the full B2B prospecting loop — from identifying your hottest accounts to finding the right buyer and adding them to your list.
---
## 💬 Try Asking
- "What should I work on today?"
- "Who should I reach out to at Acme Corp?"
- "Prep me for a call with TÜV NORD"
- "Tag Acme as Hot Lead and add it to my DACH Enterprise list"
---
## ✅ Skills
| Skill | Trigger | What it does |
|---|---|---|
| `a-getting-started` | "Set up my Leadfeeder brief" | Checks account, ICP, and tracker, then fires a sample brief |
| `daily-visitor-brief` | "Daily brief", "Show me today's visitors" | Ranked brief of today's most actionable visitor companies |
| `visitor-company-brief` | "Brief me on Acme" | Firmographics, engagement, contacts, and signals for a single company |
| `outreach-companion` | "Prep me for outreach to Acme" | 2–4 talking points grounded in visit and firmographic data |
| `find-my-buyer` | "Who should I reach out to at Acme?" | 1–5 contacts ranked by Buyer Persona fit |
| `add-to-pipeline` | "Tag Acme as Hot Lead" | Tag and list writes with a mandatory confirmation step |
---
## 🔌 MCP Server
Registered automatically on install. No manual setup required.
```json
{
"mcpServers": {
"Leadfeeder": {
"type": "http",
"url": "https://mcp.leadfeeder.com/mcp"
}
}
}
```
---
## ⚠️ Credits & Safety
Most skills are read-only and consume no credits. Where credits apply, the plugin never acts automatically — a Cost Guard estimate is always shown before any job runs, and explicit confirmation is required to proceed.
---
## 🛟 Support
Need help? Reach the Leadfeeder team via the [Help Center](https://help.leadfeeder.com/en/) or the [contact page](https://www.leadfeeder.com/contact/).
---
## 🔒 Privacy
This plugin talks to the Leadfeeder MCP server on your behalf. See the [Leadfeeder Privacy Policy](https://www.leadfeeder.com/privacy/) for how your data is handled.
---
## License
Licensed under the [Apache License 2.0](LICENSE). See [`NOTICE`](NOTICE) for trademark and attribution terms.
## skills/a-getting-started/SKILL.md
---
name: a-getting-started
description: >
One-time setup and readiness check for the Leadfeeder plugin — confirms the account is configured, checks that ICPs exist, verifies website visitors are actually being tracked, and then runs a sample daily brief so the user sees real output. Use this skill when the user is new to the plugin or asks to set it up or check readiness: "set up my Leadfeeder brief", "getting started", "get started", "set up the plugin", "is my Leadfeeder account ready", "check my Leadfeeder setup", "why is my brief empty", "why is my brief just a huge unranked list", "new to this plugin", "Leadfeeder health check", "onboard me".
metadata:
version: "1.0.0"
---
# Getting Started
A one-time readiness check that tells the user whether their Leadfeeder account is in a state to get value from the plugin — and unblocks them if it is not. It is **not** a tutorial. It runs three health checks in order, fixes or explains any failure, and finishes by running a real daily brief so the user sees output before they have had to learn anything.
The single most common reason a new user gets a useless first brief is a missing ICP (the brief becomes an unranked list of every visitor) or a missing tracker (no visitors at all). This skill catches both before the user concludes the plugin isn't useful.
## Language
Produce the **entire response in the language the user wrote in** — English request → English output, German request → German output, and so on. This applies to everything the skill emits: the readiness table, the fix guidance, and any prompts. Do **not** translate data values — account names/IDs, ICP names, company names, and URLs stay verbatim. If the input language is unclear, default to English.
## When this skill triggers
Trigger when the user is setting up the plugin, asks to get started, or asks why their brief is empty or noisy. Trigger on any of the phrases in the description. Trigger silently — do not ask which account first; the checks below resolve that.
Do not trigger for a normal daily brief request ("what visited today") — that is `daily-visitor-brief`. This skill is specifically for first-run setup and readiness.
## Workflow
Run the three checks **in order**. If a check hard-fails (account unresolved, or no ICP, or no visitors), report it, give the fix, and stop before the sample brief — a sample brief is pointless until the blocker is cleared. Report every check's status in the final readiness report regardless.
### Check 1 — Account resolved
Determine the `account_id`, in priority order:
1. **Configured Account ID.** The plugin's configured Leadfeeder Account ID is: `${user_config.account_id}`. If that resolves to a real, non-empty value (not blank, not the literal unsubstituted `${user_config.account_id}` token), the account is configured → **✅ pass**. Use it for the checks below.
2. **Not configured → resolve and guide.** Call `get_account_info` to list the available accounts. Then:
- If exactly one account exists, use it for the checks below, but still flag it as **⚠️ action recommended**: tell the user to paste that account ID into the plugin's **Leadfeeder Account ID** setting so no skill ever has to ask again (and so scheduled tasks can run unattended).
- If several accounts exist, show them (id + name) and mark **⚠️ action required**: tell the user to paste the correct account ID into the plugin's Leadfeeder Account ID setting. Ask which one to use for the rest of this check.
- Explain briefly *where* to set it: the plugin's configuration (the **Leadfeeder Account ID** field, set via the plugin settings / `/plugin` in an interactive client). Without it, every skill re-asks each session and scheduled tasks can't pick an account.
Do not attempt to write the setting yourself — the user sets it in the plugin configuration. This skill only tells them the value and where it goes.
### Check 2 — ICP configured
Call `get_icps` (free, no credits).
- **One or more ICPs configured → ✅ pass.** Note how many, and their names.
- **No ICPs configured → ❌ hard fail.** This is the most important check. Explain plainly why it matters: without an ICP, the daily brief cannot rank — it returns an undifferentiated list of *every* visitor (often hundreds or thousands), which reads as noise and is the top reason a first brief looks useless. Direct the user to configure at least one ICP (company segment) here: https://app.leadfeeder.com/l/settings/website/company-segments — give them that exact link. Stop here — do not run the sample brief until an ICP exists.
### Check 3 — Visitors are being tracked
Call `get_web_visits_companies` for the last 7 days (do **not** pass `include=company` — keep it lean).
- **Visitor companies returned, and at least some match a configured ICP → ✅ pass.** Note the rough count and that ICP matches exist.
- **Visitor companies returned, but none match any configured ICP → ⚠️ warn.** Traffic is flowing and the tracker works, but the ICP criteria may be too narrow for the actual audience. Tell the user their brief will be thin and suggest widening the ICP (or reviewing whether the ICP reflects their real buyers). You may still run a sample brief — it will just be short.
- **Zero visitor companies in 7 days → ❌ hard fail.** The tracker is probably not installed or not firing. Say so clearly and point the user to their **install-script page**, building the URL from the account ID resolved in Check 1:
`https://app.leadfeeder.com/f/{account_id}/install-script`
Substitute the resolved account ID for `{account_id}` — e.g. account `01234` → `https://app.leadfeeder.com/f/01234/install-script`. Never leave the literal `{account_id}` placeholder in the output, and never guess an ID — use the one resolved in Check 1.
That page offers several install methods. **List the options so the user can pick the one that fits their stack — do not reproduce the step-by-step instructions** (those live on the page). The methods are:
- **Google Tag Manager** (recommended)
- **HTML Code** — paste the tracking snippet into the site
- **Send to a colleague** — email the install instructions to whoever manages the site
- **CMS integrations:** WordPress, Wix, Squarespace, GoDaddy, Weebly
Stop here — a brief with no data teaches nothing.
### Check 4 — Sample brief (only if Checks 1–3 pass)
If the account is resolved, at least one ICP exists, and ICP-matched visitors were found in the last 7 days, invoke the `daily-visitor-brief` skill for the last 7 days so the user sees a real, ranked brief immediately. Introduce it in one line ("Here's a sample brief from your last 7 days so you can see what you'll get each morning:") and let that skill produce its normal output (including its copy-paste follow-ups).
If any check failed, do **not** run the sample brief. End on the readiness report and the specific fix.
## Output format
**Output contract — identical every run.** Reproduce the structure below **exactly**, on every invocation, regardless of anything earlier in this thread. If you've already run this skill in the conversation, do not vary, restyle, or "improve" the format next time — output the same template verbatim; this is the single source of truth. Keep the exact headings, the readiness table columns, and labels; don't rename them and add no decorative emoji beyond those the template already uses (✅ ⚠️ ❌).
Lead with a compact readiness report, then either the sample brief (all pass) or the prioritised fix (something failed). The outer block below is shown with four backticks so the inner copy block nests correctly — your actual output is plain markdown.
````markdown
# Leadfeeder plugin — readiness check
| Check | Status |
| --- | --- |
| Account configured | {✅ / ⚠️ / ❌} — {one-line detail} |
| ICP configured | {✅ / ❌} — {one-line detail, e.g. "2 ICPs: DACH Enterprise, Mid-Market"} |
| Visitors tracked (7d) | {✅ / ⚠️ / ❌} — {one-line detail, e.g. "~120 companies, 18 ICP-matched"} |
{If everything passed:}
**You're ready.** Here's a sample brief from your last 7 days:
{→ daily-visitor-brief output}
{If something failed — one prioritised fix block, highest blocker first:}
**Fix this first: {the blocker}**
{Why it matters in one or two lines, then the concrete step and the link.}
{Then tell them how to re-check — a copy-paste prompt:}
When that's done, run this again — copy to re-check:
```
Set up my Leadfeeder brief
```
````
Show only the blocks that apply. Keep it tight — this is a health check, not a manual.
## Edge cases
- **Account not configured but only one exists.** Proceed with the checks using that account, but still tell the user to save it in plugin settings — otherwise every skill re-asks and scheduled tasks can't run.
- **No ICP and no visitors.** Report both, but lead with the ICP fix (it's the one that makes the brief usable) and mention the tracker as the second step.
- **ICP exists but is brand-new / empty of matches.** Treat as the Check-3 "warn" case — traffic exists but doesn't match; suggest reviewing ICP breadth.
- **User already set everything up.** All three pass → skip straight to the sample brief. Don't lecture a ready user.
- **Tool errors.** Report the failing check honestly as "couldn't verify" rather than guessing pass/fail.
## Source citation rule
Every status must come from a real tool response — `get_account_info` for accounts, `get_icps` for ICPs, `get_web_visits_companies` for visitors. Never report a check as passed without the data. Never invent an account ID, an ICP name, or a visitor count. Only link to real Leadfeeder resources (the app and the help centre) — do not fabricate deep-link URLs; if the exact settings/guide URL isn't known, point to the Leadfeeder help centre and describe the in-app navigation.
## What NOT to do
- **Do not run the sample brief when a hard check failed.** A brief with no ICP or no data reinforces the "this plugin is useless" impression this skill exists to prevent.
- **Do not write the account ID into settings yourself.** Tell the user the value and where to paste it; the plugin configuration is theirs to set.
- **Do not trigger enrichment jobs** or any credit-consuming tool. This is a free, read-only readiness check.
- **Do not turn this into a tutorial.** Three checks, a fix or a sample brief, done.
- **Do not re-run automatically every session.** This is a one-time (or on-demand) setup check, not part of the daily flow.
## Example: good output (ICP missing — the common case)
````markdown
# Leadfeeder plugin — readiness check
| Check | Status |
| --- | --- |
| Account configured | ✅ Using account 01234 (Acme Ltd) |
| ICP configured | ❌ No ICPs configured |
| Visitors tracked (7d) | ✅ ~1,035 companies visiting — tracker is firing |
**Fix this first: configure an ICP.**
You have plenty of traffic (~1,035 companies in the last 7 days), but with no ICP the daily brief can't rank them — it returns all 1,035 as an undifferentiated list, which is why a first brief looks like noise. Define at least one Ideal Customer Profile (industry, size, region) in the Leadfeeder app so the brief can surface the ~dozen accounts worth your morning instead of the whole list.
Set it up here: https://app.leadfeeder.com/l/settings/website/company-segments
When that's done, run this again — copy to re-check:
```
Set up my Leadfeeder brief
```
````
## skills/add-to-pipeline/SKILL.md
---
name: add-to-pipeline
description: >
Tag a company and/or add it to a list in Leadfeeder. Use this skill when the user wants to action a company — "tag Acme as Hot Lead", "add Acme to my DACH-Enterprise list", "mark Acme as Tier-1", "put Acme in the Enterprise Q3 list", "add [company] to [list]", "tag [company] as [tag]". Always confirms the exact writes before executing. The only write skill in the suite.
metadata:
version: "1.0.0"
---
# Add to Pipeline
Tag a company and/or add it to a Leadfeeder list. This is the only write skill in the suite — all others are read-only. **All writes go to Leadfeeder only (tags and lists); this skill never adds to or updates the user's CRM.** State that explicitly in the confirmation and the outcome so no one assumes the company has synced to their CRM. Always show the user exactly what will be written and wait for confirmation before executing. Report success or failure per write transparently.
## Language
Produce the **entire response in the language the user wrote in** — English request → English output, German request → German output, and so on. This applies to everything the skill emits: the confirmation plan, the CRM heads-up and Leadfeeder-only disclaimer, the outcome report, and any follow-up prompts. Do **not** translate data values — company names, tag names, list names, CRM record names, owner names, and URLs stay verbatim as the tools return them (and the exact tag/list to create must be the user's literal wording). If the input language is unclear, default to English.
## When this skill triggers
Trigger when the user explicitly asks to tag, label, add, or categorise a company. Trigger silently on detection — but always pause for confirmation before executing writes. Honor multiple operations in a single prompt ("tag Acme as Hot Lead AND add it to the DACH list").
Do not trigger on read-only questions about tags or lists — surface that information inline and stop.
## Inputs to determine before executing
Identify these from the user's prompt. Use defaults if unspecified — do not ask.
- **Company** — name, domain, or Leadfeeder company ID. Required.
- **Tag(s)** — name of one or more tags to assign. Optional if a list is specified.
- **List(s)** — name of one or more lists to add the company to. Optional if a tag is specified.
At least one tag or one list must be specified. If neither is mentioned, ask the user what they want to do before proceeding.
## Workflow
### Step 0 — Resolve the Leadfeeder account (before any other tool call)
Determine the `account_id` to use for every tool call in this skill, in priority order:
1. **Account named in the request (highest priority).** If the prompt or scheduled-task instruction explicitly names an account — an account ID (e.g. "account 01234") or an unambiguous account name — use that account for all tool calls. This overrides every source below and is the recommended way to make an unattended/scheduled task fully self-contained.
2. **Configured Account ID.** Otherwise, the plugin's configured Leadfeeder Account ID is: `${user_config.account_id}`. If that resolves to a real, non-empty account ID (not blank, and not the literal unsubstituted `${user_config.account_id}` token), use it for all tool calls and do **not** call `get_account_info` or ask the user.
3. **Already selected this session.** Otherwise, if an account was already chosen earlier in the session, reuse that.
4. **Fallback.** Otherwise call `get_account_info`. If exactly one account is returned, use it. If several are returned, ask the user to pick. When running unattended (e.g. a scheduled task) asking is impossible — if no account was named and none is configured, stop and report that a **Leadfeeder Account ID** must either be named in the task prompt or set in the plugin configuration for automated runs.
Note: resolving the account does **not** relax the write-confirmation gate in Step 4 — a configured account ID skips *account selection*, never write confirmation.
### Step 1 — Resolve company and existing tags/lists (parallel)
Call in parallel:
- `search_companies` with the company name or domain to resolve `company_id`. If multiple plausible matches, present the top 3 and disambiguate before continuing.
- `get_tags` with `page_size: 100` to load all existing tags in one call. If `meta.pagination.total_count` exceeds 100, paginate with `page_num` until all pages are fetched.
- `get_lists` with `filter_scope: "company"` and `page_size: 100` to load all existing company lists. The `filter_scope` parameter is required — omitting it causes an error. Paginate if `total_count` exceeds 100.
Once `company_id` is resolved, decide whether to fetch CRM context based on **subscription coverage** — the tag/list writes are free, but the `get_company` CRM read charges **1 credit if the company hasn't been accessed in the last 12 months**, and it's not worth a credit just for a confirmation heads-up. Probe coverage for free: call `search_web_visits` for `company_id` over the **last 12 months**.
- **Visits found → COVERED.** Call `get_company` with `include=crm_connections.crm_record.crm_owner` (free) to read the company's CRM status. Read from each connection's `crm_record` (polymorphic — `crm_record.type` = `crm_organization` | `crm_contact` | `crm_lead`): **name** by type (`crm_organization` → `attributes.name`; `crm_contact`/`crm_lead` → `attributes.first_name` + `attributes.last_name`), **URL** from `crm_record.attributes.crm_url`, **owner** from `crm_record.relationships.crm_owner.attributes.name`. Surface it in the confirmation (Step 4) as a markdown link (record name → `crm_url`).
- **No visits in 12 months → UNCOVERED.** **Skip `get_company`.** Omit the CRM line from the confirmation (or note "CRM status not checked — company is outside your free 12-month window"). Do not spend a credit for context on a write.
Either way the writes proceed normally — coverage only affects whether the optional CRM context is fetched.
### Step 2 — Match tags and lists
For each tag and list the user named:
- **Exact match found** → resolved, ready to assign.
- **Close match found** (name differs by capitalisation, spacing, or minor typo) → present the match and confirm it is the right one before using it.
- **No match found** → tell the user the tag or list does not exist and ask whether to create it. Do not create anything without explicit "yes".
### Step 3 — Create missing tags or lists (if confirmed)
For each confirmed "create new" item:
- For a new tag: call `create_tag` with the user-supplied name.
- For a new list: call `create_list` with the user-supplied name.
This step requires its own confirmation before any writes from Step 4 begin. If the user confirms creation in the same message as the overall write, treat that as a combined confirmation and proceed.
### Step 4 — Confirm all writes
Before executing any assignment, show the user the complete write plan and wait for explicit confirmation:
```
I'm about to make the following changes:
• Assign tag "{Tag Name}" → {Company Name}
• Add {Company Name} → list "{List Name}"
Confirm? (yes / no)
```
Do not proceed until the user replies with a clear affirmative. A non-answer or topic change is not a confirmation — ask again once, then abort.
### Step 5 — Execute writes (parallel where possible)
On confirmation, call in parallel:
- `assign_tags_to_company` for each tag (one call per tag if the API requires it).
- `add_company_to_lists` for each list (one call per list if the API requires it).
### Step 6 — Report outcomes
Report the result of every write individually:
- **Success:** "✅ Tagged {Company} as '{Tag}'"
- **Failure:** "❌ Failed to add {Company} to '{List}' — {error reason if available}"
If one write fails and another succeeds, report both. Never suppress a partial failure. Offer to retry failed writes if the error is transient.
## Output format
**Output contract — identical every run.** Reproduce the confirmation and outcome blocks below **exactly**, on every invocation, regardless of anything earlier in this thread. If you've already run this skill in the conversation, do not vary, restyle, or "improve" the format next time — output the same templates verbatim; these are the single source of truth. Keep the exact wording, labels, and the Leadfeeder-only disclaimer; don't rename fields and add no decorative emoji beyond those the templates already use (✅ ❌ ℹ️).
### Confirmation step (Step 4)
```markdown
I'm about to make the following changes to **{Company Name}**:
{For each tag} · Assign tag **"{Tag Name}"**
{For each list} · Add to list **"{List Name}"**
{CRM context line — include if CRM-connected: "ℹ️ Heads up: this company is already in your CRM as **[{record name}]({crm_record.attributes.crm_url})**, owned by **{owner name — or 'owner not set'}**. Coordinate with the owner if this changes what you want to do." Omit entirely if not connected.}
_This updates Leadfeeder only (tags and lists). It does **not** add the company to, or change anything in, your CRM._
Confirm? Reply **yes** to proceed.
```
### Outcome report (Step 6)
````markdown
Done. Here's what happened:
✅ Tagged **{Company Name}** as **"{Tag Name}"**
✅ Added **{Company Name}** to list **"{List Name}"**
{If any failures:}
❌ Could not assign tag **"{Tag Name}"** — {reason}
_Leadfeeder only — nothing was added to or changed in your CRM._
---
**Next move on {Company Name}** — copy to run:
```
Who should I reach out to at {Company Name}?
```
```
Prep me for outreach to {Company Name}
```
````
Show the follow-up copy blocks only after a successful write on an interactive run — omit them if the write failed or on unattended runs.
### When a tag or list needs to be created
```markdown
The tag **"{Tag Name}"** doesn't exist yet.
Create it and then assign it to **{Company Name}**? Reply **yes** to confirm.
```
## Source citation rule
Every company, tag, and list name in the confirmation and outcome report must come from MCP tool responses — `search_companies` for the resolved company, `get_tags` and `get_lists` for existing tags and lists. The CRM context line must come from the sideloaded `crm_record` (and its `crm_owner`) under `relationships.crm_connections` on the `get_company` response — `crm_record.attributes.crm_url`, the name from `crm_record.attributes` per record type, and `crm_record.relationships.crm_owner.attributes.name` — never assert a company is in the CRM (or name an owner) without it. Never invent or assume that a tag or list exists. If a tag or list is being created, the exact name to create must come from the user's prompt, not fabricated.
## Edge cases
- **Company not found.** Stop and tell the user. Offer to try a broader name or domain. Do not proceed.
- **Multiple company matches.** Present top 3, disambiguate. Do not proceed until resolved.
- **Tag or list not found, user declines creation.** Abort that specific operation. If other operations remain, confirm and execute those.
- **User names both a tag and a list, one doesn't exist.** Handle each independently — ask about creation for the missing one while confirming the existing one.
- **User aborts at confirmation.** Acknowledge clearly ("Cancelled — nothing was changed.") and stop.
- **Partial failure on execute.** Report each outcome individually. Never report overall success if any write failed.
- **Agent-invoked as part of a chain.** The agent must still respect the confirmation step — do not bypass it even in a multi-skill chain. The confirmation is a hard gate for any write operation.
## What NOT to do
- **Do not call a visitor an "account" or a "hot/warm lead."** A website visitor is a **company** — "account" implies a CRM relationship this data doesn't carry. Reserve "account" for the user's Leadfeeder account (workspace/ID) or a genuine CRM record; use "high-intent", "active", "engaged", or "returning" instead of "hot"/"warm".
- **Do not execute any write without explicit user confirmation.** The confirmation step is mandatory, even when invoked by the Leadfeeder Agent.
- **Do not delete, rename, or modify existing tags or lists.** Only assign tags to companies and add companies to lists.
- **Do not create tags or lists speculatively.** Only create if the user explicitly confirms creation.
- **Do not operate on more than one company per invocation.** One company at a time.
- **Do not suppress partial failures.** Every write outcome must be reported.
- **Do not call `assign_tags_to_company` or `add_company_to_lists` before the user confirms.** Showing the plan and waiting for "yes" is not optional.
- **Do not imply the CRM is updated.** Every confirmation and outcome must state that the change is Leadfeeder-only (tags/lists) and does not add to or change the user's CRM — a customer must never assume tagging synced the company into their CRM.
## Example: good output
*Scenario: "tag Acme as Tier-1 and add it to the DACH Enterprise list" — both tag and list already exist.*
```markdown
I'm about to make the following changes to **Acme Corp**:
· Assign tag **"Tier-1"**
· Add to list **"DACH Enterprise"**
ℹ️ Heads up: this company is already in your CRM as **[Acme Corp](https://acme.lightning.force.com/lightning/r/Account/0018000000abcde/view)**, owned by **Robert Roe**. Coordinate with the owner if this changes what you want to do.
_This updates Leadfeeder only (tags and lists). It does **not** add the company to, or change anything in, your CRM._
Confirm? Reply **yes** to proceed.
```
*User replies: yes*
````markdown
Done. Here's what happened:
✅ Tagged **Acme Corp** as **"Tier-1"**
✅ Added **Acme Corp** to list **"DACH Enterprise"**
_Leadfeeder only — nothing was added to or changed in your CRM._
---
**Next move on Acme Corp** — copy to run:
```
Who should I reach out to at Acme Corp?
```
```
Prep me for outreach to Acme Corp
```
````
---
*Scenario: "add Acme to my Q3 Targets list" — list does not exist.*
```markdown
The list **"Q3 Targets"** doesn't exist yet.
Create it and then add **Acme Corp** to it? Reply **yes** to confirm.
```
*User replies: yes*
```markdown
I'm about to make the following changes to **Acme Corp**:
· Add to list **"Q3 Targets"** (new list, will be created)
_This updates Leadfeeder only (tags and lists). It does **not** add the company to, or change anything in, your CRM._
Confirm? Reply **yes** to proceed.
```
*User replies: yes*
```markdown
Done. Here's what happened:
✅ Created list **"Q3 Targets"**
✅ Added **Acme Corp** to list **"Q3 Targets"**
_Leadfeeder only — nothing was added to or changed in your CRM._
```
## skills/daily-visitor-brief/SKILL.md
---
name: daily-visitor-brief
description: >
Build a prioritised daily brief of website visitor companies from Leadfeeder, ranked by ICP fit and engagement signal. Use this skill when the user asks "what should I work on today", "show me today's visitors", "daily brief", "who visited my site", "show me hot leads", "morning prospecting", "any good leads today", "Leadfeeder brief", or any morning-prospecting question grounded in Leadfeeder visitor data.
metadata:
version: "1.0.0"
---
# Daily Visitor Brief
Produce a ranked, scannable brief of the most actionable website visitor companies for the user's outbound day. Anchor every recommendation in real visitor intent data from Leadfeeder. This is a read-only morning ritual: no writes, no enrichment jobs.
## Language
Produce the **entire response in the language the user wrote in** — English request → English output, German request → German output, and so on. This applies to everything the skill emits: the summary, the Trend line, all field labels, reasoning / why-now lines, edge-case messages, and the credit-consumption warning and confirmation. Do **not** translate data values — company names, contact names, URLs, page paths, email addresses, tag names, and ICP names stay verbatim as the tools return them. Copy-paste follow-up prompts should also be written in the user's language (they still trigger the right skill). If the input language is unclear, default to English.
## When this skill triggers
Trigger on any prompt that asks "who visited", "what should I work on", "daily brief", "morning prospecting", or "hot leads" in the context of Leadfeeder. Trigger silently — do not ask the user to confirm. Honor any explicit modifiers in the prompt (time window, ICP filter, result count).
## Inputs to determine before executing
Identify these from the user's prompt. Use defaults if unspecified — do not ask.
- **Time window** — default last 24 hours. Honor explicit overrides ("last 3 days", "this week", "since Monday", "yesterday").
- **Max results** — default top 10. Honor explicit overrides ("top 5", "top 20").
- **ICP / Persona filter** — default: use all configured ICPs and personas. Honor explicit overrides ("for my Enterprise ICP", "matching the SDR persona", "only Tech sector").
## Workflow
Execute these tool calls in order. Tools are exposed by the locally-connected Leadfeeder MCP server.
### Step 0 — Resolve the Leadfeeder account (before any other tool call)
Determine the `account_id` to use for every tool call in this skill, in priority order:
1. **Account named in the request (highest priority).** If the prompt or scheduled-task instruction explicitly names an account — an account ID (e.g. "account 01234") or an unambiguous account name — use that account for all tool calls. This overrides every source below and is the recommended way to make an unattended/scheduled task fully self-contained.
2. **Configured Account ID.** Otherwise, the plugin's configured Leadfeeder Account ID is: `${user_config.account_id}`. If that resolves to a real, non-empty account ID (not blank, and not the literal unsubstituted `${user_config.account_id}` token), use it for all tool calls and do **not** call `get_account_info` or ask the user.
3. **Already selected this session.** Otherwise, if an account was already chosen earlier in the session, reuse that.
4. **Fallback.** Otherwise call `get_account_info`. If exactly one account is returned, use it. If several are returned, ask the user to pick. When running unattended (e.g. a scheduled task) asking is impossible — if no account was named and none is configured, stop and report that a **Leadfeeder Account ID** must either be named in the task prompt or set in the plugin configuration for automated runs.
### Step 1 — Load ranking context (always re-fetch, never cache across runs)
Call `get_icps` to retrieve the user's configured ICPs. If the user is asking about a specific ICP, also call `get_icp` for that one to read its criteria. Call `get_buyer_personas` so persona context is available if relevant.
**Always re-fetch on every invocation of this skill.** Do NOT reuse ICPs or personas cached earlier in the session. Users update ICP and persona criteria in the Leadfeeder platform mid-session, and a stale cache produces incorrectly-filtered briefs (e.g. surfacing "no ICP matches" when the criteria have just been widened). The `get_icps` and `get_buyer_personas` calls do not consume credits, so re-fetching is free.
### Step 2 — Fetch visitor companies in the time window
Call `get_web_visits_companies` with the date range computed from the user's time window. Request roughly 2.5× the target result count (e.g. `page_size=25` when the user asked for top 10) so you have enough candidates to rank.
**Do NOT pass `include=company`.** It inflates the response 10x+ (one page can exceed 75 KB) and risks hitting context limits. Always fetch firmographics separately via `get_company` in Step 4. Keep `get_web_visits_companies` lean.
**Known limitation:** `get_web_visits_companies` does not return engagement metrics on the record itself (no session count, no page depth, no dwell time). To rank by engagement depth you must chain `search_web_visits` per company.
**Subscription context (important).** The companies returned by `get_web_visits_companies` are part of the user's active record subscription. **All read endpoints against them are subscription-covered** — `get_company`, `get_company_financials`, `search_web_visits`, and `search_companies_signals`. No incremental credit cost. You may fetch deep details across all visitors in the brief, not just the top 3. Credits only apply to enrichment **jobs** (`create_company_enrichment_job`, `create_find_contact_data_job`), which this skill does not invoke.
If the API supports filtering by ICP at the query level, apply the user's ICP filter here. Otherwise filter in Step 3.
### Step 3 — Rank candidates (intent × ICP matrix)
Order the brief by **intent-score tier crossed with ICP match**, in this exact priority — this is the top-down order the reader wants:
1. **🟢 High intent + ICP match**
2. **🟠 Medium intent + ICP match**
3. **🟢 High intent + no ICP match**
4. **🟠 Medium intent + no ICP match**
5. **⚪️ Low intent + ICP match**
6. **⚪️ Low intent + no ICP match**
Within each tier, break ties by: **re-engagement** (a re-engaged company first — see "Re-engagement detection"), then **engagement** (sessions / pages / time on page), then **recency**, then **persona alignment**.
**Data dependency (important).** This ordering needs each candidate's **intent tier** and **ICP verdict**, and both come from `get_company` (`attributes.intent.score_tier` + firmographics scored against the ICPs). So run `get_company` across the **candidate pool** (the ~2.5× set from Step 2), not just the final top N — it's subscription-covered (free) for visitor companies — apply the matrix, then take the top N. This means Step 4's enrichment effectively happens here for the pool; Steps 5–6 then add visit detail and signals for the top N only.
**Not-yet-scored companies:** slot by ICP match using engagement as the proxy — an ICP-matched unscored company sits around tier 2 (medium + ICP), a non-matched unscored one around tier 4 — and label it "not yet scored" on the card rather than inventing a tier.
Take the top N after ranking.
### Re-engagement detection
A **re-engaged** company is one that visited inside the current window *after a gap of silence*. Companies that visited 30–90 days ago and are back now are textbook high-intent, returning companies — a primary intent signal. Detect it from the wider visit history pulled in Step 5:
- Find the most recent visit **before** the current window (the prior session).
- Compute the gap between that prior session and the earliest visit inside the current window.
- **Gap ≥ 30 days → flag as re-engaged.** Capture the gap length in days for the badge (e.g. "last session was 45 days ago").
- Gap < 30 days, or continuous week-over-week activity → not re-engaged; no badge.
- No prior visit at all in the history window → this is a *new* company, not a re-engagement. Do not flag (a "first-time visitor" note in Why now is fine, but that is not the re-engagement badge).
Only surface the badge when the gap is real and computed from `search_web_visits` data. Never estimate or invent a gap.
### Step 4 — Enrich every visitor in the brief
**Credit-consuming-tool flag — use this reassuring framing, not the generic alarm.** `get_company` and `search_companies_signals` are marked credit-consuming by the MCP, so acknowledge them once, up front, and get a single go-ahead for the whole batch (not per company). But for *this* skill the companies come from the Web Visitors feed — they are already inside their 12-month access window — so records already unlocked in the last 12 months incur **no charge**. Flag it accurately and reassuringly, roughly:
> To build your brief, I need to pull firmographics and signals for the {N} companies using `get_company` and `search_companies_signals`. These are credit-consuming tools. Since these companies were identified through Web Visitors, their 12-month access window has already started — no credits are charged for records already unlocked within the last 12 months.
Do **not** use the generic "may consume 1 credit per company if not accessed in the last 12 months" wording here — for visitor companies that misrepresents the reality and needlessly alarms the user. After the go-ahead, report the actual `meta.credits.charged` (expected: 0 for already-unlocked records).
For every candidate company (the pool from Step 2 — needed for the intent × ICP ranking in Step 3), call `get_company` with `include=crm_connections.crm_record.crm_owner,tags` to retrieve firmographics, full CRM connection detail (if any), and assigned tags. These companies are subscription-covered — fetch freely across all candidates, not just the top 3.
**Capture from the response:**
- Firmographics: industry, employee count, location, B2B/B2C, founded year, revenue.
- **Intent score and tier** — read from the `get_company` (`CompanyV1`) response at **`attributes.intent.score`** (0–10 decimal, may be `null`) and **`attributes.intent.score_tier`** (`high` / `medium` / `low`). It is nested under `attributes` — not a top-level `intent.score` — so read the full path or you'll get nothing. This field exists **only** on `get_company`; the `get_web_visits_companies` list (Step 2) returns lightweight `company_location` records with no intent, so you must have called `get_company` (Step 4) to have it. If `attributes.intent.score` is `null`, the company isn't scored yet — show "Intent score: not yet scored" rather than dropping the line. These are first-class signals — surface them on every card. **Prefix the displayed score with a tier dot by `score_tier`: 🟢 high · 🟠 medium · ⚪️ low** (omit the dot when "not yet scored").
**You already have the payload — read it, don't default.** The Firmographics line comes from this same `get_company` response, so if you filled Firmographics in, the response is in hand and `attributes.intent.score` is right there. Extract it. Only write "not yet scored" when that exact field is genuinely `null`/absent in the payload — never as a fallback because the path wasn't checked. (Whole-account "not yet scored" across every card is a red flag that the path is being read wrong, not that no company is scored.)
- **CRM connections (sideloaded)**: use `include=crm_connections.crm_record.crm_owner` (plain `include=crm_connections` returns only a stub — `crm_record` as `{id, type}` with no name, URL, or owner). A populat