Automate Content Generation with Perplexity and AI
detail.loadingPreview
Leverage the power of Perplexity AI within n8n to automate the generation of rich, HTML-formatted content. This workflow transforms raw article data into engaging blog posts and articles, complete with structured formatting and optional attribution.
About This Workflow
This n8n workflow is designed to streamline content creation by integrating Perplexity AI and enhancing it with detailed formatting instructions. It takes structured article input, including title, metadata, main content, and hashtags, and uses Perplexity's powerful language models (like gpt-4o-mini or llama-3.1-sonar-small-128k-online) to research and generate content. The workflow then meticulously converts this content into a single-line HTML document, adhering to strict formatting guidelines. It ensures proper use of HTML tags for titles, paragraphs, and blockquotes, while omitting unnecessary document structure tags. This enables users to automatically produce polished, ready-to-publish articles with minimal manual effort.
Key Features
- AI-Powered Content Generation: Utilizes advanced AI models for research and text generation.
- Automated HTML Conversion: Transforms raw content into a single-line, well-formatted HTML document.
- Customizable Formatting: Strict guidelines ensure consistent and professional HTML output.
- Structured Article Input: Accepts detailed article data for comprehensive generation.
- Flexible AI Model Selection: Supports various Perplexity AI models for diverse needs.
How To Use
- Configure Perplexity Credentials: Ensure your Perplexity API credentials are set up correctly in n8n.
- Define Input Schema: Structure your incoming article data according to the provided JSON schema, including category, title, metadata (timePosted, author, tag), content (mainText, sections with title, text, quote), and hashtags.
- Set Up AI Node: Configure the Perplexity AI node with your chosen model (e.g.,
gpt-4o-mini-2024-07-18orllama-3.1-sonar-small-128k-online) and specify thesystemMessageandtextprompts. Thetextprompt should clearly outline the HTML conversion and formatting requirements. - Map Input Data: Use expressions (e.g.,
{{ $json.article.toJsonString() }}) to pass your structured article data into the AI node's prompt. - Define Response Format: Configure the
responseBodyto capture the AI's output, ensuring it's set to{{ $json.text }}for text responses. - Output HTML: The AI will generate an HTML string that can be further processed or sent to other services, potentially including a final JSON object with "title" and "content" fields.
Apps Used
Workflow JSON
{
"id": "27595014-f060-4099-86e8-352c8589ab99",
"name": "Automate Content Generation with Perplexity and AI",
"nodes": 19,
"category": "Operations",
"status": "active",
"version": "1.0.0"
}Note: This is a sample preview. The full workflow JSON contains node configurations, credentials placeholders, and execution logic.
Get This Workflow
ID: 27595014-f060...
About the Author
Free n8n Workflows Official
System Admin
The official repository for verified enterprise-grade workflows.
Statistics
Related Workflows
Discover more workflows you might like
Google Sheets to Icypeas: Automated Bulk Domain Scanning
This workflow streamlines the process of performing bulk domain scans by integrating your Google Sheets data directly with the Icypeas platform. Automate the submission of company names from your spreadsheet to Icypeas for comprehensive domain information, saving valuable time and effort.
Instant WooCommerce Order Notifications via Telegram
When a new order is placed on your WooCommerce store, instantly receive detailed notifications directly to your Telegram chat. Stay on top of your e-commerce operations with real-time alerts, including order specifics and a direct link to view the order.
On-Demand Microsoft SQL Query Execution
This workflow allows you to manually trigger and execute any SQL query against your Microsoft SQL Server database. Perfect for ad-hoc data lookups, administrative tasks, or quick tests, giving you direct control over your database operations.