From d7f314ff7bd169fa24205f86973336acd7fb2aab Mon Sep 17 00:00:00 2001 From: Daniel Yudelevich Date: Wed, 2 Sep 2026 13:07:10 -0700 Subject: [PATCH 1/6] examples: cookbook of runnable GTM recipes Six new scripts plus CLI one-liners covering the searches the API page shows: seed-domain TAM, icp_prompt search, phrase match with count first, CRM export enrichment, contacts at discovered companies, and an agent opening the account through signup(). README is now one table of script, purpose, and run command. --- examples/README.md | 30 +++++---- examples/agent_signup_to_first_search.py | 71 ++++++++++++++++++++ examples/cli_recipes.sh | 29 ++++++++ examples/contacts_at_results.py | 58 ++++++++++++++++ examples/enrich_crm_export.py | 84 ++++++++++++++++++++++++ examples/icp_prompt_search.py | 33 ++++++++++ examples/phrase_match_count.py | 36 ++++++++++ examples/tam_from_seed_domains.py | 66 +++++++++++++++++++ 8 files changed, 395 insertions(+), 12 deletions(-) create mode 100644 examples/agent_signup_to_first_search.py create mode 100644 examples/cli_recipes.sh create mode 100644 examples/contacts_at_results.py create mode 100644 examples/enrich_crm_export.py create mode 100644 examples/icp_prompt_search.py create mode 100644 examples/phrase_match_count.py create mode 100644 examples/tam_from_seed_domains.py diff --git a/examples/README.md b/examples/README.md index 20e96da..d503c24 100644 --- a/examples/README.md +++ b/examples/README.md @@ -1,17 +1,23 @@ -# Examples +# Cookbook -Runnable, self-contained scripts showing how to use the DiscoLike Python SDK for common GTM workflows: matching a messy CRM export to DiscoLike contacts, finding verified work emails in bulk, and discovering plus AI-enriching target accounts. Each script is stdlib-plus-SDK only, has an argparse CLI, and is meant to be copied into your own pipeline and adapted. - -| Script | What it does | -|---|---| -| [`match_crm_contacts.py`](match_crm_contacts.py) | Match a CSV of CRM contacts to DiscoLike persona IDs via `contacts.bulk_match()`, with dual domain keys (website + email domain), resumable JSONL checkpointing, and a persona_id + match_score output CSV | -| [`find_emails_from_csv.py`](find_emails_from_csv.py) | Find work emails for a CSV of people (first name, last name, domain) via `email.find_batch()` in chunks of 500; only status "found" bills | -| [`discover_and_enrich.py`](discover_and_enrich.py) | Discover companies matching an ICP with `client.discover()`, then run a DiscoGen research prompt over them with `discogen.process()` and `job.wait()` | - -## Running +Runnable scripts for common GTM workflows on the [DiscoLike API](https://discolike.com/api/), written against the [Python SDK](https://docs.discolike.com/sdk/). Each one is stdlib plus `discolike`, takes its inputs on the command line, and reads your key from `DISCOLIKE_API_KEY`. ```bash -pip install discolike +pip install "discolike[cli]" export DISCOLIKE_API_KEY="dl_..." # create one at https://app.discolike.com/account/management/keys -python examples/