memory_key string requerido por defecto: "words_accumulated" Acumula palabras entre turnos y dispara una rama cuando se alcanza el umbral.
Cuenta cuántas palabras tiene un texto.
Recibe un texto y aplica una fórmula sencilla para devolver el número total de palabras.
Útil como ejemplo básico de creación de nodos personalizados o para limitar el tamaño de las respuestas antes de mandarlas por SMS.
| nombre | tipo |
|---|---|
text | string |
| nombre | tipo |
|---|---|
words_in_turn | number |
total | number |
threshold | number |
reached | boolean |
branch | string |
reached — Alcanzado below — Por debajo memory_key string requerido por defecto: "words_accumulated" threshold integer requerido text_field string requerido por defecto: "text" reset_on_fire boolean requerido por defecto: true branch_when_reached string requerido por defecto: "reached" branch_when_below string requerido por defecto: "below" accumulate_text_memory_key string opcional output_field string requerido por defecto: "accumulated_text" {
"memory_key": "words_accumulated",
"threshold": 20,
"text_field": "text",
"reset_on_fire": true,
"branch_when_reached": "reached",
"branch_when_below": "below",
"output_field": "accumulated_text"
} counter.updated Contador de palabras actualizado tras un turno.