Multi-Step Workflows

Multi-Step Workflows

50 workflows that chain 2-8 API calls to answer complex questions. Each uses exact curl commands tested against production.

Top 10 Workflows

1. “Who are my colleagues?” (2 steps)

$# Step 1: Get your company ID
$GET /api/profile/me → positions[0].companyId = "42124361"
$
$# Step 2: Search by company ID
$GET /api/search/people?company=42124361

2. “Find the CEO of my advisor’s company” (4 steps)

$GET /api/profile/me → companyId
$GET /api/search/people?company={id} → find advisor → get vanity
$GET /api/profile/{advisor-vanity} → their companyId
$POST /api/salesnav/search → CURRENT_COMPANY + SENIORITY(CXO)

3. “Find ex-colleagues who moved to France” (2 steps)

$GET /api/profile/me → ALL positions[].companyId (up to 10)
$POST /api/salesnav/search → PAST_COMPANY(all IDs) + REGION(France)

4. “Who left the company most recently?” (3 steps)

$POST /api/salesnav/search → PAST_COMPANY(your company)
$GET /api/profile/{each} → check positions[1] (penultimate = just left)
$Sort by position index → lowest = most recent departure

5. Hiring Velocity (2 parallel queries)

$# Joiners: CURRENT_COMPANY + RECENTLY_CHANGED_JOBS
$# Leavers: PAST_COMPANY + RECENTLY_CHANGED_JOBS
$Compare counts → growing or shrinking?

6. Full Account Research (5 steps)

$GET /api/salesnav/typeahead?type=COMPANY_WITH_LIST&query=Stripe → companyId
$POST /api/salesnav/search → COMPANY + SENIORITY(Director+) → org chart
$POST /api/salesnav/search → COMPANY + RELATIONSHIP(F,S) → warm paths
$POST /api/salesnav/search → PAST_COMPANY + RELATIONSHIP(F) → insider intel
$POST /api/salesnav/search → COMPANY + RECENTLY_CHANGED + SENIOR → timing

7. 3-Path Contact Strategy (3 parallel queries)

$POST /api/salesnav/search → COMPANY + SCHOOL(your schools) → champion
$POST /api/salesnav/search → COMPANY + TITLE(CTO, VP) → decision maker
$POST /api/salesnav/search → COMPANY + RELATIONSHIP(F) → internal coach

8. Deal Scoring (4 queries per account)

$Query 1: COMPANY + RELATIONSHIP=F → count × 3 points
$Query 2: COMPANY + RELATIONSHIP=S + SENIOR → count × 2 points
$Query 3: PAST_COMPANY + RELATIONSHIP=F → count × 2 points
$Query 4: COMPANY + RECENTLY_CHANGED + SENIOR → count × 1 point
$Total = warmth score. Compare across accounts.

9. Send a Message (3 steps)

$GET /api/search/people?company={id} → find person → profileUrl
$Confirm with user
$POST /api/send → { profileUrl, message }

10. Full ABE Workflow (8 steps)

$1. INDUSTRY + TITLE + REGION → TAM list
$2. For each: deal scoring (4 queries)
$3. COMPANY + SENIORITY(Director+) → org chart
$4. COMPANY + RELATIONSHIP(F,S) → warm paths
$5. COMPANY + SCHOOL/PAST_COMPANY → champion
$6. COMPANY + RECENTLY_CHANGED → timing signal
$7. COMPANY + POSTED_ON_LINKEDIN → active prospects
$8. POST /api/send → personalized outreach
$~20 API calls per target account.

All 50 Workflows

CategoryFlowsSteps
Profile AnalysisMW1 (career duration), MW4 (shortest job), MW26 (CRM enrichment)1-2
Person DiscoveryMW3 (company size), MW5 (connection path), MW6 (message sender)2-3
Alumni/SchoolMW2 (alumni at company), MW7 (same-year grads), MW23 (unicorn founders)2
Career PathsMW9 (destinations), MW14 (who replaced me), MW18 (poaching map)2-3
RelationshipMW10 (warm intro), MW15 (investors), MW16 (VC referrals)2-3
ABM/SalesMW11 (TAM→enrich), MW20 (3-path), MW22 (engagement signals), MW37 (10 accounts)3-5
CompetitiveMW8 (leadership compare), MW21 (ML talent), MW30 (skills gap), MW36 (landscape)2-4
RecruitingMW19 (succession), MW40 (post-layoff), MW47 (revenue team)2-3
Investor RelationsMW25 (co-investors), MW43 (angels), MW45 (distribution list)2-3
Full WorkflowsMW39 (meeting prep), MW44 (new champion), MW50 (full ABE)5-8

Chaining Tips

  1. Extract IDs from each step — use numeric company IDs, not names
  2. Run independent queries in parallel — deal scoring has 4 independent queries
  3. Profile endpoint is the bridge — connects SalesNav results to LinkedIn profiles to position data
  4. maxResults=25 — enough for aggregation, fast for chaining
  5. Position index = recency — positions[0] is current, positions[1] is previous