Create a saved search
create_saved_searchCreates a workspace saved search with curated entity comparison groups, keyword or boolean filters, and date/platform scoping for reuse across other tools.
Instructions
Create a workspace saved search with manually curated comparison groups of entities (get entity IDs from find_entities). It appears in the app for all workspace members and can be used as savedSearchId in the other tools. Keyword filters accept either keywords/excludeKeywords or a booleanQuery — not both. Dynamic (rule-based) groups can only be created in the app.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Saved search name. | |
| groups | Yes | Comparison groups (max 8). Analytics responses are keyed by group. | |
| keywords | No | Keywords to filter post content by. Cannot be combined with `booleanQuery`. | |
| dateRange | No | Date range filter. Omit or null = all time. | |
| platforms | No | Platforms to include. Omit or empty = all platforms. | |
| visibility | No | Workspace visibility: `team_edit` (default — any workspace member can edit) or `team_view` (view-only for members; also not editable via the API afterwards). | team_edit |
| description | No | Optional description. | |
| booleanQuery | No | Boolean keyword query matching the app's advanced search mode. Syntax: AND/OR/NOT (upper case), parentheses, quoted phrases with optional proximity ("health care"~3 = up to 3 words between, any phrase length, max 20), NEAR/N (either order) and THEN/N (ordered) between terms or groups, wildcards (elect*, wom?n), fuzzy (medicaid~1, max 2). Always use explicit operators between terms. Mixing AND or NOT with OR at the same depth is an error — parenthesize to make precedence explicit ((a AND b) OR c, (a OR b) NOT c). NEAR/THEN bind tighter than AND/OR — parenthesize a proximity expression that sits next to AND/OR ((a NEAR/5 b) OR c, (a OR b) NEAR/5 c). NOT is not allowed inside NEAR/THEN; exclude outside the proximity expression. Matching is exact-token, case- and accent-insensitive (no stemming) — cover word variants with OR or a wildcard (tariff OR tariffs, tariff*). Korean attaches particles to words, so put a trailing wildcard on each Korean term (검색*). Hindi is written in Devanagari and romanized, so OR both forms ((दोस्त OR dost)); Devanagari and Tamil matching ignores vowel signs, so expect some unrelated matches. Comments are ignored by search: // to the end of the line, <<< >>> inline or across lines. Full syntax: https://docs.alidade-ai.com/search-syntax. Cannot be combined with the keyword parameters. | |
| keywordMatch | No | Whether posts must match any (default) or all of `keywords`. | |
| excludeKeywords | No | Keywords that matching posts must not contain (exact word/phrase match). Cannot be combined with `booleanQuery`. | |
| keywordMatchType | No | Exact (default) matches the literal word or phrase; stemmed also matches English word variants (win/wins/winning). |