Nó do n8n

Instale o nó da comunidade da Cosend no n8n, configure a credencial com uma chave de espaço de trabalho ou de conexão, teste e escolha o menor acesso.

n8n e uma caixa de entrada humana no mesmo número: o guia passo a passo.

O nó da Cosend é um nó da comunidade para o n8n, com recursos para mensagens, contatos, conversas, automações e uso, e um gatilho baseado em webhook. Ele não tem dependências de runtime. Para o que você pode construir com ele, veja n8n. O gatilho está documentado em Gatilho do n8n.

Instalação

Em uma instância auto-hospedada, um proprietário ou um administrador instala o nó pelo nome do pacote:

n8n-nodes-cosend

Settings → Community nodes → Install a community node → cole o nome. Depois disso, os membros da instância podem usar o nó; só proprietários e administradores podem instalar.

2 variáveis de ambiente do n8n controlam os nós da comunidade, e as duas vêm ativadas por padrão: N8N_COMMUNITY_PACKAGES_ENABLED liga os nós da comunidade, e N8N_UNVERIFIED_PACKAGES_ENABLED permite nós de fora da lista verificada do n8n.

O nó é distribuído sob a licença MIT.

Credenciais

O nó tem uma credencial com 2 campos.

CampoValor
API KeyUma chave de espaço de trabalho cok_live_… ou uma chave de conexão csk_live_…
Base URLhttps://api.cosend.app/v1

Depois de salvar a credencial, selecione Test. O nó chama o endpoint de identidade, que aceita qualquer chave válida: um sinal verde confirma a chave, e um vermelho quer dizer que a chave é inválida.

Como escolher uma chave

Use a chave com o menor acesso de que o fluxo precisa.

  • Para um fluxo que atende um número, como uma loja ou uma linha de suporte, use uma chave de conexão. Ela alcança só esse número, então um erro no fluxo afeta só os clientes desse número.
  • Para um fluxo que atende vários números, use uma chave de espaço de trabalho. Ela alcança todos os números do espaço de trabalho, com os escopos que você escolhe ao criá-la.

Cada chave é mostrada por inteiro uma vez, quando você a cria, e a Cosend guarda só um hash. Para substituir uma chave perdida, faça a rotação dela no painel e atualize a credencial.

Use uma chave csk_test_ ou cok_test_ enquanto você desenvolve. A chave define o modo, e os totais de uso incluem só o tráfego de produção.

Conexões

  • O nó trabalha com os recursos da própria Cosend: conversas, contatos, automações e uso. O nó WhatsApp Business Cloud, que já vem no n8n, chama a Meta diretamente. Com o nó da Cosend, enviar uma mensagem é uma operação do recurso Message.
  • O nó chama um só host: a Base URL da credencial.

Modelos de fluxo

Selecione um bloco e copie, depois clique em um canvas vazio do n8n e cole com Ctrl+V (Cmd+V no Mac). Cada fluxo chega com notas adesivas que guiam você pela configuração, e a pasta de templates explica cada um por completo.

Do Google Sheets para o WhatsApp

Cada linha nova em uma planilha do Google Sheets envia um modelo de WhatsApp aprovado ao número de telefone daquela linha, com o nome da linha preenchido. Você precisa de uma planilha com as colunas phone e name e de um modelo aprovado com uma variável. Uma chave de conexão já indica o número que envia; com uma chave de espaço de trabalho, escolha o número em Connection. Arquivo: google-sheets-to-whatsapp.json.

