Deepline gtm

From getaero-io/deepline-gtm-agent · View interactive version

Deepline gtm is an AI agent skill from the GitHub repository getaero-io/deepline-gtm-agent. Use for outbound prospecting, enrichment, qualification, CSV processing, lead/account/contact research, waterfall enrichment, email or LinkedIn lookup, personalization, scoring, and campaigns. Route CSV-heavy and provider-driven requests here; use linked sub-docs and playbooks to execute. Providers:

How to use this skill

Skill file

GTM Meta Skill

Use this skill for prospecting, account research, contact enrichment, verification, lead scoring, personalization, and campaign activation.

1) What this skill governs

Process/goal

Customer is generally trying to go from "I have an ICP" to "Here's a list of prospects with email/linkedin and very personalized content or signals". They may be anywhere in this process, but guide them along.

Discovery order: companies first, then people. When the task requires finding contacts at companies matching criteria (portfolio, ICP, hiring signal), discover the company set first, then find people at each company. Do not start with broad people-search queries.

Documentation hierarchy

No-loss rule: moved guidance remains fully documented at its canonical level and is linked from here.

CLI family fallback

If Deepline CLI V2 or SDK mode seems broken while running a GTM task, check deepline switch status. Use deepline switch sdk to move an installer-managed CLI to SDK mode, or deepline switch python to roll back to the Python CLI. Auth is host-scoped and should carry across both families.

2) Read behavior — MANDATORY before any execution

STOP. Do not call any provider, run any deepline tools execute, or write any search command until you have opened the correct sub-doc for your task.

These skill docs and sub-docs are not generic documentation — they are distilled from hundreds of real runs and encode exactly what works, what fails, and why. They contain validated parameter schemas, correct filter syntax, parallel execution patterns, tested sample payloads, and known pitfalls that took many iterations to discover. Think of them as shortcuts: reading a doc for 5 seconds saves you from 10 failed tool calls, wasted credits, and garbage output. Every time an agent skips reading the docs and tries to "figure it out" from first principles, it re-discovers the same failure modes that are already documented and solved.

SKILL.md is the routing layer — it tells you WHERE to go, not HOW to execute. The sub-docs and task-specific skills contain the HOW. Without them you will guess parameters, pick wrong providers, run searches sequentially instead of in parallel, and produce garbage results. This has happened repeatedly.

Open the right doc BEFORE executing

This is not optional. Read the matching doc. Do not skip this step. Do not "just try one provider real quick" or "just run one search to see." These docs exist because the correct approach was non-obvious and had to be learned through trial and error — they are shortcuts that let you skip straight to what works.

!important READING MULTIPLE DOCS IS A GREAT IDEA AND OFTEN SUPER ESSENTIAL. JUST READ MORE.

Routing rules — match your task to a doc and READ IT:

