Generate new prompt suggestions for a group
generate_prompt_suggestionsSchedules a PromptEye run to propose new prompts for a prompt group, checking demand and scoring candidate questions; results appear later for review.
Instructions
Asks PromptEye to propose new prompts for one prompt group of the active project, the same cycle the app runs when Generate is pressed on a group: it reads what the group is missing, drafts candidate phrases, checks their demand, expands them into questions and scores each one. PromptEye generates the prompts a project tracks: it works out which questions carry demand and phrases them the way people actually put questions to AI assistants, then proposes each one with the gap in the funnel it fills, the demand behind it, how close to a purchase it is asked and how well it fits the brand. list_prompt_suggestions returns those, ready to be accepted.
Scheduling a run is instant; the cycle itself runs in the background for a minute or more and is not waited on here. Call list_prompt_suggestions with the groupId afterwards for what it produced.
A run is not always worth scheduling — the group might already be healthy, the plan's paid work might not currently cover it, or the last run might still have proposals awaiting a decision. Then nothing is scheduled and runId comes back null with skipped saying why; that is not an error. A run already in progress, or no free plan slots left, is refused by the API instead — call get_prompt_suggestion_availability first to know which case applies.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| groupId | Yes | Id of the prompt group, as list_prompt_groups reports it. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| runId | Yes | Id of the run that was scheduled. null = nothing was scheduled, see skipped. | |
| skipped | Yes | Why no run was scheduled; set exactly when runId is null. not_eligible = the project's plan does not currently pay for background work, cooldown = the last run finished less than 7 days ago and its proposals still await a decision, nothing_to_suggest = the group is already healthy: no funnel gap to fill and nothing worth imitating. |