Description
n8n-nodes-salesmartly-npm
n8n community nodes for SaleSmartly.
Package
Install the published community package:
npm install n8n-nodes-salesmartly-npm
Important:
- The exact npm package name is
n8n-nodes-salesmartly-npm. - Use this exact spelling in the n8n Creator submission and during local installation tests.
- Trigger:
SaleSmartly Message Trigger(salesmartlyMessageTrigger) - Action:
SaleSmartly(getCustomerByChatUser) Base URL: e.g.https://developer.salesmartly.com(production environment)Token: the value used as request headern8n-token
Nodes
Credentials
Create credentials: SaleSmartly API
Trigger payload
The trigger expects the webhook body like:
{
"event": "message",
"data": "{"chatuserid":"xxx","chatuser":{"projectId":1},"mid":"m1","sendtime":1700000000,"msg_type":"text","msg":"hi"}"
}
Notes:
data is a stringified JSON and will be parsed again in the node.Development
Build:
npm install
npm run build
Test:
npm test
Local n8n (Docker)
See dev-n8n/docker-compose.yml.
To reproduce the installation check locally:
docker compose up -d
Then install the package inside n8n using the exact package name:
npm install n8n-nodes-salesmartly-npm