Tradutor para vários idiomas.
Desencadeando o Potencial Empresarial pela Engenharia Linguística.
graph TD
%%{init: {'theme': 'mc','layout': 'elk'}}%%
TextInput-nz023[<div><img alt="logo" src="/_astro/type.Dy26vmDy.svg" style="height: 20px !important;width: 20px !important"/></div>Text Input]
style TextInput-nz023 stroke:#a170ff
DeepseekModel-ras91[castellano]
style DeepseekModel-ras91 stroke:#a170ff
DeepseekModel-fhodk[inglés]
style DeepseekModel-fhodk stroke:#a170ff
DeepseekModel-7vds9[italiano]
style DeepseekModel-7vds9 stroke:#a170ff
DeepseekModel-esyq4[català]
style DeepseekModel-esyq4 stroke:#a170ff
DeepseekModel-pnczv[aleman]
style DeepseekModel-pnczv stroke:#a170ff
CurrentDate-jlpl4[Current Date2]
style CurrentDate-jlpl4 stroke:#a170ff
Prompt-2fuyp[<div><img alt="logo" src="/_astro/square-terminal.BMOXc-nZ.svg" style="height: 20px !important;width: 20px !important"/></div>Prompt2]
style Prompt-2fuyp stroke:#a170ff
GDriveFilesComponent-5x9cc[<div><img alt="logo" src="/_astro/google_drive.wKmDsV2c.svg" style="height: 20px !important;width: 20px !important"/></div>Drive File Manager2]
style GDriveFilesComponent-5x9cc stroke:#a170ff
DocxWriter-li34q[Docx Writer]
style DocxWriter-li34q stroke:#a170ff
Binary-18j3k[Binary]
style Binary-18j3k stroke:#a170ff
CurrentDate-ar4yl[Current Date3]
style CurrentDate-ar4yl stroke:#a170ff
Prompt-jediq[<div><img alt="logo" src="/_astro/square-terminal.BMOXc-nZ.svg" style="height: 20px !important;width: 20px !important"/></div>Prompt3]
style Prompt-jediq stroke:#a170ff
GDriveFilesComponent-yczm3[<div><img alt="logo" src="/_astro/google_drive.wKmDsV2c.svg" style="height: 20px !important;width: 20px !important"/></div>Drive File Manager3]
style GDriveFilesComponent-yczm3 stroke:#a170ff
DocxWriter-3znab[Docx Writer2]
style DocxWriter-3znab stroke:#a170ff
Binary-cewlv[Binary2]
style Binary-cewlv stroke:#a170ff
CurrentDate-pdtxe[Current Date]
style CurrentDate-pdtxe stroke:#a170ff
Prompt-nsdew[<div><img alt="logo" src="/_astro/square-terminal.BMOXc-nZ.svg" style="height: 20px !important;width: 20px !important"/></div>Prompt]
style Prompt-nsdew stroke:#a170ff
GDriveFilesComponent-4ztfr[<div><img alt="logo" src="/_astro/google_drive.wKmDsV2c.svg" style="height: 20px !important;width: 20px !important"/></div>Drive File Manager]
style GDriveFilesComponent-4ztfr stroke:#a170ff
DocxWriter-6ea9i[Docx Writer3]
style DocxWriter-6ea9i stroke:#a170ff
Binary-s1u90[Binary3]
style Binary-s1u90 stroke:#a170ff
CurrentDate-hc94e[Current Date4]
style CurrentDate-hc94e stroke:#a170ff
Prompt-4wf3k[<div><img alt="logo" src="/_astro/square-terminal.BMOXc-nZ.svg" style="height: 20px !important;width: 20px !important"/></div>Prompt4]
style Prompt-4wf3k stroke:#a170ff
GDriveFilesComponent-vbuu8[<div><img alt="logo" src="/_astro/google_drive.wKmDsV2c.svg" style="height: 20px !important;width: 20px !important"/></div>Drive File Manager4]
style GDriveFilesComponent-vbuu8 stroke:#a170ff
DocxWriter-o0bk0[Docx Writer4]
style DocxWriter-o0bk0 stroke:#a170ff
Binary-ruhjj[Binary4]
style Binary-ruhjj stroke:#a170ff
CurrentDate-3dwc6[Current Date5]
style CurrentDate-3dwc6 stroke:#a170ff
Prompt-iukbt[<div><img alt="logo" src="/_astro/square-terminal.BMOXc-nZ.svg" style="height: 20px !important;width: 20px !important"/></div>Prompt5]
style Prompt-iukbt stroke:#a170ff
GDriveFilesComponent-it7q3[<div><img alt="logo" src="/_astro/google_drive.wKmDsV2c.svg" style="height: 20px !important;width: 20px !important"/></div>Drive File Manager5]
style GDriveFilesComponent-it7q3 stroke:#a170ff
DocxWriter-fe820[Docx Writer5]
style DocxWriter-fe820 stroke:#a170ff
Binary-avqo5[Binary5]
style Binary-avqo5 stroke:#a170ff
TextInput-nz023 -.- DeepseekModel-ras91
linkStyle 0 stroke:#a170ff
TextInput-nz023 -.- DeepseekModel-fhodk
linkStyle 1 stroke:#a170ff
TextInput-nz023 -.- DeepseekModel-7vds9
linkStyle 2 stroke:#a170ff
TextInput-nz023 -.- DeepseekModel-esyq4
linkStyle 3 stroke:#a170ff
TextInput-nz023 -.- DeepseekModel-pnczv
linkStyle 4 stroke:#a170ff
CurrentDate-jlpl4 -.- Prompt-2fuyp
linkStyle 5 stroke:#a170ff
Prompt-2fuyp -.- GDriveFilesComponent-5x9cc
linkStyle 6 stroke:#a170ff
DeepseekModel-fhodk -.- DocxWriter-li34q
linkStyle 7 stroke:#a170ff
DocxWriter-li34q -.- Binary-18j3k
linkStyle 8 stroke:#a170ff
Binary-18j3k -.- GDriveFilesComponent-5x9cc
linkStyle 9 stroke:#a170ff
CurrentDate-ar4yl -.- Prompt-jediq
linkStyle 10 stroke:#a170ff
Prompt-jediq -.- GDriveFilesComponent-yczm3
linkStyle 11 stroke:#a170ff
Binary-cewlv -.- GDriveFilesComponent-yczm3
linkStyle 12 stroke:#a170ff
DocxWriter-3znab -.- Binary-cewlv
linkStyle 13 stroke:#a170ff
DeepseekModel-ras91 -.- DocxWriter-3znab
linkStyle 14 stroke:#a170ff
CurrentDate-pdtxe -.- Prompt-nsdew
linkStyle 15 stroke:#a170ff
Prompt-nsdew -.- GDriveFilesComponent-4ztfr
linkStyle 16 stroke:#a170ff
Binary-s1u90 -.- GDriveFilesComponent-4ztfr
linkStyle 17 stroke:#a170ff
DocxWriter-6ea9i -.- Binary-s1u90
linkStyle 18 stroke:#a170ff
DeepseekModel-7vds9 -.- DocxWriter-6ea9i
linkStyle 19 stroke:#a170ff
CurrentDate-hc94e -.- Prompt-4wf3k
linkStyle 20 stroke:#a170ff
Prompt-4wf3k -.- GDriveFilesComponent-vbuu8
linkStyle 21 stroke:#a170ff
Binary-ruhjj -.- GDriveFilesComponent-vbuu8
linkStyle 22 stroke:#a170ff
DocxWriter-o0bk0 -.- Binary-ruhjj
linkStyle 23 stroke:#a170ff
DeepseekModel-esyq4 -.- DocxWriter-o0bk0
linkStyle 24 stroke:#a170ff
CurrentDate-3dwc6 -.- Prompt-iukbt
linkStyle 25 stroke:#a170ff
Prompt-iukbt -.- GDriveFilesComponent-it7q3
linkStyle 26 stroke:#a170ff
Binary-avqo5 -.- GDriveFilesComponent-it7q3
linkStyle 27 stroke:#a170ff
DocxWriter-fe820 -.- Binary-avqo5
linkStyle 28 stroke:#a170ff
DeepseekModel-pnczv -.- DocxWriter-fe820
linkStyle 29 stroke:#a170ff
📄 Descrição Geral
O fluxo “Tradutor para vários idiomas” recebe um texto em espanhol, gera traduções simultâneas em cinco idiomas (castelhano, inglês, italiano, catalão e alemão), cria documentos .docx correspondentes e os armazena em uma pasta “Documentos traduzidos” no Google Drive. O processo é totalmente automatizado e utiliza modelos de linguagem Deepseek, componentes de prompt dinâmicos e o API do Google Drive para upload dos arquivos.
⚙️ Funcionalidades Principais
- Entrada de Texto – Recebe textos longos em espanhol a partir do Playground.
- Tradução Multilinguagem – Cada modelo Deepseek converte o texto para um idioma específico, respeitando o prompt de “não adicionar conteúdo extra”.
- Nomeação Dinâmica de Arquivo – Utiliza o componente Prompt para montar nomes de arquivo com a data corrente.
- Criação de Documentos Word – Gera arquivos .docx a partir do texto traduzido.
- Codificação Base‑64 – Converte o conteúdo do arquivo para Base‑64 antes do upload.
- Upload no Google Drive – Envia cada arquivo para a pasta “Documentos traduzidos”, mantendo a estrutura de nomes.
🔄 Passos do Fluxo de Trabalho
| Nome do Componente | Papel no Fluxo | Entradas Principais | Saídas Principais |
|---|---|---|---|
| Text Input | Entrada do usuário | Texto em espanhol (Message) | Texto (Message) |
| Deepseek Model (castellano) | Traduz para castelhano | Texto (Message) | Texto traduzido (Message) |
| Deepseek Model (ingles) | Traduz para inglês | Texto (Message) | Texto traduzido (Message) |
| Deepseek Model (italiano) | Traduz para italiano | Texto (Message) | Texto traduzido (Message) |
| Deepseek Model (català) | Traduz para catalão | Texto (Message) | Texto traduzido (Message) |
| Deepseek Model (alemán) | Traduz para alemão | Texto (Message) | Texto traduzido (Message) |
| Current Date (varias instâncias) | Fornece data atual em UTC | – | Data (Message) |
| Prompt (castellano) | Gera nome “castellano{date}.docx” | Data (Message) | Nome de arquivo (Message) |
| Prompt (ingles) | Gera nome “ingles{date}.docx” | Data (Message) | Nome de arquivo (Message) |
| Prompt (italiano) | Gera nome “italiano{date}.docx” | Data (Message) | Nome de arquivo (Message) |
| Prompt (català) | Gera nome “català{date}.docx” | Data (Message) | Nome de arquivo (Message) |
| Prompt (alemán) | Gera nome “alemán{date}.docx” | Data (Message) | Nome de arquivo (Message) |
| Docx Writer | Cria arquivo .docx a partir do texto traduzido | Texto (Message) | Caminho de arquivo (Data) |
| Binary | Codifica conteúdo em Base‑64 | Caminho de arquivo (Data) | Dados Base‑64 (Data) |
| GDrive Files Component | Faz upload para Drive | Dados Base‑64 (Data) + Nome de arquivo (Message) | Confirm. de upload (Data) |
Obs.: Cada idioma tem seu próprio bloco “Current Date → Prompt → Deepseek → Docx Writer → Binary → GDrive”. O fluxo é repetido paralelamente para as cinco traduções.
🧠 Notas
- Todos os modelos Deepseek recebem um system message que determina a língua alvo e proíbe a adição de explicações.
- Os prompts utilizam a sintaxe
{date}para inserir a data atual, obtida via o componente Current Date. - O componente Binary só suporta a operação “From Base64” neste fluxo, convertendo o arquivo já criado pelo Docx Writer para Base‑64.
- O GDrive Files Component está configurado para Upload na pasta “Documentos traduzidos”, com permissão “reader” por padrão.
- Não há dependência de variáveis externas: todas as credenciais (Deepseek API key, Google Drive credentials) são gerenciadas internamente no fluxo.
- O fluxo pode ser estendido adicionando mais idiomas ou alterando a formatação do nome do arquivo modificando o Prompt.