# Convert Markdown to Contentful Rich Text with AI and publish via API
This workflow automates the conversion of Markdown content into structured, schema-compliant Rich Text JSON for Contentful using AI, then publishes it via the Management API. Enables teams to eliminate manual formatting and validation errors during content ingestion.
## Who it´s for
- Content managers publishing technical documentation in Contentful
- Developers automating Markdown-to-CMS content imports
- Marketers bulk-uploading articles while preserving formatting
- Teams adopting headless CMS with AI-powered content conversion
## What the automation does
- Ingests Markdown content with metadata via execute_workflow_trigger
- Splits content into chunks by headings for precise processing
- Processes each chunk using a LangChain agent with GPT-4.1 to generate valid Contentful Rich Text JSON
- Merges formatted chunks with metadata
- Publishes the result as a new entry in Contentful via Management API
## What´s included
- Ready-to-use n8n workflow
- Trigger and handler logic based on execute_workflow_trigger
- Integrations with OpenAI, Contentful API, and JavaScript Code Node
- Basic textual guide for launch and adaptation
## Requirements for setup
- n8n account (cloud or self-hosted)
- OpenAI API key with access to GPT-4.1
- Contentful space with Management API key
- Source Markdown content (e.g., from Notion, CI/CD pipeline, or local file)
## Benefits and outcomes
- Full automation of Markdown to Rich Text conversion
- Guaranteed compliance with Contentful’s data schema
- Reduced validation errors and faster publishing cycles
- Support for batch uploading articles and documentation
- Streamlined workflows for teams using headless CMS
- Accurate AI handling of complex formatting (lists, tables, quotes)
## Important: template only
Important: you are purchasing a ready-made automation workflow template only. Rollout into your infrastructure, connecting specific accounts and services, 1:1 setup help, custom adjustments for non-standard stacks and any consulting support are provided as a separate paid service at an individual rate. To discuss custom work or 1:1 help, contact via chat
No feedback yet