Библиотека / Написание и генерация контента
Написание и генерация контента
Генерация недостающих анонсов записей WordPress с помощью OpenAI и REST API
Раз в неделю или по запросу находит опубликованные записи WordPress без анонса, с помощью OpenAI пишет его на языке записи и сохраняет через REST API после пробного запуска.
Что делает
# Generate missing excerpts for WordPress posts with OpenAI ## Who's it for WordPress site owners, content marketers and SEO teams with many posts that have no hand-written excerpt. ## How it works Every week, or on demand, the workflow fetches your latest posts and keeps published ones that have no excerpt and enough content. OpenAI then writes a short plain-text excerpt in the same language as the post. Dry run mode is on by default and only shows the generated excerpts, so nothing changes on your site. When you turn it off, each excerpt is saved back to WordPress through the REST API. Invalid AI output is skipped. ## How to set up 1. In WordPress, open Users, Profile, Application Passwords and create a new password. 2. Add your WordPress API and OpenAI credentials in n8n. 3. Open the Workflow Configuration node and set your site URL, posts to scan, posts per run, model and excerpt length. 4. Click Execute workflow with dryRun set to true and review the excerpts. 5. Set dryRun to false and activate the workflow. ## Requirements - WordPress 5.6 or higher with the REST API and Application Passwords enabled - OpenAI API key - n8n Cloud or self-hosted n8n ## How to customize the workflow - Edit the prompt to match your brand voice. - Change the schedule or the number of posts per run. - Add a Slack or email step to report which posts were updated.
Шаги
- Run Manually
- Run Weekly
- Workflow Configuration
- Get Posts from WordPress
- Keep Posts Without Excerpt
- Limit Posts Per Run
- Prepare Post Text
- Write Excerpt with OpenAI
- Validate AI Excerpt
- Is Excerpt Valid?
- Is Dry Run Enabled?
- Save Excerpt to WordPress
- Preview Only - No Changes Saved
- Skip Invalid AI Output
Похожие автоматизации
Финансы, счета и бухгалтерияВызов REST API NetSuiteШагов: 3Финансы, счета и бухгалтерияВызов NetSuite REST API из n8nШагов: 13Код, Git и инструменты разработчикаЗагрузка нескольких файлов в репозиторий GitHub через REST APIШагов: 9Код, Git и инструменты разработчикаОтправка нескольких файлов в GitHub через REST APIШагов: 35