{"code":0,"data":{"id":"8514f1a1-9ed6-4fc1-8e9e-5d77dbfbbe3d","publisher_type":"individual","publisher_unique_handle":"eddiebee","creator_email":"edbeeotudor@gmail.com","template_name":"file translation","icon":"📁","icon_background":"#D3F8DF","icon_file_key":"","kind":"classic","dsl_file_key":"templates/8514f1a1-9ed6-4fc1-8e9e-5d77dbfbbe3d/dsl.yaml","dsl_raw_file_key":"","asset_files":null,"asset_tree_nodes":null,"categories":["knowledge"],"deps_plugins":["langgenius/openai"],"preferred_languages":["en"],"overview":"The workflow accepts a user-uploaded document and a preferred target language, then uses GPT-4o to translate the full document content into that language. It includes a file size guard that routes invalid uploads to an error output before any translation attempt is made.\r\nThe flow is: Start → IF/ELSE (size check) → Doc Extractor → LLM Translation → Output. If the file fails the size check, it short-circuits to a separate error output.","readme":"**Setup Steps for File Translation Workflow**\r\n\r\n1. Click **Use template** to copy the \"File Translation\" workflow into your workspace.\r\n\r\n2. Go to **Settings → Model provider** and add your OpenAI API key, since the workflow uses `gpt-4o` as the translation model.\r\n\r\n3. Go to **Settings → Marketplace** and confirm the OpenAI plugin is installed:\r\n   - `langgenius/openai` version `0.2.10` or later\r\n\r\n4. Open the workflow's **Orchestrate** page and verify the following nodes are connected in order:\r\n   - `User Input` → `IF/ELSE` → `Doc Extractor` → `LLM Translation` → `Output Translation`\r\n   - Confirm the `IF/ELSE` false branch (invalid file) routes separately to the `Error Output` node.\r\n\r\n5. (Optional) Customize the workflow to match your use case:\r\n   - In the **User Input** node, add or remove language options from the `prefered_language` select field (currently includes French, Efik, Hausa, Yoruba, Ijaw, and Igbo).\r\n   - In the **LLM Translation** node, edit the system prompt in the `INSTRUCTIONS` area to adjust tone, formatting preferences, or translation style.\r\n   - In the **Environment Variables** section, update the `file_upload_error_message` value if you want a custom error message for oversized uploads.\r\n\r\n6. Click **Publish** to make the workflow available, then open the **Debug \u0026 Preview** panel to test it:\r\n   - Upload a sample document (PDF, DOCX, or TXT) and select a target language, for example `Yoruba`.\r\n   - Confirm the workflow extracts the document content, sends it to GPT-4o, and returns a clean translation in the output panel.\r\n   - Test the error path by uploading a file larger than 50MB and confirming the error message appears instead of a translation.","partner_link":"","version":"0.6.0","status":"published","review_comment":"","usage_count":240,"created_at":"2026-03-13T00:59:32.506518Z","updated_at":"2026-03-13T00:59:32.506518Z"},"msg":"ok"}