Aller au contenu
Runbase

Nœuds de workflow

Tous les nœuds de workflow, générés à partir du catalogue de blocs et des connecteurs.

Les nœuds natifs s'exécutent dans le moteur de workflows. Les nœuds de connecteurs (node.<id>) proviennent de connectors/ et s'exécutent dans le bac à sable des fonctions. Les fonctions de l'espace de travail sont aussi disponibles sous forme de nœuds fn.<name>.

Nœuds natifs

ai.decide

Décision IA. L'IA choisit l'une des branches déclarées et explique pourquoi.

Branches : .

Entrée

NomTypeRequisDescription
promptstringoui
contextanynon
branchesarrayoui

Sortie

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "branch": {
      "type": "string"
    },
    "reason": {
      "type": "string"
    },
    "confidence": {
      "type": "number"
    }
  },
  "required": ["branch", "reason", "confidence"],
  "additionalProperties": false
}

ai.extract

Extraction IA. L'IA extrait des champs structurés d'un texte.

Branches : ok.

Entrée

NomTypeRequisDescription
textstringoui
fieldsarrayoui
instructionsstringnon

Sortie

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "propertyNames": {
    "type": "string"
  },
  "additionalProperties": {}
}

ai.run

Agent IA. L'IA suit une instruction et peut lire ou mettre à jour des objets.

Branches : ok.

Entrée

NomTypeRequisDescription
promptstringoui
contextanynon
objectsarrayoui
schemaobjectnon

Sortie

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "result": {}
  },
  "required": ["result"],
  "additionalProperties": false
}

condition

Condition (oui / non). Vérifie une ou plusieurs règles sur l'enregistrement (relations comprises), ou compare n'importe quelle valeur de l'exécution ({ left: "{{steps.x.output.y}}", op, right }) : continue sur Oui si c'est vrai, sinon sur Non.

Branches : true, false.

Entrée

Aucun paramètre.

Sortie

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "result": {
      "type": "boolean"
    }
  },
  "required": ["result"],
  "additionalProperties": false
}

data.set

Définir des valeurs. Crée des valeurs nommées (texte, nombre, variables) à réutiliser dans les étapes suivantes.

Branches : ok.

Entrée

NomTypeRequisDescription
valuesobjectoui

Sortie

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "propertyNames": {
    "type": "string"
  },
  "additionalProperties": {}
}

data.transform

Remodeler des données. Extrait des champs d'un objet (par exemple le contenu d'un événement) sous de nouveaux noms.

Branches : ok.

Entrée

NomTypeRequisDescription
sourceanyoui
mappingobjectoui

Sortie

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "propertyNames": {
    "type": "string"
  },
  "additionalProperties": {}
}

date

Calculer une date. Formate une date, ajoute une durée ou calcule l'écart entre deux dates.

Branches : ok.

Entrée

Aucun paramètre.

Sortie

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "value": {
      "type": ["string", "number"]
    }
  },
  "required": ["value"],
  "additionalProperties": false
}

event.emit

Émettre un événement. Publie un événement qui peut déclencher d'autres workflows.

Branches : ok.

Entrée

| Nom | Type | Requis | Description | | ---------------- | --------- | ------ | ----------- | --- | | type | string | oui | | | recordId | string \ | null | non | | | payload | object | oui | | | occurredAt | string | non | | | idempotencyKey | string | non | |

Sortie

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "eventId": {
      "type": "string"
    },
    "duplicate": {
      "type": "boolean"
    }
  },
  "required": ["eventId", "duplicate"],
  "additionalProperties": false
}

formatter

Formater une valeur. Transforme une valeur sans IA : texte (casse, remplacement, découpage, extraction d'e-mail/URL/nombre, slug), nombre (analyse, formatage, arrondi, calcul), date (analyse, formatage, ajout, écart), table de correspondance, première valeur non vide, liste/jointure.

Branches : ok.

Entrée

Aucun paramètre.

Sortie

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "value": {}
  },
  "required": ["value"],
  "additionalProperties": false
}

http.request

Requête HTTP. Appelle une URL externe et renvoie la réponse.

Branches : ok, error.

Entrée

NomTypeRequisDescription
methodstringouiValeurs possibles : GET, POST, PUT, PATCH, DELETE.
urlstringoui
headersobjectoui
bodyanynon

Sortie

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "status": {
      "type": "number"
    },
    "body": {}
  },
  "required": ["status", "body"],
  "additionalProperties": false
}

human.approve

Approbation humaine. Met l'exécution en pause jusqu'à son approbation ou son rejet, avec un délai facultatif.

Branches : approved, rejected, expired.

Entrée

NomTypeRequisDescription
messagestringoui
timeoutstringnon

Sortie

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "message": {
      "type": "string"
    }
  },
  "required": ["message"],
  "additionalProperties": false
}

list.aggregate

Calculer sur une liste. Compte les éléments ou calcule une somme, une moyenne, un minimum ou un maximum, au total ou par groupe.

Branches : ok.

Entrée

