Build a LinkedIn search URL
search_url_buildTurn an audience description into a LinkedIn or Sales Navigator people-search URL, so a campaign source can be described rather than pasted. Returns the url plus what it managed to express — hand it to campaign_set_source.
What it can build: job titles (included and excluded) and free-text keywords with boolean operators. What it CANNOT build: geography, industry, company size, seniority and years-in-role. Sales Navigator only accepts those as numeric ids from its own typeahead (id:103644278 is United States), they cannot be derived from a name, and a wrong id silently searches the wrong audience. For those, either ask the user to paste a Sales Navigator URL with the filters already set, or pass the ids through extraFilters if the user supplies them. Never guess one.
Recruiter (/talent/) URLs cannot be built at all — ask the user for one.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| school | No | Basic search only: school, free text. | |
| titles | No | Job titles to include, as plain text. | |
| company | No | Basic search only: current company, free text. | |
| surface | Yes | "basic" is ordinary LinkedIn search; "sales-navigator" needs a Sales Navigator seat. | |
| keywords | No | Free text. Supports boolean operators, e.g. '"chatbot" OR "AI agent"'. | |
| lastName | No | Basic search only. | |
| firstName | No | Basic search only. | |
| extraFilters | No | Id-based filters, only when the USER supplied the ids or they came from a URL they pasted. Do not populate this from memory. | |
| excludeTitles | No | Job titles to exclude. Sales Navigator only — basic search cannot express an exclusion. |