DeepL
Translate and rephrase text, translate documents, usage, languages and glossaries (read)
Beta v0.1.0 Node.js 11 actions
About
A Graphrt plugin for the DeepL API. It translates and rephrases text, translates whole documents, and reads usage, supported languages and glossaries. Every operation is a workflow node and an agent tool, download_document is never retried because DeepL allows only one download.
What it can do
- translate_text: up to 50 texts per call with target_lang, optional source_lang, context (not billed), formality, model_type, glossary_id, tag_handling (xml/html), custom_instructions
- rephrase_text: DeepL Write, with writing_style or tone (Pro plans)
- get_usage: characters used and the limit for this billing period
- list_languages: source or target languages
- Glossaries (read): list_glossaries, get_glossary, get_glossary_entries (v3 multilingual glossaries)
- Documents: translate_document (upload) → get_document_status → download_document (saved to disk)
- api_request: any other endpoint (GET only for agents)
Actions
Each action is a step you can add to a workflow. Agents can also use most of them as tools.
- Translate text
deepl.translate_text - Rephrase text (DeepL Write)
deepl.rephrase_text - Get usage
deepl.get_usage - List languages
deepl.list_languages - List glossaries
deepl.list_glossaries - Get glossary
deepl.get_glossary - Get glossary entries
deepl.get_glossary_entries - Translate document
deepl.translate_document - Get document status
deepl.get_document_status - Download translated document
deepl.download_document
Show all 11 actions
- DeepL API request
deepl.api_request
Settings
Graphrt starts plugins with a clean environment. Only these values reach the plugin, and secrets stay out of logs.
-
DEEPL_API_KEYRequiredAPI key, sent as Authorization: DeepL-Auth-Key <key>. A key ending in :fx selects api-free.deepl.com -
DEEPL_API_URLOptionalOverride the host (must be a deepl.com host), e.g. https://api-free.deepl.com -
DEEPL_UPLOAD_DIROptionalDirectory translate_document may read local files from (absolute path). Without it, file must be an https URL -
DEEPL_OUTPUT_DIRFor download_documentAbsolute directory where translated documents are saved
How to use it
In Graphrt Desktop
- Open Plugins and search for DeepL.
- Click Install and approve it.
- Follow the setup steps on the plugin's page, then paste the settings it needs.
- Describe a job that needs it, and the builder adds the steps.
With the CLI
terminal
$ graphrt plugin install deepl workflow.yaml
- id: translated
type: deepl.translate_text
text: ["{{#start.message#}}"]
target_lang: EN-US
context: Customer support chat
- id: answer
type: answer
answer: "{{#translated.data.translations.0.text#}} (from {{#translated.data.translations.0.detected_source_language#}})"