### Install Deepline CLI Source: https://deepline.com/blog/clay-vs-apollo Install the Deepline CLI tool. This is a free installation and takes under two minutes to get your first enrichment. ```bash curl -s \"https://code.deepline.com/api/v2/sdk/install\" | bash ``` -------------------------------- ### Install Deepline SDK Source: https://deepline.com/blog/best-web-scraping-tools-for-gtm Install the Deepline SDK using a curl command piped to bash. This is a quick way to get started with the tool. ```bash curl -s "https://code.deepline.com/api/v2/sdk/install" | bash ``` -------------------------------- ### Install Deepline CLI Source: https://deepline.com/llms.txt Install the Deepline command-line interface using a curl command. This is the primary method to get started with Deepline. ```bash curl -s "https://code.deepline.com/api/v2/cli/install" | bash ``` -------------------------------- ### Install Deepline CLI and Register Auth Source: https://deepline.com/llms.txt Install the Deepline CLI and authenticate your account. This is a prerequisite for using Deepline commands. ```bash curl -s "https://code.deepline.com/api/v2/cli/install" | bash deeline auth register ``` -------------------------------- ### Install Deepline CLI Source: https://deepline.com/blog/deepline-vs-clay Install the Deepline command-line interface. This is the first step for users comfortable with CLI/API workflows. ```bash npm install -g @deepline/cli ``` -------------------------------- ### Agency Workflow Example Source: https://deepline.com/use-cases/agencies This example outlines a typical workflow for an agency using Deepline to set up a new client workspace, define prospect criteria, and initiate lead generation and campaign management. ```text Set up a new workspace for Client X, paste their APOLLO_API_KEY, and build a prospect list of 100 CEOs at US SaaS companies with 11-50 employees. Waterfall emails through [apollo, hunter, pdl], then push verified leads to their Instantly campaign. Bill providers to their account. ``` -------------------------------- ### Agent Orchestration Example Source: https://deepline.com/use-cases/gtm-engineers An example demonstrating how to use natural language to instruct an agent to write and execute a pipeline. The agent handles tool selection, pipeline generation, execution, and output review. ```plaintext Example: just tell Claude Code what you need ``` -------------------------------- ### Install Deepline CLI Source: https://deepline.com/use-cases/marketing-ops Use this bash command to install the Deepline CLI. After installation, register your Deepline authentication. ```bash curl -s "https://code.deepline.com/api/v2/cli/install" | bash deepline auth register ``` -------------------------------- ### Deploy Workflow and Get Webhook URL Source: https://deepline.com/use-cases/score-inbound-leads After applying the workflow, use this command to deploy it. Copy the webhook URL provided from the dashboard to integrate with your lead source. ```bash deepline workflows apply --payload '{\"name\":\"inbound-scoring\",\"trigger\":{\"type\":\"webhook\"},\"steps\":[/* enrich + score */]}' # After apply, copy the webhook URL from the dashboard at /workflows/inbound-scoring ``` -------------------------------- ### Example Prompt for Outbound Campaign Source: https://deepline.com/use-cases/build-outbound-campaign This snippet shows an example prompt for an outbound campaign. It outlines the steps to find competitors, scrape LinkedIn data, enrich emails, segment by persona, create campaigns, set budget limits, and write the run to a database. ```javascript self.__next_f.push([ 1, "1a:[\"$\",\"div\",null,{\"className\":\"relative z-\\[2] overflow-hidden rounded-\\[12px] border border-white/\"0.08\" bg-\\[#0a0a0a] shadow-\\[0_24px_60px_rgba(0,0,0,0.35)]\",\"children\":[[\"$\",\"div\",null,{\"className\":\"flex items-center gap-3 border-b border-white/\"0.06\" bg-\\[#111] px-3.5 py-2.5\",\"children\":[[\"$\",\"span\",null,{\"className\":\"inline-flex gap-1.5\",\"children\":[[\"$\",\"span\",null,{\"className\":\"inline-block h-2.5 w-2.5 rounded-full\",\"style\":{\"background\":\"#FF5F57\"}}], [\"$\",\"span\",null,{\"className\":\"inline-block h-2.5 w-2.5 rounded-full\",\"style\":{\"background\":\"#FEBC2E\"}}], [\"$\",\"span\",null,{\"className\":\"inline-block h-2.5 w-2.5 rounded-full\",\"style\":{\"background\":\"#28C840\"}}]]}]}, [\"$\",\"span\",null,{\"className\":\"ml-1 font-\\[family-name:var(--dl-font-mono)] text-\\[12px] text-white/55\",\"children\":\"the prompt — copy and paste\"}], [\"$\",\"span\",null,{\"className\":\"ml-auto rounded-full bg-white/\"0.08\" px-2.5 py-\\[3px] font-\\[family-name:var(--dl-font-mono)] text-\\[11px] text-white/70\",\"children\":\"Claude Code\"}]]}, [\"$\",\"div\",null,{\"className\":\"grid grid-cols-\\[18px_1fr] gap-3 px-5.5 py-5 font-\\[family-name:var(--dl-font-mono)] text-\\[13.5px] leading-\\[1.55] text-\\[#e2e8f0] [\u0026_code]:font-\\[family-name:var(--dl-font-mono)] [\u0026_code]:text-\\[#67e8f9] [\u0026_em]:not-italic [\u0026_em]:text-\\[#fbbf24]\",\"children\":[[\"$\",\"span\",null,{\"className\":\"text-\\[var(--dl-indigo-soft)]\",\"children\":\"❯\"}]}, [\"$\",\"span\",null,{\"children\":[\"Find competitors for \", [\"$\",\"em\",null,{\"children\":\"\\\"ramp.com\\\"\"}]}, \", scrape their executives' LinkedIn engagers, waterfall-enrich emails using\", \" \", [\"$\",\"code\",null,{\"children\":\"[apollo, crustdata, pdl]\"}], \", segment by persona from\", \" \", [\"$\",\"em\",null,{\"children\":\"PERSONAS.md\"}], \", and create one Instantly campaign per persona with the templates in \", [\"$\",\"em\",null,{\"children\":\"./templates/\"}], \", Cap spend at\", \" \", [\"$\",\"em\",null,{\"children\":\"$$50\"}], \", Write the run to\", \" \", [\"$\",\"code\",null,{\"children\":\"postgres://deepline_runs\"}], \",.\" ]}]]}]] )self.__next_f.push([ 1, "1b:[\"$\",\"div\",null,{\"className\":\"mt-7\",\"children\":[\"$\",\"$L2d\",null,{\"theme\":\"light\",\"playName\":\"company-to-contact\",\"substeps\":[{\"type\":\"run_javascript\",\"alias\":\"lines_24_705\",\"description\":\"Lines 24-705\ ``` ```javascript {\"type\": \"step_suite\", \"field\": \"company_to_contact_by_role_waterfall_steps\", \"steps\": [{\"type\": \"tool\", \"toolId\": \"dropleads_search_people\", \"field\": \"company_to_contact_by_role_waterfall_steps.dropleads_search_people_by_domain\", \"description\": \"dropleads_search_people_by_domain\", \"conditional\": true}, {\"type\": \"tool\", \"toolId\": \"dropleads_search_people\", \"field\": \"company_to_contact_by_role_waterfall_steps.dropleads_search_people_by_linkedin_company\", \"description\": \"dropleads_search_people_by_linkedin_company\", \"conditional\": true}, {\"type\": \"tool\", \"toolId\": \"deepline_native_search_contact\", \"field\": \"company_to_contact_by_role_waterfall_steps.deepline_native_search_contact_by_domain\", \"description\": \"deepline_native_search_contact_by_domain\", \"conditional\": true}, {\"type\": \"tool\", \"toolId\": \"deepline_native_search_contact\", \"field\": \"company_to_contact_by_role_waterfall_steps.deepline_native_search_contact_by_linkedin_company\", \"description\": \"deepline_native_search_contact_by_linkedin_company\", \"conditional\": true}, {\"type\": \"tool\", \"toolId\": \"apollo_search_people_with_match\", \"field\": \"company_to_contact_by_role_waterfall_steps.apollo_search_people_with_match\"}]}]}]}] ``` -------------------------------- ### Script Loading Example Source: https://deepline.com/blog/apollo-alternatives This snippet shows how JavaScript files are loaded asynchronously, including specific chunks for a web application. It includes nonce for security. ```javascript next/static/chunks/0.ty~cmhg9cau.js?dpl=dpl_6Sep8uEAyS8eHPuta6cap3Sdp4L2","async":true,"nonce":"$undefined"}]\n26:["$","script","script-4",{"src":"/_next/static/chunks/05t.74qii9ov-.js?dpl=dpl_6Sep8uEAyS8eHPuta6cap3Sdp4L2","async":true,"nonce":"$undefined"}]\n27:["$","script","script-5",{"src":"/_next/static/chunks/150e_kk9va1z0.js?dpl=dpl_6Sep8uEAyS8eHPuta6cap3Sdp4L2","async":true,"nonce":"$undefined"}]\n28:["$","$L6f",null,{"children":["$","$2d",null,{"name":"Next.MetadataOutlet","children":"$@70"}]}]\n ``` -------------------------------- ### Copy Workflows Across Clients Source: https://deepline.com/use-cases/agencies This example demonstrates how to replicate an existing prospecting workflow for a new client, ensuring configurations and API keys are isolated to the new workspace. ```bash # Run the same CEO prospecting workflow for Client Y. Use their API keys. ``` -------------------------------- ### Scaling to Full List and Pushing to Instantly Source: https://deepline.com/use-cases/build-outbound-campaign After reviewing a pilot, use this command to process the full list and push enriched leads with personalized openers to your Instantly campaign. ```bash deepline enrich --input icp-search.csv --output campaign.csv \ --with 'contacts=apollo_org_search:...' \ --with-waterfall email \ --with 'verify=leadmagic_email_validation:...' \ --with 'personalize=deeplineagent:...' deeline enrich --input campaign.csv \ --with '{"alias":"push","tool":"instantly_add_to_campaign","payload":{"campaign_id":"eng-leaders-q2","leads":[{"email":"{{email}}","first_name":"{{first_name}}","last_name":"{{last_name}}"}]}}' ``` -------------------------------- ### Deepline's Automated Waterfall Play Example Source: https://deepline.com/blog/clay-vs-apollo This example shows how Deepline automates provider sequencing for lead enrichment. It defines a 'play' that tries providers in a cost-optimized order, starting with the cheapest and progressing to the most expensive if no result is found. ```text email-waterfall ``` -------------------------------- ### Example Prompt for Email Verification Source: https://deepline.com/use-cases/find-verified-emails This is an example of a prompt used to find verified work emails for leads from a CSV file. It outlines the process of using waterfall enrichment and validation tools, starting with a pilot set of rows and then processing the full list. ```text Find verified work emails for leads.csv using waterfall enrichment across [apollo, hunter, pdl, prospeo, rocketreach]. Start with 2 rows as a pilot, then run the full list, validate with leadmagic_email_validation, and push the verified contacts into Instantly campaign abc123. ``` -------------------------------- ### Install Claude Code Skill Source: https://deepline.com/llms.txt Install the Claude Code skill globally to enable its functionalities. This command adds the skill and its associated agents. ```bash npx skills add "https://deepline.com/.well-known/skills/index.json" --agents claude-code --global --yes --skill '*' --full-depth ``` -------------------------------- ### Automate Prospecting and Enrichment for Client X Source: https://deepline.com/use-cases/agencies Use this command to set up a new organization for a client, switch to it, and then enrich a prospect list using specified criteria and waterfall enrichment. It also pushes the enriched leads to a specified campaign. ```bash # Create a new organization in the dashboard at /settings/organizations, # then switch the CLI to it: deepline auth switch client-x deepline enrich --input target-companies.csv --output prospects.csv \ --with-waterfall email \ --with 'apollo=apollo_people_match:...' deepline enrich --input prospects.csv \ --with '{"alias":"push","tool":"instantly_add_to_campaign","payload":{"campaign_id":"q2-outbound","leads":[{"email":"{{email}}","first_name":"{{first_name}}","last_name":"{{last_name}}"}]}}' ``` -------------------------------- ### Example ICP Criteria for Lead Scoring Source: https://deepline.com/use-cases/score-inbound-leads Define criteria for a good lead based on company size, industry, and technology stack. This example uses a simple text format for clarity. ```text Series B+ SaaS company 100-500 employees US-based Uses Snowflake or dbt (bonus) ``` -------------------------------- ### Example RevOps Workflow with Deepline Source: https://deepline.com/use-cases/revops This snippet demonstrates a typical RevOps workflow using Deepline, involving data enrichment from multiple sources, validation, and scoring against an Ideal Customer Profile (ICP). It shows how to pilot the process on a small subset of data before full execution. ```bash deepline enrich stale-contacts.csv \ --from apollo,peopledatalabs \ --validate leadmagic_email_validation \ --agent deeplineagent \ --mode json \ --rows 0:2 \ --push-to outbound-q1 ``` -------------------------------- ### Set Up New Client Workspace and Run Enrichment Pipeline Source: https://deepline.com/use-cases/agencies Use this command to create a new workspace for a client, configure their API keys, and initiate an enrichment pipeline. It handles billing to the client's account and pushes verified leads to a campaign. ```Claude Code ❯Set up a new workspace for _Client X_, paste their `APOLLO_API_KEY`, and build a prospect list of _100 CEOs_ at US SaaS companies with _11-50 employees_. Waterfall emails through `[apollo, hunter, pdl]`, then push verified leads to their _Instantly_ campaign. Bill providers to their account. ```