n8n-nodes-underchat 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +7 -7
- package/README.md +61 -61
- package/dist/nodes/UnderChat/underchat.svg +5 -5
- package/dist/package.json +10 -4
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +48 -42
package/LICENSE.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2026 UnderChat
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
|
-
|
|
7
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 UnderChat
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
|
+
|
|
7
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED.
|
package/README.md
CHANGED
|
@@ -1,61 +1,61 @@
|
|
|
1
|
-
# n8n-nodes-underchat
|
|
2
|
-
|
|
3
|
-
Community Node do n8n para integrar workflows à API pública da UnderChat.
|
|
4
|
-
|
|
5
|
-
## Operações do MVP
|
|
6
|
-
|
|
7
|
-
- Buscar contato por telefone
|
|
8
|
-
- Criar contato
|
|
9
|
-
- Enviar mensagem de texto por `chat_id`
|
|
10
|
-
- Enviar mensagem por telefone, criando o contato quando necessário
|
|
11
|
-
- Enviar template oficial em uma conversa
|
|
12
|
-
|
|
13
|
-
A operação **Enviar mensagem por telefone** executa automaticamente:
|
|
14
|
-
|
|
15
|
-
```text
|
|
16
|
-
buscar contato → criar se necessário → iniciar conversa → enviar mensagem
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
## Requisitos
|
|
20
|
-
|
|
21
|
-
- Node.js 22 ou superior
|
|
22
|
-
- n8n com suporte a Community Nodes
|
|
23
|
-
- Conta UnderChat com plano ativo
|
|
24
|
-
- Token da API pública
|
|
25
|
-
- UUID de um usuário executor ativo
|
|
26
|
-
|
|
27
|
-
## Desenvolvimento
|
|
28
|
-
|
|
29
|
-
```bash
|
|
30
|
-
npm install
|
|
31
|
-
npm run build
|
|
32
|
-
npm run lint
|
|
33
|
-
npm run dev
|
|
34
|
-
```
|
|
35
|
-
|
|
36
|
-
O modo de desenvolvimento inicia uma instância do n8n com o node carregado.
|
|
37
|
-
|
|
38
|
-
## Credenciais
|
|
39
|
-
|
|
40
|
-
No n8n, crie uma credencial **UnderChat API** e informe:
|
|
41
|
-
|
|
42
|
-
- **API Key:** token gerado em `Integração → API pública`.
|
|
43
|
-
- **ID do Usuário Executor:** UUID do usuário cujas permissões serão aplicadas.
|
|
44
|
-
- **URL Base:** mantenha `https://api-public.underchat.com.br/v1` em produção.
|
|
45
|
-
|
|
46
|
-
A integração envia a chave no header `keyapi` e o executor em
|
|
47
|
-
`x-underchat-user-id`.
|
|
48
|
-
|
|
49
|
-
## Teste seguro
|
|
50
|
-
|
|
51
|
-
O envio de mensagens produz efeito real no canal configurado. Use um contato e um
|
|
52
|
-
canal controlados durante a validação.
|
|
53
|
-
|
|
54
|
-
## Documentação
|
|
55
|
-
|
|
56
|
-
- [UnderChat Developers](https://docs.underchat.com.br/)
|
|
57
|
-
- [Criação de nodes do n8n](https://docs.n8n.io/integrations/creating-nodes/)
|
|
58
|
-
|
|
59
|
-
## Licença
|
|
60
|
-
|
|
61
|
-
MIT
|
|
1
|
+
# n8n-nodes-underchat
|
|
2
|
+
|
|
3
|
+
Community Node do n8n para integrar workflows à API pública da UnderChat.
|
|
4
|
+
|
|
5
|
+
## Operações do MVP
|
|
6
|
+
|
|
7
|
+
- Buscar contato por telefone
|
|
8
|
+
- Criar contato
|
|
9
|
+
- Enviar mensagem de texto por `chat_id`
|
|
10
|
+
- Enviar mensagem por telefone, criando o contato quando necessário
|
|
11
|
+
- Enviar template oficial em uma conversa
|
|
12
|
+
|
|
13
|
+
A operação **Enviar mensagem por telefone** executa automaticamente:
|
|
14
|
+
|
|
15
|
+
```text
|
|
16
|
+
buscar contato → criar se necessário → iniciar conversa → enviar mensagem
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Requisitos
|
|
20
|
+
|
|
21
|
+
- Node.js 22 ou superior
|
|
22
|
+
- n8n com suporte a Community Nodes
|
|
23
|
+
- Conta UnderChat com plano ativo
|
|
24
|
+
- Token da API pública
|
|
25
|
+
- UUID de um usuário executor ativo
|
|
26
|
+
|
|
27
|
+
## Desenvolvimento
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
npm install
|
|
31
|
+
npm run build
|
|
32
|
+
npm run lint
|
|
33
|
+
npm run dev
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
O modo de desenvolvimento inicia uma instância do n8n com o node carregado.
|
|
37
|
+
|
|
38
|
+
## Credenciais
|
|
39
|
+
|
|
40
|
+
No n8n, crie uma credencial **UnderChat API** e informe:
|
|
41
|
+
|
|
42
|
+
- **API Key:** token gerado em `Integração → API pública`.
|
|
43
|
+
- **ID do Usuário Executor:** UUID do usuário cujas permissões serão aplicadas.
|
|
44
|
+
- **URL Base:** mantenha `https://api-public.underchat.com.br/v1` em produção.
|
|
45
|
+
|
|
46
|
+
A integração envia a chave no header `keyapi` e o executor em
|
|
47
|
+
`x-underchat-user-id`.
|
|
48
|
+
|
|
49
|
+
## Teste seguro
|
|
50
|
+
|
|
51
|
+
O envio de mensagens produz efeito real no canal configurado. Use um contato e um
|
|
52
|
+
canal controlados durante a validação.
|
|
53
|
+
|
|
54
|
+
## Documentação
|
|
55
|
+
|
|
56
|
+
- [UnderChat Developers](https://docs.underchat.com.br/)
|
|
57
|
+
- [Criação de nodes do n8n](https://docs.n8n.io/integrations/creating-nodes/)
|
|
58
|
+
|
|
59
|
+
## Licença
|
|
60
|
+
|
|
61
|
+
MIT
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64">
|
|
2
|
-
<rect width="64" height="64" rx="14" fill="#183BFF"/>
|
|
3
|
-
<path d="M16 18h10v24c0 4 2 6 6 6s6-2 6-6V18h10v25c0 10-6 15-16 15S16 53 16 43V18Z" fill="#fff"/>
|
|
4
|
-
<path d="M38 18h10v8H38z" fill="#35E3A4"/>
|
|
5
|
-
</svg>
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64">
|
|
2
|
+
<rect width="64" height="64" rx="14" fill="#183BFF"/>
|
|
3
|
+
<path d="M16 18h10v24c0 4 2 6 6 6s6-2 6-6V18h10v25c0 10-6 15-16 15S16 53 16 43V18Z" fill="#fff"/>
|
|
4
|
+
<path d="M38 18h10v8H38z" fill="#35E3A4"/>
|
|
5
|
+
</svg>
|
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "n8n-nodes-underchat",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Community Node do n8n para automações com a UnderChat",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "UnderChat",
|
|
@@ -27,15 +27,21 @@
|
|
|
27
27
|
"prepublishOnly": "n8n-node prerelease",
|
|
28
28
|
"release": "n8n-node release"
|
|
29
29
|
},
|
|
30
|
-
"files": [
|
|
30
|
+
"files": [
|
|
31
|
+
"dist"
|
|
32
|
+
],
|
|
31
33
|
"publishConfig": {
|
|
32
34
|
"access": "public"
|
|
33
35
|
},
|
|
34
36
|
"n8n": {
|
|
35
37
|
"n8nNodesApiVersion": 1,
|
|
36
38
|
"strict": true,
|
|
37
|
-
"credentials": [
|
|
38
|
-
|
|
39
|
+
"credentials": [
|
|
40
|
+
"dist/credentials/UnderChatApi.credentials.js"
|
|
41
|
+
],
|
|
42
|
+
"nodes": [
|
|
43
|
+
"dist/nodes/UnderChat/UnderChat.node.js"
|
|
44
|
+
]
|
|
39
45
|
},
|
|
40
46
|
"devDependencies": {
|
|
41
47
|
"@n8n/node-cli": "*",
|