detail.loadingPreview
Automate Perplexity AI research and generate articles in HTML format for seamless integration.
This n8n workflow leverages the Perplexity AI API to perform sophisticated research based on user-provided topics. It then takes the structured research output and transforms it into a well-formatted HTML article, adhering to specific formatting guidelines. The workflow is designed to be highly configurable, allowing for manual input of article structure and metadata, and can be triggered via a webhook, making it ideal for automated content generation pipelines.
The core of the workflow involves:
ai_tool node to send a research prompt to Perplexity AI, requesting information on a specified topic.gpt-4o-mini-2024-07-18 is specified, though the Perplexity node itself uses llama-3.1-sonar-small-128k-online), temperature, and other API settings.ai_tool node instructs the model to convert the research output into a single-line HTML document. This involves strict formatting rules, such as using <h1> for titles, <h2> for subheadings, <p> for paragraphs, and <blockquote> for quotes, while avoiding certain HTML tags (<html>, <body>, <style>, <head>).inputSchema for the article object.Yes, this workflow utilizes the Perplexity AI API and potentially OpenAI's API (depending on the specific AI model selected). You will need to have valid API keys for these services configured in your n8n credentials to run the workflow successfully.
The workflow includes a conditional 'If' node that checks for the presence of a topic. If no topic is provided, it is designed to return an error message, preventing further processing and informing the user of the missing input.
While the workflow enforces specific HTML tags and structure, the `text` parameter within the `ai_tool` node contains a prompt that dictates the conversion. You can modify this prompt to introduce more specific HTML formatting instructions or to tailor the tone and style of the generated content. However, ensure any modifications maintain the single-line document requirement and avoid disallowed tags.
This Perplexity workflow is a game-changer for my content pipeline. Saved me hours of manual research and formatting. The HTML output is clean and integrates perfectly. Definitely a must-have for anyone in SEO or content creation.
Was looking for a way to automate Perplexity research and output it as readable HTML. This workflow does exactly that. Had a minor hiccup with API key setup, but the docs were clear. Loving the LLM flexibility in n8n!
The strict HTML formatting is a lifesaver. No more wrestling with messy markdown or trying to clean up AI-generated code. This workflow directly outputs usable HTML. Highly recommend for anyone building automated content systems.
{
"id": "27595014-f060-4099-86e8-352c8589ab99",
"name": "Perplexity AI Research & HTML Article Generation Workflow",
"nodes": 0,
"category": "AI Tools",
"status": "active",
"version": "1.0.0"
}Note: This is a sample preview. The full workflow JSON contains node configurations, credentials placeholders, and execution logic.
ID: 27595014-f060...
System Admin
The official repository for verified enterprise-grade workflows.
Discover more workflows you might like
Integrate Qdrant and Mistral AI to automatically recommend Hello Fresh recipes based on your preferences.
Transform your creative process with this n8n workflow that leverages advanced AI to generate new images based on the style of a source image. Simply provide a URL and a descriptive prompt, and let the AI do the rest.
Leverage the power of AI with this n8n workflow to create an intelligent assistant that interacts with your Airtable data. Seamlessly query, retrieve, and process information using natural language commands.
Transform French text into spoken audio, transcribe it, translate it to English, and generate English audio. This workflow automates the complex process of cross-lingual speech generation and understanding.
This n8n workflow automates AI music generation using the KIE.ai API, powered by the Suno V3.5 model. Users simply submit music prompts, styles, and titles via a web form, and the system handles real-time generation and delivery of the final audio output. It's perfect for quickly creating custom music for various needs.
This n8n workflow leverages AI to automate the entire freelance proposal process, from crafting personalized application text to generating professional Google Doc proposals and visual workflow diagrams. It significantly reduces manual effort, allowing freelancers to scale their client acquisition rapidly and effectively.