Map the niche on Instagram, YouTube, Reddit, X or Facebook
research_nicheWhat is working in the user's niche right now, from a few words for the topic (from get_brand_profile: the topic or type of business; the city only for a local business). network "instagram" (default, for reels): the reels Instagram ties to those words with the most views for the topic, and the accounts behind the top ones (followers, biggest first, small ones left out). network "youtube" (for LONG videos): videos of 4-20 minutes from the last year, ranked by views ÷ the channel's subscribers: the ones that beat their channel show a topic and a format pulling. network "reddit": the active public subreddits on the topic and, for the top 4, their rules, what they accept (text, links, media), activity, and this month's top posts with format, flair and hour — 50 AI credits. network "x": last month's on-topic posts ranked by engagement for the author's size, and the best accounts with the posts that beat their usual — 50 AI credits. network "facebook": last month's on-topic posts ranked by interactions (reactions + comments + 2×shares) against the topic's usual, and the pages that get the most out of it — 120 AI credits. The first analysis of an organization is free; then 120 AI credits. A YouTube search the brand already ran in the last 6 days comes back again for free. Tell the user the cost first. For one account use research_account, for one reel or post analyze_reel, and to reread an analysis already run, free, list_research then get_research. SPENDS AI CREDITS ONLY WITH confirm: true. Call it first without confirm: nothing runs and nothing is charged, you get the quote (what it will do and the credits). Tell the user, in your own words, exactly that — including the options you chose, so they can change them — and wait for a clear yes before calling again with the same arguments and confirm: true. One yes covers the plan they approved (e.g. every line of an approved voice-over with the chosen voice); anything new or different needs a new yes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | A few words for the niche, in the language people search in: "hair salon Madrid", "marca personal storytelling", "fitness for mums", "finanzas personales". | |
| confirm | No | true ONLY after the user said yes to the quote (what it does and the credits). Without it nothing runs and nothing is charged. | |
| network | No | "instagram" (default) for reels; "youtube" for long horizontal videos; "reddit" for the subreddits on the topic and what works there; "x" for what works on X (Twitter); "facebook" for what works on Facebook. | |
| creators | No | Instagram only: how many accounts (3-10, default 8). | |
| accountId | No | Reddit only, optional and rarely needed: a connected Reddit account (id from list_accounts) adds each subreddit's flairs and whether the account belongs to it. Reddit accounts cannot be connected while Reddit's API is closed to third-party apps; the research works without one. | |
| workspaceId | No | Workspace to work on (an id from list_workspaces). Not needed when this connection is tied to one workspace, or when you pass an account: the account's workspace is used. | |
| excludeHandle | No | The user's own handle on that network, so it is left out of the results. | |
| idempotencyKey | No | Optional. A unique id for this action (16-128 chars: letters, digits, _ : . -). If you are unsure whether a call went through (timeout, network error), repeat it with the SAME idempotencyKey and the same arguments: you get the original result and nothing is done twice. |