Translate new WordPress posts into localized drafts

By General Input

Every weekday morning, turn each newly published post into review-ready German, French, and Spanish drafts, tagged by language and ready for an editor.

Integrations

  • DeepL
  • WordPress

Type

Agentic Task

Categories

  • Marketing
  • Operations

Every weekday at 8am, check my WordPress site for blog posts that were published since the last time this workflow ran. Use WordPress List Posts filtered to status 'publish' and ordered by date with the newest first, and only take posts whose publish date is after the previous run so the same post never gets translated twice.

For each new post, translate both the title and the full body into my target-market languages: German, French, and Spanish. Use DeepL Translate Text for every translation. Because the WordPress body is HTML, set tag_handling to html so all formatting (headings, links, lists, bold, and images) survives the translation intact. DeepL target language codes accept regional variants, so use codes like DE, FR, ES (or PT-BR if I add Brazilian Portuguese later).

Skip the post's own source language. Let DeepL detect the source language of the post, and if the post is already written in one of the target languages, do not translate it back into itself. Only produce drafts for the remaining target languages.

For every remaining language, create a localized draft back in WordPress using Create a Post with status set to draft. Carry over the translated title and the translated HTML body exactly. Tag each draft with the locale (for example a 'de', 'fr', or 'es' tag) so an editor can filter and find it, and note in the draft which language it targets, for example by prefixing the title with a [DE], [FR], or [ES] marker. Leave everything as a draft so an editor can review and publish when it is ready.

At the end of each run, keep track of the latest publish date processed so the next run only picks up newer posts, and note how many source posts were found and how many localized drafts were created per language.

Related prompts

Explore more prompts
Shoppable link console for your WordPress recipe archiveContent decay review board for your WordPress pagesTranslation coverage grid for your published WordPress postsAnswer Intercom chats in any language, with a meaning checkFind and fix missing Contentful translations in one boardBrand terminology console that pushes terms live to DeepLContent audit and refresh desk for your marketing siteTranslation coverage board for your app's language filesAnswer foreign-language Zendesk tickets in the customer's languageTurn every WordPress post into a narrated audio version