> For the complete documentation index, see [llms.txt](https://docs.digibee.com/documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.digibee.com/documentation/developer-guide/pt-br/development-cycle/digital-worker-mode/how-do-i-delegate-my-integration-to-a-digital-worker.md). Agents can also search and read this documentation through its [MCP server](https://docs.digibee.com/documentation/~gitbook/mcp).

# Como delegar minha integração a um digital worker?

Entenda como funciona o desenvolvimento orientado a spec no Modo Digital Worker da Digibee: o que você faz, o que o digital worker faz e o que cada etapa entrega, do objetivo à produção.

## O que significa delegar uma integração?

Ao delegar uma integração, você trabalha nela com um digital worker do início ao fim. Trabalhar com um digital worker é como trabalhar com um engenheiro de integração experiente: vocês conversam sobre o problema, comparam as opções e combinam o que fazer. A spec (especificação) registra tudo o que vocês combinam, e o digital worker desenvolve a integração a partir dela.

Em cada etapa, o digital worker faz o trabalho: faz perguntas sobre o problema, sugere opções de design e explica os prós e contras de cada uma, cria os pipelines e analisa como a integração se comporta em produção. Você compartilha o que só você sabe, toma as decisões e aprova cada etapa antes de a próxima começar. Você é responsável pelo resultado, e seu tempo vai para as decisões, não para o desenvolvimento da integração passo a passo.

```mermaid

%%{init: {"themeVariables": {"fontSize": "18px", "edgeLabelBackground": "#e9ecef"}, "flowchart": {"nodeSpacing": 18, "rankSpacing": 34, "padding": 8, "useMaxWidth": false, "subGraphTitleMargin": {"top": 0, "bottom": 18}}}}%%

flowchart TB
subgraph S1["<b>Guiar</b> · Faça o onboarding do Digital Worker no seu projeto"]
 direction LR

 U1["<b>VOCÊ</b><br>• Defina o objetivo<br>• Compartilhe seu contexto<br>• Aponte riscos e restrições"]

 W1["<b>TRABALHANDO EM</b><br><i>Requisitos</i><br><br>Objetivos de negócio<br>Sistemas envolvidos<br>SLAs e segurança<br><br><b>Resultado:</b><br>rascunho da spec"]

 D1["<b>DIGITAL WORKER</b><br>• Entrevista você para esclarecer<br>objetivos e requisitos<br>• Destaca decisões em aberto<br>• Escreve o rascunho da spec"]

 U1 --> W1
 W1 --- D1
end

subgraph GG1["Antes de seguir em frente"]
 direction LR

 G1{"O Digital Worker<br>entendeu seu problema?"}

 N1["Não: adicione contexto"]
 X1["Não: adicione contexto"]

 X1 ~~~ G1
 G1 -.-> N1
end

subgraph S2["<b>Colaborar</b> · Projete e decida a solução em conjunto"]

 direction LR

 U2["<b>VOCÊ</b><br>• Alinhe a intenção da solução<br>• Decida sobre os trade-offs<br>• Escolha uma topologia · skill<br>• Peça uma verificação de<br>prontidão · skill"]

 W2["<b>TRABALHANDO EM</b><br><i>Design</i><br><br>Registros de decisão<br>de arquitetura<br>Topologia dos pipelines<br>Mapeamento de dados<br><br><b>Resultado:</b><br>spec aprovada"]

 D2["<b>DIGITAL WORKER</b><br>• Propõe opções de topologia<br>• Explica os trade-offs<br>• Projeta cada pipeline<br>e seus caminhos<br>• Cria um backlog de<br>decisões em aberto"]

 U2 --> W2
 W2 --- D2
end

subgraph GG2["Antes de seguir em frente"]
 direction LR

 G2{"<b>DECISÃO-CHAVE</b><br>A spec está pronta<br>para aprovação?"}

 N2["Não: continue refinando"]
 X2["Não: continue refinando"]

 X2 ~~~ G2
 G2 -.-> N2
end

subgraph S3["<b>Delegar</b> · O Digital Worker desenvolve a partir da spec"]

 direction LR

 U3["<b>VOCÊ</b><br>• Resolva as lacunas em aberto<br>• Combine os casos de teste<br>• Faça alterações manuais<br>• Dê feedback<br>• Delegue o desenvolvimento"]

 W3["<b>TRABALHANDO EM</b><br><i>Pipelines</i><br><br>Rascunhos dos pipelines<br>Relatório de geração<br>Casos de teste<br><br><b>Resultado:</b><br>rascunhos dos pipelines<br>e relatório"]

 D3["<b>DIGITAL WORKER</b><br>• Desenvolve os pipelines<br>• Elabora um relatório<br>de geração<br>• Itera com você<br>• Aprende com alterações<br>manuais"]

 U3 --> W3
 W3 --- D3
end

subgraph S4["<b>Verificar antes de implantar</b> · Revise e teste com base na spec"]

 direction LR

 U4["<b>VOCÊ</b><br>• Revise o que foi desenvolvido<br>• Teste os pipelines<br>• Atualize a spec<br>• Aprove a entrada em produção"]

 W4["<b>TRABALHANDO EM</b><br><i>Testes</i><br><br>Resultados dos testes<br>Correções na spec<br><br><b>Resultado:</b><br>pipelines aprovados"]

 D4["<b>DIGITAL WORKER</b><br>• Refaz o desenvolvimento<br>a partir da spec atualizada"]

 U4 --> W4
 W4 --- D4
end

subgraph GG4["Antes de seguir em frente"]
 direction LR

 G4{"Os pipelines fazem<br>o que a spec diz?"}

 N4["Não: corrija a spec<br>em Colaborar"]
 X4["Não: corrija a spec<br>em Colaborar"]

 X4 ~~~ G4
 G4 -.-> N4
end

subgraph S5["<b>Monitorar em produção</b> · Acompanhe como a integração se comporta"]
 direction LR

 U5["<b>VOCÊ</b><br>• Pergunte sobre as execuções<br>• Revise as conclusões<br>• Decida o que muda"]

 W5["<b>TRABALHANDO EM</b><br><i>Operação em produção</i><br><br>Execuções<br>Erros e latência<br>Causas raiz<br><br><b>Resultado:</b><br>relatórios sobre integrações<br>em produção"]

 D5["<b>DIGITAL WORKER</b><br>• Responde às suas perguntas<br>• Investiga erros<br>• Mostra evidências<br>das conclusões<br>• Escreve relatórios<br>de causa raiz"]

 U5 --> W5
 W5 --- D5
end

subgraph GG5["Antes de seguir em frente"]
 direction LR

 G5{"A integração se comporta<br>como a spec diz?"}

 N5["Não: altere a spec<br>em Colaborar"]
 X5["Não: altere a spec<br>em Colaborar"]

 X5 ~~~ G5
 G5 -.-> N5
end

subgraph S6["<b>Memória organizacional · FDE</b> · Reaproveite o que você aprendeu"]
 direction LR

 U6["<b>VOCÊ</b><br>• Defina padrões com um FDE<br>• Aprove regras que valem<br>para toda a empresa"]

 W6["<b>TRABALHANDO EM</b><br><i>Conhecimento da empresa</i><br><br>Sistemas de registro<br>Padrões<br>Decisões anteriores<br><br><b>Resultado:</b><br>padrões da empresa<br>reutilizáveis"]

 D6["<b>DIGITAL WORKER</b><br>• Aplica seus padrões<br>• Reaproveita decisões<br>anteriores"]

 U6 --> W6
 W6 --- D6
end

 S1 --> GG1
 GG1 -->|"Sim: problema e<br>escopo estão claros"| S2
 S2 --> GG2
 GG2 -->|"Sim: spec aprovada"| S3
 S3 -->|"Pipelines gerados"| S4
 S4 --> GG4
 GG4 -->|"Sim: testes aprovados,<br>você implanta"| S5
 S5 --> GG5
 GG5 -->|"Sim: aproveite o que<br>você aprendeu"| S6

classDef you fill:#d3f9d8,stroke:#2b8a3e,stroke-width:2px,color:#1e1e1e
classDef spec fill:#ffffff,stroke:#495057,stroke-width:2px,stroke-dasharray:6 4,color:#1e1e1e
classDef dw fill:#e5dbff,stroke:#6741d9,stroke-width:2px,color:#1e1e1e
classDef gate fill:#fff3bf,stroke:#1e1e1e,stroke-width:2px,color:#1e1e1e
classDef key fill:#fff3bf,stroke:#f08c00,stroke-width:4px,color:#1e1e1e

class U1,U2,U3,U4,U5,U6 you
class W1,W2,W3,W4,W5,W6 spec
class D1,D2,D3,D4,D5,D6 dw
class G1,G4,G5 gate
class G2 key

classDef no fill:#ffe3e3,stroke:#c92a2a,stroke-width:2px,color:#c92a2a
class N1,N2,N4,N5 no

classDef spacer fill:none,stroke:none,color:transparent
class X1,X2,X4,X5 spacer

style S1 fill:transparent,stroke:#868e96,color:#868e96
style S2 fill:transparent,stroke:#868e96,color:#868e96
style S3 fill:transparent,stroke:#868e96,color:#868e96
style S4 fill:transparent,stroke:#868e96,color:#868e96
style S5 fill:transparent,stroke:#868e96,color:#868e96
style GG1 fill:transparent,stroke:#868e96,stroke-dasharray:4 4,color:#868e96
style GG2 fill:transparent,stroke:#868e96,stroke-dasharray:4 4,color:#868e96
style GG4 fill:transparent,stroke:#868e96,stroke-dasharray:4 4,color:#868e96
style GG5 fill:transparent,stroke:#868e96,stroke-dasharray:4 4,color:#868e96
style S6 fill:#0c85991f,stroke:#0c8599,stroke-width:2px,color:#15aabf

linkStyle default stroke:#868e96,stroke-width:1.5px
linkStyle 2,6,12,16 stroke:none,stroke-width:0px
linkStyle 21,23,24,26,28 stroke:#37b24d,stroke-width:2px,color:#2b8a3e
linkStyle 3,7,13,17 stroke:#e03131,stroke-width:2px,color:#c92a2a

%% Link test: clicking these nodes should open the docs
click W2 href "https://docs.digibee.com/documentation/developer-guide/pt-br/development-cycle/build-overview/build-with-a-digital-worker/design-and-decide-the-solution-together/skills-you-can-ask-the-digital-worker-to-use#verifique-se-a-spec-esta-pronta-para-o-desenvolvimento" "Abrir a documentação" _blank
click G2 href "https://docs.digibee.com/documentation/developer-guide/pt-br/development-cycle/build-overview/build-with-a-digital-worker/design-and-decide-the-solution-together/skills-you-can-ask-the-digital-worker-to-use#verifique-se-a-spec-esta-pronta-para-o-desenvolvimento" "Abrir a documentação" _blank

```

## Do seu objetivo até a produção

O diagrama abaixo mostra todas as etapas da delegação de uma integração: o que você faz, o que o digital worker faz e as decisões que fazem o trabalho avançar. Para abrir a página de uma etapa, passe o mouse sobre ela e selecione-a quando a dica mostrar **Open the docs**.

Para ler o diagrama:

* **Você (verde):** O que você faz em cada etapa.
* **Em andamento (caixa tracejada):** O que você e o digital worker trabalham juntos em cada etapa.
* **Digital worker (roxo):** O que o digital worker faz.
* **Pontos de decisão (losangos):** Perguntas que você responde antes de seguir. **Sim** avança. **Não** volta para a spec: você a refina com o digital worker antes de seguir, para que a spec continue sendo a fonte da verdade da integração.
* **· skill:** usa uma skill da Digibee. **· FDE:** disponível com um pacote Forward Deployed Engineer (FDE).

### Próximos passos

Agora que você viu como a delegação funciona, leia [Faça o onboarding do digital worker no seu projeto](https://docs.digibee.com/documentation/developer-guide/pt-br/development-cycle/build-overview/build-with-a-digital-worker/onboard-the-digital-worker-to-your-project.md) para começar seu primeiro projeto com um digital worker.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.digibee.com/documentation/developer-guide/pt-br/development-cycle/digital-worker-mode/how-do-i-delegate-my-integration-to-a-digital-worker.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