| When the task involves... | You MUST read this doc first | What it gives you (that SKILL.md doesn't) |

| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |

| Finding companies, finding people, building lead lists, prospecting, portfolio/VC sourcing, contact finding at known companies, coverage completion at scale | finding-companies-and-contacts.md | Provider filter schemas, parallel execution patterns, provider mix tables, role-based search rules, subagent orchestration, at-scale coverage completion, portfolio/VC shortcuts, contact finding patterns. |

| Researching companies or people, understanding what they build, figuring out use cases, personalizing based on mission/product/industry, enriching a CSV, adding data columns, waterfall enrichment, finding emails/phones/LinkedIn, coalescing data, custom signals, run_javascript / deeplineagent steps, Apify actors — any task that adds or transforms row-level data | enriching-and-researching.md | deepline enrich syntax and all flags. Waterfall patterns with fallback chains. run_javascript / deeplineagent routing. Multi-pass pipeline patterns (research pass → generation pass). Coalescing patterns. Email/phone/LinkedIn waterfall orders. Custom signal buckets. Apify actor selection. GTM definitions and defaults. |

| Writing cold emails, personalizing outreach, lead scoring, qualification, sequence design, campaign copy, inspecting CSVs in Playground. If the task also requires researching companies/people to inform the writing, read enriching-and-researching.md too — it has the multi-pass pipeline pattern. | writing-outreach.md | Prompt templates from prompts.json. Scoring rubrics. Email length/tone/structure rules. Personalization patterns. Qualification frameworks. Playground inspection commands. |

| Building or modifying a cloud workflow (deepline workflows apply), designing step sequences, data contracts, triggers (webhook/cron/API), waterfall blocks, expectations, deploy/verify cycles, or debugging a failing workflow run. This is NOT the same as a GTM enrichment workflow — cloud workflows are persisted automations with triggers. | references/cloud-workflow-builder.md | Schema for WorkflowApplyInput, Command, and Waterfall blocks. Placeholder resolution rules. run_javascript environment. Spec template. Deploy/verify/iterate loop. Execution modes (smoke_test, dry_run). Disabled steps. Poll+dispatch and fanout patterns. |

If you are hand-authoring enrich columns instead of using a native play, jump straight to the "Handmade step shape quick reference" section in enriching-and-researching.md. That section spells out the exact runtime contract for run_javascript, extract_js, result, and persisted matched_result.

Recipes: step-by-step playbooks for specific tasks (check before executing)

The recipes/ directory contains battle-tested playbooks. Before you start executing, scan this list and read any recipe that matches your task.

When a recipe matches: follow it step-by-step as your execution plan. Recipes encode hard-won sequencing and provider choices — trust them over generic guidance or your own intuition. If the user's request doesn't perfectly fit, adapt the recipe using the phase docs above, but keep the recipe's structure and ordering as your baseline.

| Recipe | Use when... |

| ------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ |

| account-orgchart.md | Building an org chart, account map, buying committee, stakeholder map, or multi-threading plan around a target person or company |

| build-tam.md | Building a total addressable market list or large company list from ICP criteria |

| clay-to-deepline.md | Converting a Clay table into local Deepline enrich scripts (extraction, mapping, parity validation) |

| find-qualified-titles.md | "Find all job titles at these companies" / "find the marketing-ops/RevOps/Salesforce buyers": pull each company's real title roster (free company_titles), LLM-filter to the ICP, then find contacts with tiered (LinkedIn, email, phone) reveal |

| linkedin-url-lookup.md | Resolving a person's LinkedIn profile URL from their name and company with strict identity validation |

| portfolio-prospecting.md | Finding companies backed by a specific investor or accelerator, then finding contacts and building personalized outbound |

| small-business-prospecting.md | Finding local small businesses or storefront/service-area companies using Maps-style search. Doctors, services business, restaurants, etc. |

| workflows-hello-world.md | Creating a cloud Deepline workflow that runs on a recurring cron schedule or via webhook, then inspecting trigger behavior end to end |

If none match, grep for more specific keywords: Grep pattern="<keyword>" path="<directory containing this SKILL.md>/recipes/" glob="*.md" output_mode="files_with_matches"

Data

Tools

For signal-driven discovery (investor, funding, hiring, headcount, industry, geo, tech stack, compliance), start with deepline tools search. Do not guess fields.

Search 2-4 synonyms, execute in parallel:

deepline tools search investor
deepline tools search investor --prefix crustdata
deepline tools search --categories company_search --search_terms "structured filters,icp"
deepline tools search --categories people_search --search_terms "title filters,linkedin"

Tool search categories

Use category filters when tool type matters more than provider breadth. Common categories:

Use --search_terms for extra ranking hints like structured filters, title filters, api native, autocomplete, or bulk.

Good:

Avoid:

2.5) Why use Deepline Enrich

When doing row by row processing (e.g. per customer, per lead, per linkedin url, etc)

Use deepline enrich as the default path.

Why:

2.6) Session UI plan — MANDATORY for every task

Always publish your execution plan to the Session UI before running any commands. This is not optional — users monitor progress in real time via the Session UI. Without it, the UI shows nothing and users have no visibility.

# Post your plan (accepts JSON array of step labels)
deepline session start --steps '["Inspect CSV and understand shape","Search for email finder tools","Run pilot on rows 0:1","Get approval for full run","Execute full enrichment","Post-run validation and delivery"]' --user-prompt "Original user request"

