Generate Multilingual Metadata from GitHub Prompts
detail.loadingPreview
This workflow fetches prompt templates from a GitHub repository, validates required variables, and uses an AI agent to generate structured metadata in both English and Chinese.
About This Workflow
This n8n workflow automates the creation of structured metadata for different languages. It begins by fetching prompt templates from a specified GitHub repository. It then dynamically checks if all necessary variables within the prompt are provided. If all variables are present, it proceeds to replace them with actual values and sends the populated prompt to an AI agent for processing. The final output is structured metadata. The workflow is designed to generate content in both English and Chinese.
Key Features
- Fetches prompt templates from a GitHub repository.
- Dynamically validates if all variables in the prompt are available.
- Replaces prompt placeholders with provided variables.
- Utilizes an AI agent (Langchain/Ollama) for content generation.
- Generates structured metadata in English and Chinese.
How To Use
- Configure
setVarsNode: Update thesetVarsnode with your GitHub repository details (owner,repo,path,prompt) and the specific variables (e.g.,company,product,features,sector) required for your prompt. - GitHub Credentials: Ensure your GitHub credentials are set up correctly in the
GitHubnode. - Prompt File: The
GitHubnode will fetch the content of the specified.mdfile. This file should contain your prompt template with placeholders like{{ variableName }}. - Variable Validation: The
Check All Prompt Vars Presentnode will parse the prompt for placeholders and verify their existence in thesetVarsnode. - Variable Replacement: The
replace variablesnode will substitute the placeholders with the actual values fromsetVarsand other specified sources. - AI Agent Execution: The
AI Agentnode (using Langchain/Ollama) will process the populated prompt to generate the desired metadata. - Output: The final generated metadata will be available in the
Prompt Outputnode.
Apps Used
Workflow JSON
{
"id": "d2cab2d7-e496-4c12-9eaf-23eb0eb8be3a",
"name": "Generate Multilingual Metadata from GitHub Prompts",
"nodes": 5,
"category": "Content Generation",
"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: d2cab2d7-e496...
About the Author
Crypto_Watcher
Web3 Developer
Automated trading bots and blockchain monitoring workflows.
Statistics
Related Workflows
Discover more workflows you might like
AI Content Generation and Multilingual Metadata for WordPress and Social Media
This workflow generates blog content, creates a featured image, and publishes it to WordPress, while also distributing it to social media platforms with multilingual metadata.
Automated News-to-Blog Post Generation with Multilingual Metadata
This workflow automates the creation of SEO-optimized blog posts from news articles, including title, slug, and meta descriptions, with potential for multilingual content generation.
Perplexity Research to HTML Web Page Generator
This workflow takes a research topic, generates structured content using AI, and converts it into a responsive HTML web page styled with Tailwind CSS.