n8n-nodes-colibly 0.0.0-stage → 0.3.0
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 +21 -0
- package/README.md +68 -2
- package/dist/credentials/ColiblyApi.credentials.d.ts +10 -0
- package/dist/credentials/ColiblyApi.credentials.js +47 -0
- package/dist/credentials/colibly.dark.svg +1 -0
- package/dist/credentials/colibly.svg +1 -0
- package/dist/nodes/Colibly/Colibly.node.d.ts +18 -0
- package/dist/nodes/Colibly/Colibly.node.js +1344 -0
- package/dist/nodes/Colibly/GenericFunctions.d.ts +16 -0
- package/dist/nodes/Colibly/GenericFunctions.js +143 -0
- package/dist/nodes/Colibly/colibly.dark.svg +1 -0
- package/dist/nodes/Colibly/colibly.svg +1 -0
- package/dist/nodes/Colibly/signature.d.ts +7 -0
- package/dist/nodes/Colibly/signature.js +40 -0
- package/dist/nodes/ColiblyTrigger/ColiblyTrigger.node.d.ts +18 -0
- package/dist/nodes/ColiblyTrigger/ColiblyTrigger.node.js +166 -0
- package/dist/nodes/ColiblyTrigger/colibly.dark.svg +1 -0
- package/dist/nodes/ColiblyTrigger/colibly.svg +1 -0
- package/dist/package.json +57 -0
- package/package.json +56 -5
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Colibly
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,69 @@
|
|
|
1
|
-
#
|
|
1
|
+
# n8n-nodes-colibly
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Nodos de [n8n](https://n8n.io) para [Colibly](https://colibly.com), el CRM para WhatsApp: contactos, conversaciones, mensajes, plantillas y automatizaciones, más un disparador por webhook firmado.
|
|
4
|
+
|
|
5
|
+
*English below.*
|
|
6
|
+
|
|
7
|
+
## Instalación
|
|
8
|
+
|
|
9
|
+
En tu n8n (self-hosted): **Settings → Community Nodes → Install** y escribe `n8n-nodes-colibly`.
|
|
10
|
+
|
|
11
|
+
## Credencial
|
|
12
|
+
|
|
13
|
+
1. En Colibly, ve a **Configuración → API** y crea una API key. Activa los permisos de lo que vas a usar:
|
|
14
|
+
| Permiso | Para |
|
|
15
|
+
|---|---|
|
|
16
|
+
| `contacts:read` / `contacts:write` | Buscar, crear y actualizar contactos y etiquetas |
|
|
17
|
+
| `conversations:read` / `conversations:write` | Leer conversaciones y mensajes; cambiar estado y asignación |
|
|
18
|
+
| `messages:send` | Enviar mensajes |
|
|
19
|
+
| `automations:run` | Iniciar automatizaciones manuales |
|
|
20
|
+
| `webhooks:manage` | El nodo **Colibly Trigger** |
|
|
21
|
+
2. En n8n crea una credencial **Colibly API** con esa key. La URL se queda en `https://app.colibly.com`.
|
|
22
|
+
|
|
23
|
+
## Nodo «Colibly»
|
|
24
|
+
|
|
25
|
+
| Recurso | Operaciones |
|
|
26
|
+
|---|---|
|
|
27
|
+
| Contact | Get, Get Many (búsqueda y filtros), Create or Get (solo cuentas de WhatsApp), Update (nombre, etapa, valor del trato, fecha de cierre, campos), Add Tag, Remove Tag |
|
|
28
|
+
| Conversation | Get, Get Many, Get Messages, Update (estado, persona asignada, equipo) |
|
|
29
|
+
| Message | Send (texto, botones, plantilla, imagen, documento, audio, video por URL), Get |
|
|
30
|
+
| Automation | Get Many, Run (automatizaciones con disparador «manual», con variables) |
|
|
31
|
+
| Workspace | Cuentas, etiquetas, usuarios, equipos, plantillas e identidad de la key |
|
|
32
|
+
|
|
33
|
+
- Los envíos y las ejecuciones de automatizaciones llevan `Idempotency-Key`: reintentar el flujo no manda el mensaje dos veces.
|
|
34
|
+
- Texto, botones y archivos solo se pueden enviar dentro de la ventana de 24 h del cliente; fuera de ella usa una plantilla aprobada.
|
|
35
|
+
- Se puede usar como herramienta del **AI Agent** de n8n.
|
|
36
|
+
|
|
37
|
+
## Nodo «Colibly Trigger»
|
|
38
|
+
|
|
39
|
+
Elige los eventos (mensaje recibido, contacto nuevo, cambio de etapa, etiqueta, conversación asignada o resuelta, citas, lead calificado…) y, si quieres, las cuentas. Al **activar** el flujo, el nodo crea su webhook en Colibly; al **desactivarlo**, lo borra. Cada entrega se verifica con la firma `X-Colibly-Signature` (HMAC-SHA256, 5 minutos de tolerancia); sin firma válida responde 401 y no dispara.
|
|
40
|
+
|
|
41
|
+
La URL de tu n8n debe ser **pública por HTTPS** (Colibly no entrega a direcciones privadas). Con n8n en tu computadora usa un túnel.
|
|
42
|
+
|
|
43
|
+
## Ejemplos
|
|
44
|
+
|
|
45
|
+
- **Lead nuevo → Google Sheets**: Colibly Trigger (`contact.created`) → Google Sheets (Append).
|
|
46
|
+
- **Etiqueta VIP → plantilla**: Colibly Trigger (`tag.added`) → IF (`data.tagName` = VIP) → Colibly (Message → Send, tipo Template).
|
|
47
|
+
- **Respuesta con IA**: Colibly Trigger (`message.received`) → AI Agent → Colibly (Message → Send, tipo Text, a la conversación).
|
|
48
|
+
|
|
49
|
+
Documentación completa de la API: <https://app.colibly.com/docs/api>.
|
|
50
|
+
|
|
51
|
+
---
|
|
52
|
+
|
|
53
|
+
## English
|
|
54
|
+
|
|
55
|
+
n8n community nodes for Colibly (WhatsApp CRM). Install `n8n-nodes-colibly` from **Settings → Community Nodes**, create a **Colibly API** credential with an API key from Colibly (**Configuración → API**) and use:
|
|
56
|
+
|
|
57
|
+
- **Colibly** — contacts, tags, conversations, messages (text, buttons, templates, media by URL) and manual automations. Sends are idempotent.
|
|
58
|
+
- **Colibly Trigger** — registers its own webhook in Colibly when the workflow is activated, verifies `X-Colibly-Signature` on every delivery and removes the webhook when deactivated. Requires the `webhooks:manage` scope and a public HTTPS n8n URL.
|
|
59
|
+
|
|
60
|
+
## Desarrollo
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
npm ci
|
|
64
|
+
npm run lint # reglas de n8n para nodos de la comunidad
|
|
65
|
+
npm run build
|
|
66
|
+
npm test # firma de los webhooks
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
Licencia MIT.
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { IAuthenticateGeneric, Icon, ICredentialTestRequest, ICredentialType, INodeProperties } from 'n8n-workflow';
|
|
2
|
+
export declare class ColiblyApi implements ICredentialType {
|
|
3
|
+
name: string;
|
|
4
|
+
displayName: string;
|
|
5
|
+
icon: Icon;
|
|
6
|
+
documentationUrl: string;
|
|
7
|
+
properties: INodeProperties[];
|
|
8
|
+
authenticate: IAuthenticateGeneric;
|
|
9
|
+
test: ICredentialTestRequest;
|
|
10
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ColiblyApi = void 0;
|
|
4
|
+
class ColiblyApi {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.name = 'coliblyApi';
|
|
7
|
+
this.displayName = 'Colibly API';
|
|
8
|
+
this.icon = { light: 'file:colibly.svg', dark: 'file:colibly.dark.svg' };
|
|
9
|
+
this.documentationUrl = 'https://app.colibly.com/docs/api';
|
|
10
|
+
this.properties = [
|
|
11
|
+
{
|
|
12
|
+
displayName: 'API Key',
|
|
13
|
+
name: 'apiKey',
|
|
14
|
+
type: 'string',
|
|
15
|
+
typeOptions: { password: true },
|
|
16
|
+
required: true,
|
|
17
|
+
default: '',
|
|
18
|
+
placeholder: 'sk_live_...',
|
|
19
|
+
description: 'Créala en Colibly → Configuración → API. Activa los permisos de lo que vas a usar (contactos, conversaciones, mensajes, webhooks, automatizaciones).',
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
displayName: 'URL de Colibly',
|
|
23
|
+
name: 'baseUrl',
|
|
24
|
+
type: 'string',
|
|
25
|
+
required: true,
|
|
26
|
+
default: 'https://app.colibly.com',
|
|
27
|
+
description: 'Cámbiala solo si usas otra instalación de Colibly',
|
|
28
|
+
},
|
|
29
|
+
];
|
|
30
|
+
this.authenticate = {
|
|
31
|
+
type: 'generic',
|
|
32
|
+
properties: {
|
|
33
|
+
headers: {
|
|
34
|
+
Authorization: '=Bearer {{$credentials.apiKey}}',
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
this.test = {
|
|
39
|
+
request: {
|
|
40
|
+
baseURL: '={{$credentials.baseUrl.replace(/\\/$/, "")}}',
|
|
41
|
+
url: '/api/v1/me',
|
|
42
|
+
},
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.ColiblyApi = ColiblyApi;
|
|
47
|
+
//# sourceMappingURL=ColiblyApi.credentials.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><rect width="32" height="32" rx="9" fill="#0E7490"/><path fill="#FFFFFF" fill-rule="evenodd" d="M21.57 20.68A8.26 8.26 0 1 1 21.57 10.52L18.86 12.63A4.82 4.82 0 1 0 18.86 18.57ZM22.26 13.79L25.18 15.47L22.26 17.16Z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><rect width="32" height="32" rx="9" fill="#0E7490"/><path fill="#FFFFFF" fill-rule="evenodd" d="M21.57 20.68A8.26 8.26 0 1 1 21.57 10.52L18.86 12.63A4.82 4.82 0 1 0 18.86 18.57ZM22.26 13.79L25.18 15.47L22.26 17.16Z"/></svg>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { IExecuteFunctions, INodeExecutionData, INodeType, INodeTypeDescription } from 'n8n-workflow';
|
|
2
|
+
import { getAccounts, getAllTemplates, getRunnableAutomations, getTags, getTeams, getTemplates, getUsers, getWhatsappAccounts } from './GenericFunctions';
|
|
3
|
+
export declare class Colibly implements INodeType {
|
|
4
|
+
description: INodeTypeDescription;
|
|
5
|
+
methods: {
|
|
6
|
+
loadOptions: {
|
|
7
|
+
getAccounts: typeof getAccounts;
|
|
8
|
+
getWhatsappAccounts: typeof getWhatsappAccounts;
|
|
9
|
+
getTags: typeof getTags;
|
|
10
|
+
getUsers: typeof getUsers;
|
|
11
|
+
getTeams: typeof getTeams;
|
|
12
|
+
getTemplates: typeof getTemplates;
|
|
13
|
+
getAllTemplates: typeof getAllTemplates;
|
|
14
|
+
getRunnableAutomations: typeof getRunnableAutomations;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]>;
|
|
18
|
+
}
|