content_for_goal
START HERE when the user says 'write the blog / page for this goal'. Resolves the goal's existing brief or opens one (keyword derived from the goal title unless you pass target_keyword — confirm a derived keyword with the user), links the brief to the goal, moves the goal to active, and returns the next step of the content loop: interview → voice → outline → draft → score → sources → publish → outcomes. Publishing later ticks the goal's progress. Then follow next_step exactly as the content_engine prompt describes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | No | What the user said about angle or audience | |
| goal_id | Yes | The goal ID (list_goals) | |
| site_id | Yes | The site ID | |
| target_keyword | No | The keyword the piece targets, if the goal title does not say |