@markupai/n8n-nodes-markupai
v0.2.6
Published
n8n node for MarkupAI
Readme

n8n-nodes-markupai
This is an n8n community node that integrates Markup AI — a content guardian platform for ensuring brand-compliant, consistent, and engaging content.
Markup AI provides AI-powered content analysis, suggestions, and rewrites based on your organization's brand standards. Integrate content quality checks and automated improvements directly into your n8n workflows.
Installation · Operations · Credentials · Usage · Resources · Development
Installation
Community Nodes (Recommended)
- In n8n, go to Settings > Community Nodes
- Select Install
- Enter
@markupai/n8n-nodes-markupaiin the package field - Click Install
For detailed instructions, visit the n8n community nodes installation guide.
Manual Installation
To install manually, run the following command in your n8n installation directory:
npm install @markupai/n8n-nodes-markupaiOperations
The Markup AI node supports the following operations:
Style Check
Analyze content for quality issues without making changes.
Returns:
- Quality, clarity, and grammar scores
- Style guide compliance metrics
- Tone analysis
- Readability metrics
- Detailed list of identified issues
Style Rewrite
Automatically rewrite and improve content using AI.
Returns:
- Improved content version
- Before/after quality scores
- Score improvements
- Comparison metrics
Credentials
To use this node, you'll need a Markup AI API account.
Setting up credentials:
- Sign up for a Markup AI account
- Get your API key from your account settings
- In n8n, add new credentials:
- Go to Credentials > New
- Search for Markup AI API
- Enter your API key
- Click Save
Usage
Configuration Options
All operations support the following options:
| Option | Type | Default | Description |
| ----------------------- | ------- | ------- | ------------------------------------------- |
| Style Guide | String | - | The style guide to apply |
| Dialect | String | - | The dialect to be used for content analysis |
| Tone | String | - | The desired tone for content (optional) |
| Wait for Completion | Boolean | true | Auto-poll for results |
| Polling Timeout | Number | 60000 | Maximum wait time in milliseconds |
| Polling Interval | Number | 2000 | Polling frequency in milliseconds |
Example Workflows
Content Quality Gate
- Trigger: New document added to Google Drive
- Markup AI → Style Check: Analyze document content
- Condition: Check if quality score meets threshold
- If passed: Approve and publish
- If failed: Send notification to content team
Automated Content Improvement
- Trigger: Webhook receives content for publication
- Markup AI → Style Check: Analyze initial quality
- Markup AI → Style Rewrite: Improve content
- Send improved version to CMS for publication
Common Use Cases
Content Compliance & Consistency: Ensure all company content — from blogs and web pages to documentation and marketing materials — aligns with brand and style guidelines while maintaining a consistent tone.
Automated Quality Gates: Ensure content meets standards automatically before publication. Monitor content changes in real-time and prevent non-compliant content from going live.
Quality at the Source: Create and maintain high-quality content right where it's produced. Proactively monitor consistency and compliance across CMS platforms like Google Drive and beyond.
Early Issue Detection: Automatically identify and flag potential issues or non-compliant content within workflows before they become problems.
Streamlined Content Compliance: Minimize manual reviews by automating content compliance checks and review processes throughout your content lifecycle.
Actionable Alerts: Go beyond flagging issues — automatically trigger notifications to stakeholders within workflows, transforming compliance checks into immediate corrective actions.
Resources
- Markup AI Documentation
- Markup AI Website
- n8n Community Nodes Documentation
- n8n Documentation
- GitHub Repository
Development
Contributions are welcome! This section is for developers who want to contribute to this community node or set up a local development environment.
Prerequisites
- Node.js >= 24
- npm
- Basic familiarity with n8n and TypeScript
Quick Setup (Recommended)
After cloning this repository, run the automated setup script:
npm run setupThis will:
- Install dependencies (including n8n as a devDependency)
- Build the code and create the dist folder
- Link the package from the dist folder (avoiding node_modules conflicts)
- Configure the n8n custom directory
- Fix n8n config file permissions
- Link the package for local development
Then start n8n:
npm startThis uses the local n8n installation from devDependencies — no global installation needed!
Note: The setup links from the dist folder rather than the project root. This ensures that n8n only loads the compiled code without development dependencies, preventing module loading conflicts.
Environment Configuration
For development, you can configure the API base URL using environment variables:
Option 1: Using a .env file
Copy the example environment file:
cp .env.example .envEdit
.envand set your development API URL:MARKUP_AI_BASE_URL=https://api.dev.markup.ai/Start n8n (it will automatically load the
.envfile):npm start
Option 2: Export environment variable directly
export MARKUP_AI_BASE_URL=https://api.dev.markup.ai/
npm startNote: By default, the node uses the production API URL (https://api.markup.ai/). The environment variable is only needed for development or custom API endpoints. n8n automatically loads .env files from the current working directory, so no additional tools are required.
Manual Setup
If you prefer to set things up manually:
- Install dependencies after cloning this repository
npm install- Build the code
npm run build- Link the build from the dist folder
cd dist
npm link
cd ..- Create a
customdirectory inside n8n if it does not exist
# In ~/.n8n directory run
mkdir -p ~/.n8n/custom
cd ~/.n8n/custom
npm init -y- Link the custom folder to the build
npm link @markupai/n8n-nodes-markupai- Fix n8n config file permissions (if needed)
chmod 600 ~/.n8n/config- Start n8n
# Back in your project directory
npm startYou should now see Markup AI in the list of nodes. Happy hacking!
Making Changes
- Make your changes in the
nodes/orcredentials/directories - Build the code:
npm run build - Test in n8n (refresh the browser if n8n is already running)
- Run tests:
npm test - Run linter:
npm run lint:check
Testing
Run the test suite:
npm testRun tests with coverage:
npm run test:coverageRun tests in watch mode during development:
npm run test:watchTroubleshooting
Module loading errors: If you see errors like require(...).index is not a constructor, make sure you've linked from the dist folder, not the project root. To fix:
npm run cleanup # Remove old links
npm run setup # Set up correctlyPermissions errors: If you see warnings about file permissions, run chmod 600 ~/.n8n/config to fix them.
Resetting the development environment: If you need to start fresh:
npm run cleanup # Removes all npm links
npm run setup # Sets up from scratchDebugging setup issues: If you encounter problems during setup, enable debug mode for detailed output:
DEBUG=1 npm run setup # Verbose setup with debug information
DEBUG=1 npm run cleanup # Verbose cleanup with debug informationThis will show:
- Exact commands being executed
- Full command output (both stdout and stderr)
- Detailed error information when commands fail
- Working directory for each command
License
Support
- For general n8n questions: n8n Community Forum
- For Markup AI API questions: Markup AI Support
Made with ❤️ by the Markup AI team