{
  "name": "Google Sheets to WhatsApp: send a template to every new row",
  "nodes": [
    {
      "parameters": {
        "content": "## Google Sheets to WhatsApp\n\nEvery new row in your sheet sends an approved WhatsApp template to the phone number in that row.\n\n### Set it up\n1. Install the community node **n8n-nodes-cosend** (Settings > Community nodes).\n2. Make a sheet with a header row: **phone** and **name**. One customer per row.\n3. Open **New row in Google Sheets**, connect your Google account and pick the sheet.\n4. Open **Send WhatsApp template**, add a **Cosend API** credential with your API key (Cosend dashboard > Settings > Developer > API keys).\n5. Pick your approved template and its language. With a workspace key, also pick the WhatsApp number that sends in **Connection**; a connection key already names one.\n6. Turn the workflow on.\n\nAdd a row and the message goes out within a minute.",
        "height": 440,
        "width": 420,
        "color": 4
      },
      "id": "3f1c2b7a-5d1e-4c2a-9a51-0b7e3c1d2a01",
      "name": "About this workflow",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        -520,
        -200
      ]
    },
    {
      "parameters": {
        "content": "### The phone column\nWrite each number with its country code, for example **+44 7700 900123**. The workflow keeps the digits and adds the **+**, so spaces and dashes are fine.",
        "height": 170,
        "width": 300,
        "color": 7
      },
      "id": "3f1c2b7a-5d1e-4c2a-9a51-0b7e3c1d2a02",
      "name": "Phone numbers",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        -60,
        200
      ]
    },
    {
      "parameters": {
        "content": "### The template\nWhatsApp lets a business start a conversation with a template Meta approved. Create one in the Cosend dashboard under **Templates**, with one variable for the first name, for example:\n\n*Hi {{1}}, thanks for signing up. Reply here any time.*\n\n**Components** fills that variable from the **name** column. A template with no variables takes **[]**.",
        "height": 260,
        "width": 340,
        "color": 7
      },
      "id": "3f1c2b7a-5d1e-4c2a-9a51-0b7e3c1d2a03",
      "name": "Template",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        280,
        200
      ]
    },
    {
      "parameters": {
        "pollTimes": {
          "item": [
            {
              "mode": "everyMinute"
            }
          ]
        },
        "documentId": {
          "__rl": true,
          "value": "",
          "mode": "list"
        },
        "sheetName": {
          "__rl": true,
          "value": "",
          "mode": "list"
        },
        "event": "rowAdded",
        "options": {}
      },
      "id": "3f1c2b7a-5d1e-4c2a-9a51-0b7e3c1d2a04",
      "name": "New row in Google Sheets",
      "type": "n8n-nodes-base.googleSheetsTrigger",
      "typeVersion": 1,
      "position": [
        0,
        0
      ]
    },
    {
      "parameters": {
        "resource": "message",
        "operation": "send",
        "sendTo": "contact",
        "contactId": {
          "__rl": true,
          "value": "={{ '+' + String($json.phone).replace(/[^0-9]/g, '') }}",
          "mode": "phone"
        },
        "messageType": "template",
        "templateName": {
          "__rl": true,
          "value": "welcome_message",
          "mode": "name"
        },
        "templateLanguage": "en_US",
        "templateComponents": "=[{\"type\":\"body\",\"parameters\":[{\"type\":\"text\",\"text\":\"{{ $json.name }}\"}]}]",
        "options": {}
      },
      "id": "3f1c2b7a-5d1e-4c2a-9a51-0b7e3c1d2a05",
      "name": "Send WhatsApp template",
      "type": "n8n-nodes-cosend.cosend",
      "typeVersion": 1,
      "position": [
        340,
        0
      ]
    }
  ],
  "connections": {
    "New row in Google Sheets": {
      "main": [
        [
          {
            "node": "Send WhatsApp template",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1"
  },
  "pinData": {},
  "meta": {
    "templateCredsSetupCompleted": false
  }
}

Receber mensagens do WhatsApp

O Cosend Trigger inicia o fluxo para cada mensagem de texto que o seu número recebe. Um nó Switch responde por palavra-chave, e todas as outras mensagens vão para a sua equipe na caixa de entrada da Cosend. Quando uma pessoa assume a conversa, o fluxo fica em silêncio. Você precisa de uma instância do n8n que a Cosend consiga alcançar pela internet. Arquivo: receive-whatsapp-messages.json.

{
  "name": "Receive WhatsApp messages and reply by keyword",
  "nodes": [
    {
      "parameters": {
        "content": "## Receive WhatsApp messages\n\nEach WhatsApp message your number receives starts this workflow. A keyword picks the reply, and anything else goes to your team in the Cosend inbox.\n\n### Set it up\n1. Install the community node **n8n-nodes-cosend** (Settings > Community nodes).\n2. Open **When a WhatsApp message arrives** and add a **Cosend API** credential with your API key (Cosend dashboard > Settings > Developer > API keys). Pick the same credential on the other Cosend nodes.\n3. Edit the keywords in **Route by keyword** and the text in each reply.\n4. Turn the workflow on. Cosend connects to it by itself, so there is no URL to copy.\n\nSend **price** or **hours** to your business number to see it answer.",
        "height": 440,
        "width": 420,
        "color": 4
      },
      "id": "7a2e4d10-1b3c-4e5f-8a6b-1c2d3e4f5a01",
      "name": "About this workflow",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        -520,
        -220
      ]
    },
    {
      "parameters": {
        "content": "### Keywords\nEach rule checks the message text, in any letter case. Add a rule for each keyword you want, and give its output a name.\n\nThe last output, **Anything else**, catches every other message.",
        "height": 190,
        "width": 320,
        "color": 7
      },
      "id": "7a2e4d10-1b3c-4e5f-8a6b-1c2d3e4f5a02",
      "name": "Keywords",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        620,
        -320
      ]
    },
    {
      "parameters": {
        "content": "### Replies\nEach reply goes into the same conversation, inside WhatsApp's 24-hour window, so any text works here.\n\n**Pass to my team** puts the conversation in your Cosend inbox for a person to answer.",
        "height": 170,
        "width": 320,
        "color": 7
      },
      "id": "7a2e4d10-1b3c-4e5f-8a6b-1c2d3e4f5a03",
      "name": "Replies",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        1000,
        380
      ]
    },
    {
      "parameters": {
        "events": [
          "message.received"
        ],
        "filters": {
          "messageTypes": [
            "text"
          ]
        },
        "options": {}
      },
      "id": "7a2e4d10-1b3c-4e5f-8a6b-1c2d3e4f5a04",
      "name": "When a WhatsApp message arrives",
      "type": "n8n-nodes-cosend.cosendTrigger",
      "typeVersion": 1,
      "position": [
        0,
        0
      ],
      "webhookId": "7a2e4d10-1b3c-4e5f-8a6b-1c2d3e4f5a99"
    },
    {
      "parameters": {
        "rules": {
          "values": [
            {
              "conditions": {
                "options": {
                  "caseSensitive": false,
                  "leftValue": "",
                  "typeValidation": "loose",
                  "version": 2
                },
                "conditions": [
                  {
                    "id": "7a2e4d10-1b3c-4e5f-8a6b-1c2d3e4f5b01",
                    "leftValue": "={{ $('When a WhatsApp message arrives').item.json.content.body }}",
                    "rightValue": "price",
                    "operator": {
                      "type": "string",
                      "operation": "contains"
                    }
                  }
                ],
                "combinator": "and"
              },
              "renameOutput": true,
              "outputKey": "Prices"
            },
            {
              "conditions": {
                "options": {
                  "caseSensitive": false,
                  "leftValue": "",
                  "typeValidation": "loose",
                  "version": 2
                },
                "conditions": [
                  {
                    "id": "7a2e4d10-1b3c-4e5f-8a6b-1c2d3e4f5b02",
                    "leftValue": "={{ $('When a WhatsApp message arrives').item.json.content.body }}",
                    "rightValue": "hours",
                    "operator": {
                      "type": "string",
                      "operation": "contains"
                    }
                  }
                ],
                "combinator": "and"
              },
              "renameOutput": true,
              "outputKey": "Opening hours"
            }
          ]
        },
        "looseTypeValidation": true,
        "options": {
          "fallbackOutput": "extra",
          "renameFallbackOutput": "Anything else",
          "ignoreCase": true
        }
      },
      "id": "7a2e4d10-1b3c-4e5f-8a6b-1c2d3e4f5a05",
      "name": "Route by keyword",
      "type": "n8n-nodes-base.switch",
      "typeVersion": 3.2,
      "position": [
        700,
        0
      ]
    },
    {
      "parameters": {
        "resource": "message",
        "operation": "send",
        "sendTo": "conversation",
        "conversationId": {
          "__rl": true,
          "value": "={{ $('When a WhatsApp message arrives').item.json.conversation_id }}",
          "mode": "id"
        },
        "messageType": "text",
        "text": "Thanks for asking! Our prices start at 25 EUR. Reply with the service you want and we will send you the details.",
        "options": {}
      },
      "id": "7a2e4d10-1b3c-4e5f-8a6b-1c2d3e4f5a06",
      "name": "Reply with prices",
      "type": "n8n-nodes-cosend.cosend",
      "typeVersion": 1,
      "position": [
        1040,
        -180
      ]
    },
    {
      "parameters": {
        "resource": "message",
        "operation": "send",
        "sendTo": "conversation",
        "conversationId": {
          "__rl": true,
          "value": "={{ $('When a WhatsApp message arrives').item.json.conversation_id }}",
          "mode": "id"
        },
        "messageType": "text",
        "text": "We are open Monday to Friday, 9:00 to 18:00, and Saturday, 10:00 to 14:00. See you soon!",
        "options": {}
      },
      "id": "7a2e4d10-1b3c-4e5f-8a6b-1c2d3e4f5a07",
      "name": "Reply with opening hours",
      "type": "n8n-nodes-cosend.cosend",
      "typeVersion": 1,
      "position": [
        1040,
        0
      ]
    },
    {
      "parameters": {
        "resource": "conversation",
        "operation": "setControl",
        "conversationId": {
          "__rl": true,
          "value": "={{ $('When a WhatsApp message arrives').item.json.conversation_id }}",
          "mode": "id"
        },
        "control": "pending_human",
        "controlOptions": {
          "reason": "The message matched no keyword"
        }
      },
      "id": "7a2e4d10-1b3c-4e5f-8a6b-1c2d3e4f5a08",
      "name": "Pass to my team",
      "type": "n8n-nodes-cosend.cosend",
      "typeVersion": 1,
      "position": [
        1040,
        180
      ]
    },
    {
      "parameters": {
        "resource": "conversation",
        "operation": "get",
        "conversationId": {
          "__rl": true,
          "value": "={{ $json.conversation_id }}",
          "mode": "id"
        }
      },
      "id": "7a2e4d10-1b3c-4e5f-8a6b-1c2d3e4f50c1",
      "name": "Who is answering",
      "type": "n8n-nodes-cosend.cosend",
      "typeVersion": 1,
      "position": [
        220,
        0
      ]
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "strict",
            "version": 2
          },
          "conditions": [
            {
              "id": "7a2e4d10-1b3c-4e5f-8a6b-1c2d3e4f50c3",
              "leftValue": "={{ $json.control }}",
              "rightValue": "bot",
              "operator": {
                "type": "string",
                "operation": "equals"
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "id": "7a2e4d10-1b3c-4e5f-8a6b-1c2d3e4f50c2",
      "name": "No person has taken over",
      "type": "n8n-nodes-base.if",
      "typeVersion": 2.2,
      "position": [
        440,
        0
      ]
    },
    {
      "parameters": {
        "content": "### Your team comes first\nThe workflow answers only while no person has taken over the chat. When it passes a chat to your team, when someone picks a chat up in the Cosend inbox, or when you reply from the WhatsApp Business app, the workflow stays quiet for that chat.",
        "height": 200,
        "width": 340,
        "color": 7
      },
      "id": "7a2e4d10-1b3c-4e5f-8a6b-1c2d3e4f50c4",
      "name": "Your team comes first",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        120,
        200
      ]
    }
  ],
  "connections": {
    "When a WhatsApp message arrives": {
      "main": [
        [
          {
            "node": "Who is answering",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Route by keyword": {
      "main": [
        [
          {
            "node": "Reply with prices",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Reply with opening hours",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Pass to my team",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Who is answering": {
      "main": [
        [
          {
            "node": "No person has taken over",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "No person has taken over": {
      "main": [
        [
          {
            "node": "Route by keyword",
            "type": "main",
            "index": 0
          }
        ],
        []
      ]
    }
  },
  "settings": {
    "executionOrder": "v1"
  },
  "pinData": {},
  "meta": {
    "templateCredsSetupCompleted": false
  }
}

Agente de IA para WhatsApp

O AI Agent do n8n responde a cada mensagem na mesma conversa e mantém uma memória para cada conversa. O nó da Cosend é a ferramenta dele para passar uma conversa à sua equipe quando um cliente pede uma pessoa, e a partir daí o agente fica em silêncio naquela conversa. Você precisa de uma instância do n8n que a Cosend consiga alcançar pela internet e de uma credencial de modelo de chat; o modelo de fluxo usa a OpenAI. Arquivo: whatsapp-ai-agent.json.

{
  "name": "WhatsApp AI agent that answers customers and hands over to your team",
  "nodes": [
    {
      "parameters": {
        "content": "## WhatsApp AI agent\n\nAn AI agent answers every WhatsApp message your number receives, in the same conversation. It remembers the chat, and when a customer needs a person it passes the conversation to your team in the Cosend inbox.\n\n### Set it up\n1. Install the community node **n8n-nodes-cosend** (Settings > Community nodes).\n2. Open **When a WhatsApp message arrives** and add a **Cosend API** credential with your API key (Cosend dashboard > Settings > Developer > API keys). Pick the same credential on the other Cosend nodes.\n3. Open **OpenAI Chat Model** and add your OpenAI credential, or swap in any chat model you like.\n4. Open **AI Agent** and write about your business in the system message: what you sell, your hours, your tone.\n5. Turn the workflow on and send a message to your business number.",
        "height": 460,
        "width": 440,
        "color": 4
      },
      "id": "c4d8e2f1-6a7b-4c8d-9e0f-2a3b4c5d6e01",
      "name": "About this workflow",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        -560,
        -220
      ]
    },
    {
      "parameters": {
        "content": "### Passing to a person\n**Pass to my team** is the Cosend node, working as a tool for the agent. The agent calls it when a customer asks for a person, and the conversation waits in your Cosend inbox for your team. Edit its description to change when the agent uses it.",
        "height": 190,
        "width": 340,
        "color": 7
      },
      "id": "c4d8e2f1-6a7b-4c8d-9e0f-2a3b4c5d6e02",
      "name": "Tool use",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        980,
        400
      ]
    },
    {
      "parameters": {
        "content": "### Memory\nEach WhatsApp conversation keeps its own memory, so the agent follows the chat and two customers never share one.",
        "height": 160,
        "width": 280,
        "color": 7
      },
      "id": "c4d8e2f1-6a7b-4c8d-9e0f-2a3b4c5d6e03",
      "name": "Memory note",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        620,
        400
      ]
    },
    {
      "parameters": {
        "events": [
          "message.received"
        ],
        "filters": {
          "messageTypes": [
            "text"
          ]
        },
        "options": {}
      },
      "id": "c4d8e2f1-6a7b-4c8d-9e0f-2a3b4c5d6e04",
      "name": "When a WhatsApp message arrives",
      "type": "n8n-nodes-cosend.cosendTrigger",
      "typeVersion": 1,
      "position": [
        0,
        0
      ],
      "webhookId": "c4d8e2f1-6a7b-4c8d-9e0f-2a3b4c5d6e99"
    },
    {
      "parameters": {
        "promptType": "define",
        "text": "={{ $('When a WhatsApp message arrives').item.json.content.body }}",
        "options": {
          "systemMessage": "You are the friendly WhatsApp assistant for our business. Answer in the customer's language, in short messages that read well on a phone. Use plain text, without markdown.\n\nAbout the business: describe what you sell, your opening hours, your address and how to book here.\n\nWhen the customer asks for a person, wants to complain, or asks something you cannot answer from the text above, call the tool that passes the conversation to the team, then tell the customer a person will reply here soon."
        }
      },
      "id": "c4d8e2f1-6a7b-4c8d-9e0f-2a3b4c5d6e05",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "typeVersion": 2,
      "position": [
        700,
        0
      ]
    },
    {
      "parameters": {
        "model": {
          "__rl": true,
          "value": "gpt-4.1-mini",
          "mode": "list",
          "cachedResultName": "gpt-4.1-mini"
        },
        "options": {}
      },
      "id": "c4d8e2f1-6a7b-4c8d-9e0f-2a3b4c5d6e06",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "typeVersion": 1.2,
      "position": [
        560,
        220
      ]
    },
    {
      "parameters": {
        "sessionIdType": "customKey",
        "sessionKey": "={{ $('When a WhatsApp message arrives').item.json.conversation_id }}",
        "contextWindowLength": 10
      },
      "id": "c4d8e2f1-6a7b-4c8d-9e0f-2a3b4c5d6e07",
      "name": "Simple Memory",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "typeVersion": 1.3,
      "position": [
        720,
        220
      ]
    },
    {
      "parameters": {
        "descriptionType": "manual",
        "toolDescription": "Pass this WhatsApp conversation to a person on the team. Use it when the customer asks for a person, wants to complain, or asks something you cannot answer.",
        "resource": "conversation",
        "operation": "setControl",
        "conversationId": {
          "__rl": true,
          "value": "={{ $('When a WhatsApp message arrives').item.json.conversation_id }}",
          "mode": "id"
        },
        "control": "pending_human",
        "controlOptions": {
          "reason": "={{ $fromAI('reason', 'Why the customer needs a person, in one short sentence', 'string') }}"
        }
      },
      "id": "c4d8e2f1-6a7b-4c8d-9e0f-2a3b4c5d6e08",
      "name": "Pass to my team",
      "type": "n8n-nodes-cosend.cosendTool",
      "typeVersion": 1,
      "position": [
        880,
        220
      ]
    },
    {
      "parameters": {
        "resource": "message",
        "operation": "send",
        "sendTo": "conversation",
        "conversationId": {
          "__rl": true,
          "value": "={{ $('When a WhatsApp message arrives').item.json.conversation_id }}",
          "mode": "id"
        },
        "messageType": "text",
        "text": "={{ $json.output }}",
        "options": {}
      },
      "id": "c4d8e2f1-6a7b-4c8d-9e0f-2a3b4c5d6e09",
      "name": "Reply on WhatsApp",
      "type": "n8n-nodes-cosend.cosend",
      "typeVersion": 1,
      "position": [
        1080,
        0
      ]
    },
    {
      "parameters": {
        "resource": "conversation",
        "operation": "get",
        "conversationId": {
          "__rl": true,
          "value": "={{ $json.conversation_id }}",
          "mode": "id"
        }
      },
      "id": "c4d8e2f1-6a7b-4c8d-9e0f-2a3b4c5d60c1",
      "name": "Who is answering",
      "type": "n8n-nodes-cosend.cosend",
      "typeVersion": 1,
      "position": [
        220,
        0
      ]
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "strict",
            "version": 2
          },
          "conditions": [
            {
              "id": "c4d8e2f1-6a7b-4c8d-9e0f-2a3b4c5d60c3",
              "leftValue": "={{ $json.control }}",
              "rightValue": "bot",
              "operator": {
                "type": "string",
                "operation": "equals"
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "id": "c4d8e2f1-6a7b-4c8d-9e0f-2a3b4c5d60c2",
      "name": "No person has taken over",
      "type": "n8n-nodes-base.if",
      "typeVersion": 2.2,
      "position": [
        440,
        0
      ]
    },
    {
      "parameters": {
        "content": "### Your team comes first\nThe workflow answers only while no person has taken over the chat. When it passes a chat to your team, when someone picks a chat up in the Cosend inbox, or when you reply from the WhatsApp Business app, the workflow stays quiet for that chat.",
        "height": 200,
        "width": 340,
        "color": 7
      },
      "id": "c4d8e2f1-6a7b-4c8d-9e0f-2a3b4c5d60c4",
      "name": "Your team comes first",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        60,
        200
      ]
    }
  ],
  "connections": {
    "When a WhatsApp message arrives": {
      "main": [
        [
          {
            "node": "Who is answering",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Simple Memory": {
      "ai_memory": [
        [
          {
            "node": "AI Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Pass to my team": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent": {
      "main": [
        [
          {
            "node": "Reply on WhatsApp",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Who is answering": {
      "main": [
        [
          {
            "node": "No person has taken over",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "No person has taken over": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ],
        []
      ]
    }
  },
  "settings": {
    "executionOrder": "v1"
  },
  "pinData": {},
  "meta": {
    "templateCredsSetupCompleted": false
  }
}

Erros

O nó retorna o envelope de erro completo da API. O code na saída de um nó que falhou corresponde à referência de erros, e o request_id identifica a requisição quando você fala com o suporte.