Ziwako Docs
Ziwako AI (Mayele)Guide développeurComposants

Composant workflow

Workflow au format control-flow (`steps:`) pour un package.

Dans un package, un workflow s'écrit en control-flow (YAML steps:), jamais en nodes/edges.

Le frontmatter

---
type: workflow
name: Relance client
slug: relance-client
status: draft
---

Le corps (steps:)

```yaml
steps:
  - id: charger
    run: data/http
    with:
      url: https://api.example.com/clients
  - id: rediger
    run: agent/assistant-support
    agentId: assistant-support
  - id: envoyer
    run: channel/email
```

Les blocs supportés

BlocRôle
runÉtape simple
parallelÉtapes parallèles
mapItération
branchCondition
foreachBoucle
dowhile / dountilBoucles conditionnelles
sleep / sleepUntilAttente
suspendSuspension
workflowWorkflow imbriqué

Les agents

agentId doit être le slug d'un agent du package (ou mayele-central). La résolution slug → identifiant est faite à l'import et à l'installation.

Pas de nodes/edges

Le format nodes/edges est réservé à l'API/UI. Un workflow packagé doit utiliser steps: en control-flow.

Voir aussi