@zoominfo/gtm-ai-cli 2.0.0 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +52 -0
  2. package/dist/index.js +70 -70
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -184,6 +184,9 @@ gtm companies enrich --domain stripe.com --fields name description website reven
184
184
 
185
185
  # Bulk: up to 10 companies via JSON file
186
186
  # companies.json: [{ "domain": "stripe.com" }, { "companyId": "344589814" }]
187
+ # Each entry takes the MCP keys (companyId, companyName, companyWebsite, domain, companyTicker,
188
+ # ipAddress, companyCity, ...) or the flag names (id, name, website, ticker, ip).
189
+ # Unsupported keys are rejected.
187
190
  gtm companies enrich --file companies.json
188
191
  ```
189
192
 
@@ -244,6 +247,9 @@ gtm contacts enrich --email jane@acme.com --fields phone jobTitle managementLeve
244
247
 
245
248
  # Bulk: up to 10 contacts via JSON file
246
249
  # contacts.json: [{ "email": "a@b.com" }, { "personId": "1260398587" }]
250
+ # Each entry takes the MCP keys (personId, email, phone, firstName, lastName, fullName,
251
+ # companyName, companyId, jobTitle, ...) or the flag names (id, company).
252
+ # Unsupported keys are rejected.
247
253
  gtm contacts enrich --file contacts.json
248
254
  ```
249
255
 
@@ -418,6 +424,52 @@ gtm engagements ask --engagement-id "abc123" --query "Summarize this call" --inc
418
424
 
419
425
  ---
420
426
 
427
+ ### `gtm audiences` — GTM Studio audiences
428
+
429
+ Audiences are GTM Studio's list-building workbooks (rows of contacts or companies, plus custom
430
+ and AI-populated columns). The write subcommands drive a downstream AI agent, so they require
431
+ `--instruction` — a complete, self-contained description of what to do (the agent sees nothing
432
+ else from your session).
433
+
434
+ ```shell
435
+ # Find an audience (the returned id is the audienceId for every other subcommand)
436
+ gtm audiences list --search "Q3 outbound" --type COMPANY
437
+
438
+ # Columns + a 10-row preview
439
+ gtm audiences get --id <audienceId> --preview 10
440
+
441
+ # Create — plain named audience
442
+ gtm audiences create --name "Q3 outbound targets" --type COMPANY \
443
+ --instruction "Create an audience for Q3 outbound targets: enterprise SaaS companies in North America."
444
+
445
+ # Create from ZoomInfo search criteria (pass the exact search params as JSON)
446
+ gtm audiences create --name "Boston CFOs" --type CONTACT \
447
+ --instruction "Build a lead list of CFOs at Boston-area companies." \
448
+ --search-query '{"jobTitleList":["CFO"],"metroRegion":"MA - Boston"}'
449
+
450
+ # Rename / annotate
451
+ gtm audiences update --id <audienceId> --name "Q4 outbound targets" \
452
+ --instruction "Rename the audience to Q4 outbound targets."
453
+
454
+ # Add columns / load rows from JSON files
455
+ gtm audiences columns --id <audienceId> --file ./columns.json
456
+ gtm audiences rows --id <audienceId> --file ./rows.json \
457
+ --instruction "Load these trade-show leads into the audience."
458
+
459
+ # Ask the analysis agent
460
+ gtm audiences analyze --id <audienceId> --query "Summarize this audience and show the top industries"
461
+ ```
462
+
463
+ `--search-query` takes the exact params of the matching search (`search_companies` for `COMPANY`,
464
+ `search_contacts` for `CONTACT`) as a JSON object — run the search with `--debug` to see them.
465
+ `page`, `pageSize`, and `sort` are dropped, since they don't apply to audience creation.
466
+
467
+ `columns.json` is an array of `{ name, dataType, agentInstruction }` (add `columnId` to update);
468
+ `rows.json` is an array of `{ values: [{ columnId, value }] }` (add `rowId` to update, max 50 per
469
+ call). Column and row IDs come from `gtm audiences get`.
470
+
471
+ ---
472
+
421
473
  ### `gtm raw` — universal escape hatch
422
474
 
423
475
  Use this when you need a tool that doesn't have a curated wrapper yet.