Builder step 3: write the article
write_from_outlineArticle Builder, step 3. Write the full article from title + outline (the object returned by generate_outline, edited as you like). Slow: several LLM calls, typically 1-3 minutes, returns when done. Returns { article: { title, sections: [{ id, title, content (HTML), imageUrl }], guardrails } }. Nothing is saved or published yet. Next: regenerate_section to fix one part, then publish_article_from_builder to put it on the plan. Pass saveDraft: true to also store progress as a builder draft (returns draftId). Keys accepted in outline: sections.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | Yes | The site to act on. One of: fencestainingdenver.com. | |
| urls | No | Source articles to draw on (required for remix, max 1 there) | |
| title | Yes | ||
| prompt | Yes | The original article brief | |
| draftId | No | Existing builder draft to update when saveDraft is true | |
| outline | Yes | ||
| saveDraft | No | ||
| locationId | No | Business location id to focus on (multi-location sites) | |
| articleType | No | smart-composer (default) writes fresh; remix rewrites the article at `urls` | |
| useExternalLinks | No | Cite outside sources (default true) | |
| useInternalLinks | No | Link to the site's own pages (default true) | |
| useYouTubeVideos | No | Embed relevant YouTube videos (default false) | |
| youtubeChannelUrl | No | Prefer videos from this channel (youtube.com/@handle or youtube.com/channel/UC...) |