generate_blog_post
Generate a complete AI-written blog article for your publication. Specify topic, voice, and keywords to get a draft ready for editing or publishing.
Instructions
Generate a full AI blog article. Requires a publicationId (from list_blogs or create_publication). Pass a voiceProfileId to write in a specific person's style (IDs from list_voices). Returns an articleId + operationId; generation is async — poll get_blog_status until completed, then get_blog_article. Use update_blog_article to edit, or publish_blog_article to push to external platforms. To make it live on your PostKing blog, call update_blog_article with status: 'published'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| topic | Yes | Topic or working title for the post | |
| brandId | No | Brand ID (uses active brand if omitted) | |
| targetLength | No | medium | |
| publicationId | Yes | Blog publication ID | |
| voiceProfileId | No | Voice profile ID for writing style (from list_voices) | |
| generateAiImage | No | Generate an AI header image | |
| primaryKeywords | No | SEO keywords to target | |
| selectedAssetId | No | ID of the brand asset to use for the header image | |
| skipBrandContext | No | Omit brand context from the generation prompt when true | |
| attachVisualAsset | No | Use a brand visual asset (with branding) for the header image | |
| readabilityTarget | No | Readability level for the writing, e.g. 'grade-8' | |
| secondaryKeywords | No | Secondary SEO keywords to target | |
| imageVariationCount | No | Number of AI image variations to generate (1-5). Only used when generateAiImage is true. |