Generate Structured Metadata with Multiple Languages
detail.loadingPreview
This workflow demonstrates generating structured metadata, specifically supporting both English and Chinese output.
About This Workflow
This n8n workflow is designed to create structured metadata that can be utilized for various purposes, such as content management, SEO, or data enrichment. It showcases how to define variables, process them, and output them in a structured format. The primary focus is on demonstrating the capability to generate metadata in multiple languages, with this specific example highlighting English and Chinese.
Key Features
- Interval-Based Execution: The workflow is triggered at a configurable interval (e.g., every 2 hours) using the Interval node, ensuring regular metadata generation.
- Custom Variable Definition: The FunctionItem node allows for defining and assigning custom variables within the workflow.
- Data Transformation: The Set node is used to select and structure specific variables from previous nodes for output.
- Multi-Language Support (Conceptual): While this snippet focuses on the structure, it lays the groundwork for creating multilingual metadata by defining separate logic or variables for each language.
How To Use
- Interval Node (
2 hours Interval): Configure theunitandintervalparameters to set the desired execution frequency for the workflow. The current setting is 2 hours. - Function Item Node (
FunctionItem): This node defines custom variables. In this example,myVariableis set to1andmyVariable2is set to the string "this is exciting". You can extend this node to define more variables or implement more complex logic for metadata generation. - Set Node (
Set): This node takes the output from theFunctionItemnode. It specifically extracts the value ofmyVariable2and assigns it to a new field nameddata. This is where you would map and structure your desired metadata fields.
To implement multi-language support:
- Consider creating separate
FunctionItemnodes or modifying the existing one to generate language-specific content. - You might use conditional logic within the
FunctionItemnode based on an input parameter or environment variable to determine the target language. - The
Setnode can then be used to organize these language-specific outputs into a structured format (e.g.,{ en: '...', zh: '...' }).
Apps Used
Workflow JSON
{
"id": "76a32766-1a32-41d1-a62f-b1138cd2fa46",
"name": "Generate Structured Metadata with Multiple Languages",
"nodes": 12,
"category": "Data Processing",
"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: 76a32766-1a32...
About the Author
DevOps_Master_X
Infrastructure Expert
Specializing in CI/CD pipelines, Docker, and Kubernetes automations.
Statistics
Related Workflows
Discover more workflows you might like
Multilingual Metadata Generation from Gmail and Google Sheets
Automate structured metadata generation in English and Chinese by processing Gmail emails and Google Sheets data.
Generate Structured Metadata from Image Files
Reads binary image files and prepares them for metadata generation in multiple languages.
Generate Structured Metadata in English and Chinese
This workflow demonstrates how to generate structured metadata in both English and Chinese. It fetches data, processes it, and saves it in a structured format.