# As you complete each step, update its status (0-indexed)
deepline session start --update 0 --status completed
deepline session start --update 1 --status running
deepline session start --update 1 --status completed
deepline session start --update 2 --status running
# On error:
deepline session start --update 2 --status error

Valid step statuses: pending, running, completed, error, skipped.

Live status updates within a step

As you work through a running step, send status updates to show what you're currently doing. This is for emergent work the plan couldn't predict upfront (parsing responses, falling back to alternative providers, extracting data, etc.).

# While a step is running, send status updates (attaches to the currently-running step)
deepline session status --message "Extracting company domains from provider response"
deepline session status --message "LeadMagic returned no results — falling back to ZeroBounce"
deepline session status --message "Validating 23 catch-all emails"

# Optionally target a specific step by index
deepline session status --message "Retrying with different params" --step-index 2

Each new status message marks the previous one as done and appears as the active sub-step. These are lightweight — use them freely whenever you're doing something the user would want to see.

Rules:

3) Core policy defaults

3.1 Definitions and defaults

GTM time windows, thresholds, and interpretation rules are defined in the Definitions section of enriching-and-researching.md.

Provider Playbooks

Provider-specific playbooks are bundled as separate reference files. Open the relevant playbook when provider-specific behavior, pricing, caveats, or payload conventions matter.

adyntel, ai_ark, allegrow, apify, attio, aviato, bettercontact, bloomberry, builtwith, cloudflare, contactout, crustdata, crustdata-v2, dataforseo, datagma, deepline_native, deeplineagent, discolike, dropleads, emailbison, enformion, exa, findymail, firecrawl, forager, fullenrich, generic_http, google_ads_audiences, heyreach, hubspot, hunter, icypeas, instantly, ipqs, leadmagic, lemlist, limadata, linkedin_ads_audiences, lusha, meta_audiences, openmart, opensosdata, openwebninja, parallel, peopledatalabs, predictleads, prospeo, salesforce, scrapecreators, serper, smartlead, snowflake, tamradar, theirstack, trestle, upcell, wiza, wizleads, zerobounce

3.2 Working directory — set up BEFORE any file writes

NEVER write files to /tmp/ or any absolute temp directory. Files in system /tmp/ are wiped on reboot — users permanently lose enriched CSVs, research outputs, and hours of paid enrichment work. This is a critical data-loss risk.

Set up a descriptive project-local working directory as your first action:

WORKDIR="deepline/data/<descriptive-task-slug>" && mkdir -p "$WORKDIR" && echo "$WORKDIR"

The slug must describe the task (e.g. deepline/data/yc-cmo-outbound, deepline/data/acme-email-waterfall). Do NOT use random names like mktemp generates — the user needs to find these files later. See enriching-and-researching.md for full details.

3.3 Output policy and User Interaction Pattern

See enriching-and-researching.md for deepline csv commands, pre-flight/post-run script templates, and inspection details.

3.4 Final file + playground check (light)

4) Credit and approval gate (paid actions)

4.1 Required run order

  1. Pilot on a narrow scope (example --rows 0:1 for one row).
  2. Request explicit approval.
  3. Run full scope only after approval.

4.2 Execution sizing

4.2.1 Over-provision, then filter — never chase missing rows

When the user asks for N rows, start with ~1.4×N (e.g., 35 for 25). Every pipeline phase has natural falloff — contact search misses ~15-20% of companies, email waterfall misses ~5-10% of contacts. Fighting to complete the hard rows is almost always a waste: the companies that providers can't find contacts for are the same ones that won't have email coverage either.

Do this:

  1. Pull more candidates than needed at the top of funnel.
  2. Run the full pipeline (contacts → emails → outbound).
  3. At the end, filter to the best N complete rows and deliver those.
  4. Drop incomplete rows — don't retry or manually patch them.

Do NOT do this:

Provider coverage is a property of the company, not something you can overcome with more effort. Tiny startups with 5 people will have zero coverage across all providers — no amount of retrying changes that. Over-provision at the top and let incomplete rows fall off naturally.

4.3 Approval message content