NomTypeRequisDescription
itemsarrayoui
opstringouiValeurs possibles : count, sum, avg, min, max.
pathstringnon
groupBystringnon

Sortie

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "value": {
      "type": ["number", "null"]
    },
    "groups": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string"
          },
          "value": {
            "type": ["number", "null"]
          }
        },
        "required": ["key", "value"],
        "additionalProperties": false
      }
    }
  },
  "required": ["value"],
  "additionalProperties": false
}

list.dedupe

Supprimer les doublons. Supprime les éléments en double d'une liste (selon un champ ou l'élément entier).

Branches : ok.

Entrée

NomTypeRequisDescription
itemsarrayoui
pathstringnon

Sortie

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "items": {
      "default": [],
      "type": "array",
      "items": {}
    },
    "removed": {
      "type": "number"
    }
  },
  "required": ["items", "removed"],
  "additionalProperties": false
}

list.filter

Filtrer une liste. Garde les enregistrements d'une liste qui remplissent une condition.

Branches : ok.

Entrée

NomTypeRequisDescription
objectstringoui
itemsarrayoui
conditionanyoui
limitintegeroui

Sortie

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "items": {
      "default": [],
      "type": "array",
      "items": {}
    },
    "truncated": {
      "type": "boolean"
    }
  },
  "required": ["items", "truncated"],
  "additionalProperties": false
}

list.limit

Garder les premiers éléments. Garde un nombre limité d'éléments d'une liste.

Branches : ok.

Entrée

NomTypeRequisDescription
itemsarrayoui
limitintegeroui
offsetintegeroui

Sortie

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "items": {
      "default": [],
      "type": "array",
      "items": {}
    },
    "total": {
      "type": "number"
    }
  },
  "required": ["items", "total"],
  "additionalProperties": false
}

list.map

Transformer une liste. Transforme chaque élément d'une liste en objet.

Branches : ok.

Entrée

NomTypeRequisDescription
itemsarrayoui
mappingobjectoui
limitintegeroui

Sortie

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "items": {
      "default": [],
      "type": "array",
      "items": {}
    },
    "truncated": {
      "type": "boolean"
    }
  },
  "required": ["items", "truncated"],
  "additionalProperties": false
}

list.sort

Trier une liste. Trie les éléments d'une liste selon un champ.

Branches : ok.

Entrée

NomTypeRequisDescription
itemsarrayoui
pathstringnon
orderstringouiValeurs possibles : asc, desc.

Sortie

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "items": {
      "default": [],
      "type": "array",
      "items": {}
    }
  },
  "required": ["items"],
  "additionalProperties": false
}

loop

Boucle. Répète une suite d'étapes pour chaque élément d'une liste.

Branches : done.

Entrée

NomTypeRequisDescription
itemsarrayoui
limitintegeroui
includearraynon
doarrayoui

Sortie

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "results": {
      "type": "array",
      "items": {
        "type": "object",
        "propertyNames": {
          "type": "string"
        },
        "additionalProperties": {}
      }
    },
    "iterations": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "index": {
            "type": "number"
          },
          "durationMs": {
            "type": "number"
          },
          "cost": {
            "type": "number"
          }
        },
        "required": ["index", "durationMs", "cost"],
        "additionalProperties": false
      }
    },
    "truncated": {
      "type": "boolean"
    }
  },
  "required": ["results", "iterations", "truncated"],
  "additionalProperties": false
}

mcp.call

Appel MCP. Appelle un outil sur un serveur MCP configuré.

Branches : ok, error.

Entrée

NomTypeRequisDescription
serverstringoui
toolstringoui
argumentsobjectoui

Sortie

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "result": {}
  },
  "required": ["result"],
  "additionalProperties": false
}

record.create

Créer un enregistrement. Crée un enregistrement dans un objet d'une base de données.

Branches : ok.

Entrée

NomTypeRequisDescription
objectstringoui
dataobjectoui

Sortie

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "record": {}
  },
  "required": ["record"],
  "additionalProperties": false
}

record.delete

Supprimer un enregistrement. Supprime définitivement un enregistrement.

Branches : ok, not_found.

Entrée

NomTypeRequisDescription
recordIdstringoui

Sortie

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "deleted": {
      "type": "boolean"
    }
  },
  "required": ["deleted"],
  "additionalProperties": false
}

record.get

Lire un enregistrement. Lit un enregistrement par son identifiant.

Branches : found, not_found.

Entrée

NomTypeRequisDescription
idstringoui
includearraynon

Sortie

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "record": {
      "anyOf": [
        {},
        {
          "type": "null"
        }
      ]
    }
  },
  "required": ["record"],
  "additionalProperties": false
}

record.map

Copier un enregistrement. Copie un enregistrement vers un objet de n'importe quelle base de données, champ par champ.

Branches : ok.

Entrée

NomTypeRequisDescription
sourcestringoui
sourceObjectstringnon
objectstringoui
modestringouiValeurs possibles : create, update, upsert.
recordIdstringnon
keystringnon
externalIdstringnon
mappingobjectoui

Sortie

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "record": {},
    "created": {
      "type": "boolean"
    }
  },
  "required": ["record", "created"],
  "additionalProperties": false
}

