Skip to main content
Glama

create_whatsapp_workflow

Automate WhatsApp responses by creating workflows with AI replies, filters, delays, and conditional triggers to manage business messaging efficiently.

Instructions

Crear workflow de WhatsApp — Crea un nuevo workflow de automatizacion para respuestas de WhatsApp. Campos requeridos: name y actions. Si el usuario no especifica nombre, genera uno descriptivo automaticamente (ej: 'Respuesta IA fuera horario'). Si el usuario pide crearlo desactivado o para revision, usa status='disabled'. Por defecto se crea activo. LIMITE: maximo 10 workflows por tienda. Si recibes error de limite alcanzado, NO reintentes crear — en su lugar: 1) Llama a list_whatsapp_workflows para mostrar los existentes, 2) Sugiere al usuario eliminar workflows que ya no necesite o reutilizar uno existente con update_whatsapp_workflow. [mutation]

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesNombre descriptivo del workflow (max 100 caracteres). Si el usuario no especifica, genera un nombre descriptivo automaticamente basado en las acciones/condiciones.
trigger_typeNoEvento que activa el workflow: 'message.received' (al recibir un mensaje, por defecto) o 'message.sent' (al enviar un mensaje)message.received
conditionsNoCondiciones para ejecutar el workflow. Formato: {logic: 'AND'|'OR', rules: [...]}. Si no se especifica, se ejecuta siempre.
actionsYesAcciones a ejecutar. Tipos: {type:'reply_with_ai'} o {type:'reply', message:'texto'} o {type:'delay', seconds:N} o {type:'ai_filter'} o {type:'ai_filter', prompt:'instrucciones adicionales'}. Para reply_with_ai se puede añadir pre_send_check:{enabled:true} para cancelar el envio si llega un mensaje nuevo durante la generacion IA. Para reply se puede añadir no_repeat:true y no_repeat_hours:N (1, 6, 24, 168 o 0=siempre) para no repetir al mismo contacto. ai_filter analiza si el mensaje necesita respuesta y detiene el workflow si no (previene bucles con mensajes tipo 'gracias' o 'vale', ideal como primera accion antes de reply_with_ai). Opcion prompt:'instrucciones adicionales' para personalizar criterios. Minimo una accion.
statusNoEstado inicial del workflow. Usar 'disabled' si el usuario quiere crearlo desactivado para revision. Por defecto: 'active'.active
session_idNoID de la sesion de WhatsApp a la que asignar este workflow. Si no se especifica (null), el workflow se ejecuta para todos los numeros conectados.
idNoID del workflow (si se especifica, actualiza en lugar de crear)
Behavior3/5

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

No annotations provided, so description carries full burden. It discloses mutation status ('[mutation]'), the 10-workflow limit, and default active status. However, it fails to mention the upsert behavior (create vs update based on 'id' parameter), which is a significant behavioral trait. It also doesn't describe idempotency or return values.

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

Conciseness5/5

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

Efficiently structured and front-loaded: starts with purpose, then required fields, conditional logic, limits, and error handling. Every sentence provides actionable information (e.g., 'LIMITE: maximo 10 workflows'). No filler content despite being information-dense.

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

Completeness4/5

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

Comprehensive for a 7-parameter mutation tool with nested objects. Covers business constraints (10 workflows), default behaviors, and error workflows. No output schema exists, and description appropriately doesn't speculate on return values. Only gap is the upsert behavior documentation.

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?

With 100% schema coverage, baseline is 3. The description adds valuable usage context: name generation logic ('Respuesta IA fuera horario'), status conditional usage ('disabled' for review), and error handling involving sibling tools. This practical guidance exceeds the schema's technical definitions.

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

Purpose4/5

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

The description clearly states it creates WhatsApp automation workflows with specific verbs ('Crea un nuevo workflow'). It distinguishes from siblings like list_whatsapp_workflows and update_whatsapp_workflow by focusing on creation. However, it omits that the tool performs an upsert (updates if 'id' parameter provided), which is significant behavior documented only in the schema.

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?

Excellent explicit guidance: specifies when to auto-generate names ('Si el usuario no especifica nombre'), when to use status='disabled' ('Si el usuario pide crearlo desactivado'), and exact error handling procedures when hitting the 10-workflow limit (call list_whatsapp_workflows, suggest update_whatsapp_workflow). Names alternatives clearly.

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