Include all of:

  1. Provider(s)
  2. Pilot summary and observed behavior
  3. Intent-level assumptions (3–5 one-line bullets)
  4. CSV preview from a real deepline enrich --rows 0:1 one-row pilot
  5. Credits estimate / range
  6. Full-run scope size
  7. Max spend cap
  8. Approval question: Approve full run?

Note: deepline enrich already prints the ASCII preview by default, so use that output directly.

Strict format contract (blocking):

  1. Use the exact four section headers: Assumptions, CSV Preview (ASCII), Credits + Scope + Cap, Approval Question.
  2. If any required section is missing, remain in AWAIT_APPROVAL and do not run paid/cost-unknown actions.
  3. Only transition to FULL_RUN after an explicit user confirmation to the approval question.
  4. run_javascript is the non-AI path. aiinference is for general classification/structured reasoning, and deeplineagent is for context gathering / web research / signal extraction.

Approval template:

Assumptions

- <intent assumption 1>
- <intent assumption 2>

CSV Preview (ASCII)
<paste verbatim output from deepline enrich --rows 0:1>
Credits + Scope + Cap

- Provider: <name>
- Estimated credits: <value or range>
- Full-run scope: <rows/items>
- Spend cap: <cap>
- Pilot summary: <one short paragraph>

Approval Question
Approve full run?

4.4 Mandatory checkpoint

```bash

deepline session alert --message "Approval needed: run enrichment on N rows (~X credits)"

```

4.5 Billing commands

deepline billing balance  # Show current credit balance
deepline billing usage    # Show recent billing activity and grouped recent usage
deepline billing limit    # Show the current monthly billing cap

When credits at zero, link to https://code.deepline.com/dashboard/billing to top up.

10 credits == 1 USD

5) Provider routing (high level)

Reminder: you should have already read the relevant sub-doc from Section 2 before reaching this point. If you haven't, go back and read it now. This section is a quick-reference summary, NOT a substitute for the sub-docs.

Provider path heuristics:

6) Additional notes

Critical: keep writing-outreach.md workflow context active when running any sequence task. It is not optional for ICP-driven messaging.

Apify actor flow (short canonical policy)

Operational troubleshooting: rate limits and CLI health

curl -s "https://code.deepline.com/api/v2/cli/install" | bash

Sites requiring auth: Don't use Apify. Tell the user to use Claude in Chrome or guide them through Inspect Element to get a curl command with headers (user is non-technical).

  1. If user provides actor ID/name/URL: use it directly.
  2. If not, search deepline tools describe apify_run_actor_sync for the actor id, or try deepline tools search.
  3. If not present, run discovery search.
  4. Avoid rental-priced actors.
  5. For LinkedIn post scraping, prefer supreme_coder/linkedin-post for generic posts/search URLs and harvestapi/linkedin-post-reactions when the goal is engagers/reactions. Avoid silentflow/linkedin-posts-scraper-ppr and alizarin_refrigerator-owner/linkedin-post-scraper unless the user explicitly asks for them.
  6. Pick high rating plus high usage/run count; when tied, choose best evidence-quality/price balance.
  7. Honor operatorNotes over public ratings when conflicting.
deepline tools execute apify_list_store_actors --payload '{"search":"linkedin company employees scraper","sortBy":"relevance","limit":20}'
deepline tools execute apify_get_actor_input_schema --payload '{"actorId":"bebity/linkedin-jobs-scraper"}'

7) Feedback & session sharing

7.1 Proactive issue reporting (mandatory)

Do not wait for the user to ask. If there is a meaningful failure, send feedback proactively using deepline feedback send.

Trigger when any of these happen:

Run once per issue cluster (avoid spam), and include:

deepline feedback send "Goal: <goal>. Tool/provider/model: <details>. Failure: <what broke>. Error: <exact message>. Repro attempted: <steps>."

7.2 End-of-session consent gate (mandatory)

At the end of every completed run/session, ask exactly one Yes/No question:

Would you like me to send this session activity to the Deepline team so they can improve the experience? (Yes/No)

If user says:

```bash

deepline sessions send --current-session

```

Ask once per completed run. Do not nag or re-ask unless the user starts a new run/session.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.