Skip to main content
Glama

update_whatsapp_workflow

Modify existing WhatsApp workflows by updating conditions, keywords, actions, names, or status. Supports partial updates to preserve unchanged fields.

Instructions

Editar workflow de WhatsApp — Modifica un workflow existente (cambiar condiciones, añadir/quitar palabras clave, editar acciones, renombrar, activar/desactivar). Soporta update parcial: solo se sobreescriben los campos que se envian, los demas se mantienen sin cambios. IMPORTANTE: el parametro 'id' es OBLIGATORIO y debe ser el ID numerico del workflow (obtenido de list_whatsapp_workflows). Si el usuario dice 'ajustalo', 'yes apply', 'hazlo' u otra respuesta de seguimiento, DEBES recordar el workflow_id del contexto previo de la conversacion y enviarlo. NUNCA enviar esta accion sin 'id'. Para cambiar solo el mensaje de una accion: SIEMPRE leer primero con list_whatsapp_workflows, copiar el array de actions completo preservando TODOS los valores originales (especialmente delay seconds), y enviar el array modificado. Si solo cambias name, conditions o status, NO envies 'actions' — se preservan automaticamente. [mutation]

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesID numerico del workflow a editar. OBLIGATORIO siempre. Obtenerlo de list_whatsapp_workflows. Sin este parametro la peticion se trata como creacion y fallara si falta el nombre.
nameNoNombre del workflow (max 100 caracteres). Si no se envia, se mantiene el nombre actual
trigger_typeNoTipo de trigger: 'message.received' o 'message.sent'. Si no se envia, se mantiene el valor actualmessage.received
conditionsNoObjeto con 'logic' (AND/OR) y 'rules' (array de condiciones). Si no se envia, se mantienen las condiciones actuales
actionsNoArray de acciones a ejecutar. Si no se envia, se mantienen las acciones actuales. IMPORTANTE: si envias este campo, debes enviar el array COMPLETO de acciones (no solo la que cambias). Para editar solo el mensaje de una accion reply/reply_with_ai: 1) llama list_whatsapp_workflows para obtener las acciones actuales, 2) modifica solo el campo que necesitas, 3) envia el array completo con todos los valores existentes preservados. Tipos soportados: reply_with_ai (con pre_send_check opcional), reply (con no_repeat opcional), delay (seconds: 1-300, OBLIGATORIO), ai_filter (filtro IA que decide si responder, previene bucles, ideal como primera accion). Para ai_filter se puede añadir prompt:'instrucciones' para personalizar criterios. VALIDACION: cada accion delay DEBE tener 'seconds' entre 1 y 300. Si copias un delay existente, manten su valor original de seconds.
session_idNoID de la sesion de WhatsApp a la que asignar este workflow. null = todos los numeros. Usa get_whatsapp_status para ver las sesiones.
statusNoEstado del workflow: 'enabled' para activar, 'disabled' para desactivar
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations provided, so description carries full burden. Discloses partial update semantics, mandatory ID constraint, conversational context handling, and complex array replacement behavior (must read-first-then-write-complete-array). Includes [mutation] tag. Minor gap: no mention of error states, rate limits, or side effects.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with purpose, followed by behavioral constraints, then parameter-specific warnings. Every sentence adds unique value (partial updates, ID sourcing, conversational context, array handling). Slightly dense but necessary given complexity of partial update semantics and actions array hazards.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Comprehensive for a complex 7-parameter mutation tool with nested objects and no output schema. Covers purpose, prerequisites, partial update model, conversational edge cases, and dangerous pitfalls (actions array overwrite). No critical gaps given the tool's complexity and lack of annotations.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Despite 100% schema coverage, adds critical semantic context: ID must be numeric from list_whatsapp_workflows, actions array requires complete preservation of existing values (especially delay seconds), and specific workflow for editing single action messages. Could add more on conditions object structure.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with specific verb 'Modifica' and resource 'workflow de WhatsApp', then enumerates exact capabilities (conditions, keywords, actions, rename, activate/deactivate). Clearly distinguishes from siblings like create_whatsapp_workflow or toggle_whatsapp_workflow by emphasizing editing existing workflows and partial updates.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly states prerequisite dependency on list_whatsapp_workflows to obtain ID, provides exact conversational triggers ('ajustalo', 'yes apply', 'hazlo') requiring context memory, and differentiates when to send full actions array vs omitting it. Names the alternative list tool for reading data.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/wazionapps/wazion-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server