record.merge

Fusionner des enregistrements. Fusionne des doublons en un seul enregistrement : champs, relations et chronologie, tout ou rien.

Branches : ok.

Entrée

NomTypeRequisDescription
keepstringoui
mergearrayoui

Sortie

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "record": {},
    "merged": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "required": ["record", "merged"],
  "additionalProperties": false
}

record.search

Rechercher des enregistrements. Recherche les enregistrements d'un objet avec un filtre.

Branches : found, empty.

Entrée

NomTypeRequisDescription
objectstringoui
filteranynon
limitintegernon

Sortie

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "records": {
      "type": "array",
      "items": {}
    }
  },
  "required": ["records"],
  "additionalProperties": false
}

record.transact

Écritures groupées. Applique plusieurs créations, mises à jour et suppressions en une seule transaction.

Branches : ok.

Entrée

NomTypeRequisDescription
opsarrayoui

Sortie

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "results": {
      "type": "array",
      "items": {}
    }
  },
  "required": ["results"],
  "additionalProperties": false
}

record.update

Mettre à jour un enregistrement. Met à jour un ou plusieurs champs d'un enregistrement.

Branches : ok.

Entrée

NomTypeRequisDescription
recordIdstringoui
dataobjectoui

Sortie

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "record": {},
    "changed": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "required": ["record", "changed"],
  "additionalProperties": false
}

record.upsert

Créer ou mettre à jour un enregistrement. Upsert par champ unique (e-mail, domaine…) ou identifiant externe, sans doublon.

Branches : created, updated.

Entrée

NomTypeRequisDescription
objectstringoui
dataobjectoui
matchstringnon
externalIdstringnon

Sortie

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "record": {},
    "created": {
      "type": "boolean"
    },
    "changed": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "required": ["record", "created", "changed"],
  "additionalProperties": false
}

slack.send

Message Slack. Envoie un message sur Slack via une URL d'Incoming Webhook.

Branches : ok, error.

Entrée

NomTypeRequisDescription
webhookUrlstringoui
textstringoui

Sortie

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "status": {
      "type": "number"
    }
  },
  "required": ["status"],
  "additionalProperties": false
}

stop.error

Arrêter avec une erreur. Arrête le workflow avec un message d'erreur ; l'erreur apparaît dans le centre d'erreurs.

Branches : .

Entrée

NomTypeRequisDescription
messagestringoui

Sortie

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {},
  "additionalProperties": false
}

switch

Aiguillage. Oriente vers une branche selon la valeur d'un champ de l'enregistrement, ou selon n'importe quelle valeur de l'exécution ({ value: "{{steps.x.output.y}}", cases }) : un cas par valeur, puis Sinon.

Branches : dynamiques (selon la configuration).

Entrée

Aucun paramètre.

Sortie

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "case": {
      "type": ["string", "null"]
    },
    "label": {
      "type": "string"
    },
    "reason": {
      "type": "string"
    }
  },
  "required": ["case", "label", "reason"],
  "additionalProperties": false
}

wait

Attendre. Met l'exécution en pause pendant une durée.

Branches : done.

Entrée

NomTypeRequisDescription
durationstringoui

Sortie

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "until": {
      "type": "string"
    }
  },
  "required": ["until"],
  "additionalProperties": false
}

wait.until

Attendre jusqu'à une date. Met l'exécution en pause jusqu'à une date et une heure précises.

Branches : done.

Entrée

NomTypeRequisDescription
untilstringoui

Sortie

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "until": {
      "type": "string"
    }
  },
  "required": ["until"],
  "additionalProperties": false
}

webhook.emit

Envoyer un webhook. Envoie un contenu signé à une URL.

Branches : ok, error.

Entrée

NomTypeRequisDescription
urlstringoui
secretstringoui
payloadanyoui

Sortie

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "status": {
      "type": "number"
    }
  },
  "required": ["status"],
  "additionalProperties": false
}

workflow.run

Exécuter un autre workflow. Exécute un autre workflow et attend son résultat, ou continue sans attendre.

Branches : ok, error.

Entrée

| Nom | Type | Requis | Description | | ---------- | --------- | ------ | ----------- | --- | | workflow | string | oui | | | recordId | string \ | null | non | | | event | any | non | | | wait | boolean | oui | |

Sortie

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "runId": {
      "type": "string"
    },
    "status": {
      "type": "string"
    },
    "output": {},
    "error": {
      "type": "string"
    }
  },
  "required": ["runId"],
  "additionalProperties": false
}

Nœuds de connecteurs

node.slack.post_message

Publier un message Slack. Publie un message dans un canal Slack (ou une réponse dans un fil avec threadTs) en tant que bot connecté.

Branches : ok.

Entrée

NomTypeRequisDescription
channelstringoui
textstringoui
threadTsstringnon

Sortie

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "channel": {
      "type": "string"
    },
    "ts": {
      "type": "string"
    }
  },
  "required": ["channel", "ts"],
  "additionalProperties": false
}

Sur cette page