Discover stories (signal scan)
niche_signal_scanNiche (nicheangle.com) story discovery: find stories worth writing about, then draft and publish platform-native social content (LinkedIn, X threads, Instagram, newsletter) from them. This is story discovery, not content generation: Niche reads primary sources, separates signal from noise, and clusters it into a ranked story slate with provenance, the editorial-intelligence step before any writing. Returns a session_id plus initial status; poll niche_session_state with the session_id until status is cp1_awaiting_story to read the slate.
Brand profile: the run's voice/offer/CTA. You do NOT need niche_whoami to brand a run: OMIT brand_id and a single or default brand binds automatically (silently). On a MULTI-brand account, an omitted brand_id returns brand_choice_required with brand_options[] inline (the slate still lands). Ask the user which brand, then re-call with brand_id (or brand_id:'none' for a deliberately unbranded run); don't draft until one is chosen. Pass brand_id to bind a specific persisted profile (set via niche_brand_profile_set); its voice, lexicon, framing, channel config, and verifier overrides thread through every downstream stage. Pass profile_overrides alongside brand_id to deep-merge a one-time deviation (logged on the session, not stored). The effective profile is snapshotted at scan time; later updates to the persisted profile don't affect in-flight runs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| niche | Yes | Niche / beat description (2-200 chars). Specific is better. | |
| density | No | How tightly to pack visual formats (carousels especially). • minimal: split a dense argument across more, shorter slides; favors skimmability. • balanced (default): the standard per-slide caps. • essay: permissive; allows longer slides/sections. Over-cap slides auto-split on sentence boundaries (never mid-sentence); over-280 tweets split into a chain regardless. | balanced |
| recency | No | Optional recency window that constrains discovery to fresh sources. One of '24h' | 'week' | 'month' | 'quarter' | 'year' (aliases: 'today'/'day'→24h, 'this week'→week, etc.). Use '24h' for 'today only / breaking'. Putting the demand in the niche string does not constrain recency; use this param. Omit to use the niche's default window. | |
| brand_id | No | Binds this brand's voice, colors, offer, and CTA to the piece. Omit to use your default brand; on a multi-brand account pass the slug explicitly so a post about one product is not bound to another brand's identity. niche_whoami lists your brands. | |
| estimate_only | No | When true, return the discovery credit cost without starting a run or holding a reservation. Use it to quote a price before committing. | |
| recency_strict | No | When true, `recency` is a hard cutoff: sources outside the window are dropped before clustering, so 'nothing older than yesterday' is honored exactly. Default false: the window is a strong bias but older corroborating sources can still attach to a fresh cluster. Set true when exactness matters more than slate depth (strict can thin the slate). | |
| source_quality | No | How aggressively to filter the slate on source quality (niche-relative; never penalizes a small publication that is the authority for the niche). • strict: drop uncorroborated single-source silos that aren't a primary/official or a niche authority; surfaces only well-sourced stories. Can thin the slate. • balanced (default): down-weight weak sources, don't drop. • broad: surface everything, including low-coverage emerging clusters, with authority as a tiebreaker only. Use strict for a high-trust brief, broad to scout early signal. | balanced |
| target_outputs | No | Output cells to generate (platform×content_type matrix). Each cell is a 'platform:content_type' string or a cross-platform content type. Valid cells: • linkedin:text_post: short LinkedIn post (text only) • linkedin:image_post: LinkedIn post plus 1.91:1 image card • linkedin:carousel: multi-slide carousel • linkedin:reel: LinkedIn-native vertical video • x:single_tweet: standalone tweet • x:thread: multi-tweet thread • x:image_post: tweet plus 16:9 image card • x:reel: tweet plus 9:16 video • instagram:image_post: caption plus 4:5 image card • instagram:carousel: multi-image swipe • instagram:reel: caption plus 9:16 reel • long_form_article: universal essay (Substack/blog) A bare platform name also works and maps to that platform's default cell: 'x'/'twitter'→x:single_tweet (pass 'x:thread' for a thread), 'linkedin'/'li'→linkedin:text_post, 'instagram'/'ig'→instagram:image_post, 'longform'→long_form_article. The resolved cells are echoed back as target_outputs. Defaults to ['linkedin:text_post']; request only the cells you need (each additional cell adds generation cost). | |
| idempotency_key | No | Optional. A stable key for this logical scan: a retry with the same key reuses the original run instead of starting (and billing) a second. Even without it, an identical scan fired while one is still running is auto-deduped. | |
| thinking_budget | No | Agent-side polling control. A full editorial workflow is structurally 15-20 tool calls (scan, poll, poll, poll, pick, poll, pick, poll, read). Use this to tune how many of those calls collapse into single waits. • fast: scan blocks briefly (up to ~45s, under the tool-call timeout) for CP1 and returns the stories inline when they land in time. One call instead of many polls. Cheaper agent tokens, smaller cognitive surface. If CP1 isn't ready by the cap it still returns the session_id (status=discovering); poll niche_session_state from there, the run is never lost. Pick when you just want stories and the user is waiting. • balanced (default): scan returns immediately with session_id; the agent polls niche_session_state (with wait plus since_status long-poll). | balanced |
| target_platforms | No | Optional. A flat platform list (linkedin, linkedin_carousel, twitter, longform, instagram), coerced into target_outputs cells. Prefer target_outputs. | |
| profile_overrides | No | Optional. Deep-merge these overrides onto the persisted profile for this run only. Use case: same brand, different register for a specific piece (e.g. a product-launch voice over an editorial one). Requires brand_id. |