n8n-nodes-salesrobot 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/README.md +264 -0
- package/dist/credentials/SalesrobotApi.credentials.d.ts +10 -0
- package/dist/credentials/SalesrobotApi.credentials.js +33 -0
- package/dist/credentials/SalesrobotApi.credentials.js.map +1 -0
- package/dist/icons/salesrobot.dark.svg +12 -0
- package/dist/icons/salesrobot.svg +12 -0
- package/dist/nodes/Salesrobot/Salesrobot.node.d.ts +4 -0
- package/dist/nodes/Salesrobot/Salesrobot.node.js +77 -0
- package/dist/nodes/Salesrobot/Salesrobot.node.js.map +1 -0
- package/dist/nodes/Salesrobot/Salesrobot.node.json +23 -0
- package/dist/nodes/Salesrobot/resources/aiPersonalization/createAiVariable.d.ts +2 -0
- package/dist/nodes/Salesrobot/resources/aiPersonalization/createAiVariable.js +82 -0
- package/dist/nodes/Salesrobot/resources/aiPersonalization/createAiVariable.js.map +1 -0
- package/dist/nodes/Salesrobot/resources/aiPersonalization/createSmartCommentVariable.d.ts +2 -0
- package/dist/nodes/Salesrobot/resources/aiPersonalization/createSmartCommentVariable.js +82 -0
- package/dist/nodes/Salesrobot/resources/aiPersonalization/createSmartCommentVariable.js.map +1 -0
- package/dist/nodes/Salesrobot/resources/aiPersonalization/createVideoAvatar.d.ts +2 -0
- package/dist/nodes/Salesrobot/resources/aiPersonalization/createVideoAvatar.js +112 -0
- package/dist/nodes/Salesrobot/resources/aiPersonalization/createVideoAvatar.js.map +1 -0
- package/dist/nodes/Salesrobot/resources/aiPersonalization/createVoiceClone.d.ts +2 -0
- package/dist/nodes/Salesrobot/resources/aiPersonalization/createVoiceClone.js +85 -0
- package/dist/nodes/Salesrobot/resources/aiPersonalization/createVoiceClone.js.map +1 -0
- package/dist/nodes/Salesrobot/resources/aiPersonalization/deleteVoiceClone.d.ts +2 -0
- package/dist/nodes/Salesrobot/resources/aiPersonalization/deleteVoiceClone.js +27 -0
- package/dist/nodes/Salesrobot/resources/aiPersonalization/deleteVoiceClone.js.map +1 -0
- package/dist/nodes/Salesrobot/resources/aiPersonalization/generateSampleVideo.d.ts +2 -0
- package/dist/nodes/Salesrobot/resources/aiPersonalization/generateSampleVideo.js +48 -0
- package/dist/nodes/Salesrobot/resources/aiPersonalization/generateSampleVideo.js.map +1 -0
- package/dist/nodes/Salesrobot/resources/aiPersonalization/generateTestVoiceMessage.d.ts +2 -0
- package/dist/nodes/Salesrobot/resources/aiPersonalization/generateTestVoiceMessage.js +48 -0
- package/dist/nodes/Salesrobot/resources/aiPersonalization/generateTestVoiceMessage.js.map +1 -0
- package/dist/nodes/Salesrobot/resources/aiPersonalization/getAiVariables.d.ts +2 -0
- package/dist/nodes/Salesrobot/resources/aiPersonalization/getAiVariables.js +57 -0
- package/dist/nodes/Salesrobot/resources/aiPersonalization/getAiVariables.js.map +1 -0
- package/dist/nodes/Salesrobot/resources/aiPersonalization/getSmartCommentVariables.d.ts +2 -0
- package/dist/nodes/Salesrobot/resources/aiPersonalization/getSmartCommentVariables.js +57 -0
- package/dist/nodes/Salesrobot/resources/aiPersonalization/getSmartCommentVariables.js.map +1 -0
- package/dist/nodes/Salesrobot/resources/aiPersonalization/getVideoAvatar.d.ts +2 -0
- package/dist/nodes/Salesrobot/resources/aiPersonalization/getVideoAvatar.js +27 -0
- package/dist/nodes/Salesrobot/resources/aiPersonalization/getVideoAvatar.js.map +1 -0
- package/dist/nodes/Salesrobot/resources/aiPersonalization/index.d.ts +2 -0
- package/dist/nodes/Salesrobot/resources/aiPersonalization/index.js +161 -0
- package/dist/nodes/Salesrobot/resources/aiPersonalization/index.js.map +1 -0
- package/dist/nodes/Salesrobot/resources/campaign/addSequence.d.ts +2 -0
- package/dist/nodes/Salesrobot/resources/campaign/addSequence.js +153 -0
- package/dist/nodes/Salesrobot/resources/campaign/addSequence.js.map +1 -0
- package/dist/nodes/Salesrobot/resources/campaign/create.d.ts +2 -0
- package/dist/nodes/Salesrobot/resources/campaign/create.js +114 -0
- package/dist/nodes/Salesrobot/resources/campaign/create.js.map +1 -0
- package/dist/nodes/Salesrobot/resources/campaign/deleteProspects.d.ts +2 -0
- package/dist/nodes/Salesrobot/resources/campaign/deleteProspects.js +61 -0
- package/dist/nodes/Salesrobot/resources/campaign/deleteProspects.js.map +1 -0
- package/dist/nodes/Salesrobot/resources/campaign/getProspectStatus.d.ts +2 -0
- package/dist/nodes/Salesrobot/resources/campaign/getProspectStatus.js +44 -0
- package/dist/nodes/Salesrobot/resources/campaign/getProspectStatus.js.map +1 -0
- package/dist/nodes/Salesrobot/resources/campaign/getProspects.d.ts +2 -0
- package/dist/nodes/Salesrobot/resources/campaign/getProspects.js +103 -0
- package/dist/nodes/Salesrobot/resources/campaign/getProspects.js.map +1 -0
- package/dist/nodes/Salesrobot/resources/campaign/getStats.d.ts +2 -0
- package/dist/nodes/Salesrobot/resources/campaign/getStats.js +44 -0
- package/dist/nodes/Salesrobot/resources/campaign/getStats.js.map +1 -0
- package/dist/nodes/Salesrobot/resources/campaign/importFromCsv.d.ts +2 -0
- package/dist/nodes/Salesrobot/resources/campaign/importFromCsv.js +87 -0
- package/dist/nodes/Salesrobot/resources/campaign/importFromCsv.js.map +1 -0
- package/dist/nodes/Salesrobot/resources/campaign/importProspects.d.ts +2 -0
- package/dist/nodes/Salesrobot/resources/campaign/importProspects.js +279 -0
- package/dist/nodes/Salesrobot/resources/campaign/importProspects.js.map +1 -0
- package/dist/nodes/Salesrobot/resources/campaign/index.d.ts +2 -0
- package/dist/nodes/Salesrobot/resources/campaign/index.js +208 -0
- package/dist/nodes/Salesrobot/resources/campaign/index.js.map +1 -0
- package/dist/nodes/Salesrobot/resources/campaign/list.d.ts +2 -0
- package/dist/nodes/Salesrobot/resources/campaign/list.js +225 -0
- package/dist/nodes/Salesrobot/resources/campaign/list.js.map +1 -0
- package/dist/nodes/Salesrobot/resources/campaign/pauseResume.d.ts +2 -0
- package/dist/nodes/Salesrobot/resources/campaign/pauseResume.js +87 -0
- package/dist/nodes/Salesrobot/resources/campaign/pauseResume.js.map +1 -0
- package/dist/nodes/Salesrobot/resources/campaign/pauseResumeProspect.d.ts +2 -0
- package/dist/nodes/Salesrobot/resources/campaign/pauseResumeProspect.js +71 -0
- package/dist/nodes/Salesrobot/resources/campaign/pauseResumeProspect.js.map +1 -0
- package/dist/nodes/Salesrobot/resources/campaign/start.d.ts +2 -0
- package/dist/nodes/Salesrobot/resources/campaign/start.js +60 -0
- package/dist/nodes/Salesrobot/resources/campaign/start.js.map +1 -0
- package/dist/nodes/Salesrobot/resources/campaign/updateConfiguration.d.ts +2 -0
- package/dist/nodes/Salesrobot/resources/campaign/updateConfiguration.js +231 -0
- package/dist/nodes/Salesrobot/resources/campaign/updateConfiguration.js.map +1 -0
- package/dist/nodes/Salesrobot/resources/linkedin/getAccounts.d.ts +2 -0
- package/dist/nodes/Salesrobot/resources/linkedin/getAccounts.js +100 -0
- package/dist/nodes/Salesrobot/resources/linkedin/getAccounts.js.map +1 -0
- package/dist/nodes/Salesrobot/resources/linkedin/index.d.ts +2 -0
- package/dist/nodes/Salesrobot/resources/linkedin/index.js +49 -0
- package/dist/nodes/Salesrobot/resources/linkedin/index.js.map +1 -0
- package/dist/nodes/Salesrobot/resources/linkedin/syncInbox.d.ts +2 -0
- package/dist/nodes/Salesrobot/resources/linkedin/syncInbox.js +44 -0
- package/dist/nodes/Salesrobot/resources/linkedin/syncInbox.js.map +1 -0
- package/dist/nodes/Salesrobot/resources/settings/automaticWarmup.d.ts +2 -0
- package/dist/nodes/Salesrobot/resources/settings/automaticWarmup.js +61 -0
- package/dist/nodes/Salesrobot/resources/settings/automaticWarmup.js.map +1 -0
- package/dist/nodes/Salesrobot/resources/settings/copyBlacklist.d.ts +2 -0
- package/dist/nodes/Salesrobot/resources/settings/copyBlacklist.js +44 -0
- package/dist/nodes/Salesrobot/resources/settings/copyBlacklist.js.map +1 -0
- package/dist/nodes/Salesrobot/resources/settings/deletePendingInvites.d.ts +2 -0
- package/dist/nodes/Salesrobot/resources/settings/deletePendingInvites.js +64 -0
- package/dist/nodes/Salesrobot/resources/settings/deletePendingInvites.js.map +1 -0
- package/dist/nodes/Salesrobot/resources/settings/index.d.ts +2 -0
- package/dist/nodes/Salesrobot/resources/settings/index.js +105 -0
- package/dist/nodes/Salesrobot/resources/settings/index.js.map +1 -0
- package/dist/nodes/Salesrobot/resources/settings/updateBlacklist.d.ts +2 -0
- package/dist/nodes/Salesrobot/resources/settings/updateBlacklist.js +65 -0
- package/dist/nodes/Salesrobot/resources/settings/updateBlacklist.js.map +1 -0
- package/dist/nodes/Salesrobot/resources/settings/updateQuota.d.ts +2 -0
- package/dist/nodes/Salesrobot/resources/settings/updateQuota.js +381 -0
- package/dist/nodes/Salesrobot/resources/settings/updateQuota.js.map +1 -0
- package/dist/nodes/Salesrobot/resources/settings/updateSchedule.d.ts +2 -0
- package/dist/nodes/Salesrobot/resources/settings/updateSchedule.js +217 -0
- package/dist/nodes/Salesrobot/resources/settings/updateSchedule.js.map +1 -0
- package/dist/nodes/Salesrobot/shared/descriptions.d.ts +4 -0
- package/dist/nodes/Salesrobot/shared/descriptions.js +33 -0
- package/dist/nodes/Salesrobot/shared/descriptions.js.map +1 -0
- package/dist/nodes/Salesrobot/shared/transport.d.ts +2 -0
- package/dist/nodes/Salesrobot/shared/transport.js +14 -0
- package/dist/nodes/Salesrobot/shared/transport.js.map +1 -0
- package/dist/nodes/Salesrobot/shared/utils.d.ts +3 -0
- package/dist/nodes/Salesrobot/shared/utils.js +23 -0
- package/dist/nodes/Salesrobot/shared/utils.js.map +1 -0
- package/dist/package.json +55 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +55 -0
package/README.md
ADDED
|
@@ -0,0 +1,264 @@
|
|
|
1
|
+
# n8n-nodes-salesrobot
|
|
2
|
+
|
|
3
|
+
An n8n community node for integrating with SalesRobot API - a LinkedIn automation and outreach platform that helps you automate LinkedIn campaigns, manage prospects, and streamline your sales process.
|
|
4
|
+
|
|
5
|
+
## Features
|
|
6
|
+
|
|
7
|
+
- **Campaign Management**: Create, list, start, pause, and manage LinkedIn campaigns
|
|
8
|
+
- **Prospect Management**: Import prospects from CSV, Sales Navigator, and other sources
|
|
9
|
+
- **AI Personalization**: Create AI variables, voice clones, and video avatars for personalized outreach
|
|
10
|
+
- **LinkedIn Integration**: Sync inbox, manage accounts, and automate LinkedIn activities
|
|
11
|
+
- **Settings Management**: Configure quotas, schedules, blacklists, and warmup settings
|
|
12
|
+
- **Sequence Automation**: Add and manage sequence steps for automated outreach
|
|
13
|
+
|
|
14
|
+
## Installation
|
|
15
|
+
|
|
16
|
+
### In n8n
|
|
17
|
+
|
|
18
|
+
1. Go to **Settings** → **Community Nodes**
|
|
19
|
+
2. Click **Install a community node**
|
|
20
|
+
3. Enter: `n8n-nodes-salesrobot`
|
|
21
|
+
4. Click **Install**
|
|
22
|
+
|
|
23
|
+
### Manual Installation
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
npm install n8n-nodes-salesrobot
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Authentication
|
|
30
|
+
|
|
31
|
+
### Getting Your API Key
|
|
32
|
+
|
|
33
|
+
1. Log in to your SalesRobot account
|
|
34
|
+
2. Navigate to **Settings** → **Admin Settings** → **API Key**
|
|
35
|
+
3. Generate your API key
|
|
36
|
+
|
|
37
|
+
### Setting Up Credentials in n8n
|
|
38
|
+
|
|
39
|
+
1. In your n8n workflow, add a **Salesrobot** node
|
|
40
|
+
2. Click on **Credentials** → **Create New Credential**
|
|
41
|
+
3. Select **Salesrobot API**
|
|
42
|
+
4. Enter your API key in the **API Key** field
|
|
43
|
+
5. Click **Save**
|
|
44
|
+
|
|
45
|
+
The API key will be sent as the `Authorization` header in all requests.
|
|
46
|
+
|
|
47
|
+
## Resources and Operations
|
|
48
|
+
|
|
49
|
+
### Campaign
|
|
50
|
+
|
|
51
|
+
Manage LinkedIn campaigns and prospects:
|
|
52
|
+
|
|
53
|
+
- **Create**: Create a new campaign
|
|
54
|
+
- **List**: Get a list of all campaigns (with filtering options)
|
|
55
|
+
- **Import Prospects**: Import prospects from LinkedIn Search
|
|
56
|
+
- **Import From CSV**: Import multiple prospects from CSV data
|
|
57
|
+
- **Add Sequence Steps**: Add sequence steps to a campaign
|
|
58
|
+
- **Update Configuration**: Update campaign settings and configuration
|
|
59
|
+
- **Start**: Start a campaign
|
|
60
|
+
- **Pause/Resume**: Pause or resume a campaign
|
|
61
|
+
- **Get Prospects**: Get list of prospects in a campaign
|
|
62
|
+
- **Delete Prospects**: Delete multiple prospects from a campaign
|
|
63
|
+
- **Get Prospect Status**: Get execution details for a specific prospect
|
|
64
|
+
- **Pause/Resume Prospect**: Pause or resume a specific prospect
|
|
65
|
+
- **Get Stats**: Get time-wise statistics for a campaign
|
|
66
|
+
|
|
67
|
+
### AI Personalization
|
|
68
|
+
|
|
69
|
+
Create personalized content for your outreach:
|
|
70
|
+
|
|
71
|
+
- **Create AI Variable**: Create or update an AI variable for use in campaign sequences
|
|
72
|
+
- **Get AI Variables**: Get list of AI variables for use in sequences
|
|
73
|
+
- **Create Smart Comment Variable**: Create a smart comment variable for post engagement sequences
|
|
74
|
+
- **Get Smart Comment Variables**: Get list of smart comment variables
|
|
75
|
+
- **Create Voice Clone**: Create a voice clone for AI voice personalization
|
|
76
|
+
- **Delete Voice Clone**: Delete an existing voice clone
|
|
77
|
+
- **Generate Test Voice Message**: Generate a test voice message to preview voice clone
|
|
78
|
+
- **Get Video Avatar**: Get video avatar for AI video personalization
|
|
79
|
+
- **Create Video Avatar**: Create a video avatar for AI video personalization
|
|
80
|
+
- **Generate Sample Video**: Generate a sample video with AI video personalization
|
|
81
|
+
|
|
82
|
+
### LinkedIn
|
|
83
|
+
|
|
84
|
+
Manage LinkedIn accounts and messages:
|
|
85
|
+
|
|
86
|
+
- **Get Accounts**: Get all connected LinkedIn accounts
|
|
87
|
+
- **Sync Inbox**: Synchronize LinkedIn inbox messages
|
|
88
|
+
|
|
89
|
+
### Settings
|
|
90
|
+
|
|
91
|
+
Configure account settings and quotas:
|
|
92
|
+
|
|
93
|
+
- **Update Quota**: Update daily quota and warm up settings for LinkedIn account
|
|
94
|
+
- **Update Schedule**: Update schedule settings including working hours and days
|
|
95
|
+
- **Delete Pending Invites**: Delete old pending connection invites
|
|
96
|
+
- **Update Blacklist**: Update blacklisted companies and profile URLs
|
|
97
|
+
- **Copy Blacklist From Account**: Copy blacklist settings from another LinkedIn account
|
|
98
|
+
- **Automatic Warmup**: Configure automatic connection acceptance and suggested connections
|
|
99
|
+
|
|
100
|
+
## Example Workflows
|
|
101
|
+
|
|
102
|
+
### 1. Create and Start a Campaign
|
|
103
|
+
|
|
104
|
+
```
|
|
105
|
+
1. Salesrobot Node (Campaign → Create)
|
|
106
|
+
- LinkedIn Account UUID: {{ $json.linkedinAccountUuid }}
|
|
107
|
+
- Campaign Name: "Q4 Outreach Campaign"
|
|
108
|
+
- Campaign Type: Advanced
|
|
109
|
+
- Campaign Family: LinkedIn
|
|
110
|
+
|
|
111
|
+
2. Salesrobot Node (Campaign → Import Prospects)
|
|
112
|
+
- LinkedIn Account UUID: {{ $json.linkedinAccountUuid }}
|
|
113
|
+
- Campaign UUID: {{ $json.campaignUuid }}
|
|
114
|
+
- Search URL: [LinkedIn Sales Navigator search URL]
|
|
115
|
+
- Search Type: Sales Navigator
|
|
116
|
+
- Connection Levels: 2nd, 3rd
|
|
117
|
+
|
|
118
|
+
3. Salesrobot Node (Campaign → Add Sequence Steps)
|
|
119
|
+
- LinkedIn Account UUID: {{ $json.linkedinAccountUuid }}
|
|
120
|
+
- Campaign UUID: {{ $json.campaignUuid }}
|
|
121
|
+
- Sequence Steps: [JSON array with sequence steps]
|
|
122
|
+
|
|
123
|
+
4. Salesrobot Node (Campaign → Start)
|
|
124
|
+
- Campaign UUID: {{ $json.campaignUuid }}
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
### 2. Import Prospects from CSV
|
|
128
|
+
|
|
129
|
+
```
|
|
130
|
+
1. Read Binary File Node (to read CSV file)
|
|
131
|
+
|
|
132
|
+
2. Salesrobot Node (Campaign → Import From CSV)
|
|
133
|
+
- LinkedIn Account UUID: {{ $json.linkedinAccountUuid }}
|
|
134
|
+
- Campaign UUID: {{ $json.campaignUuid }}
|
|
135
|
+
- CSV Data: {{ $binary.data }}
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
### 3. Create AI Variable and Use in Campaign
|
|
139
|
+
|
|
140
|
+
```
|
|
141
|
+
1. Salesrobot Node (AI Personalization → Create AI Variable)
|
|
142
|
+
- LinkedIn Account UUID: {{ $json.linkedinAccountUuid }}
|
|
143
|
+
- Variable Name: "companyResearch"
|
|
144
|
+
- Variable Description: "Research about the company"
|
|
145
|
+
|
|
146
|
+
2. Salesrobot Node (Campaign → Add Sequence Steps)
|
|
147
|
+
- Campaign UUID: {{ $json.campaignUuid }}
|
|
148
|
+
- Sequence Steps: [Include aiVariableName and aiVariableId in mail body]
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
### 4. Monitor Campaign Performance
|
|
152
|
+
|
|
153
|
+
```
|
|
154
|
+
1. Salesrobot Node (Campaign → Get Stats)
|
|
155
|
+
- LinkedIn Account UUID: {{ $json.linkedinAccountUuid }}
|
|
156
|
+
- Campaign UUID: {{ $json.campaignUuid }}
|
|
157
|
+
|
|
158
|
+
2. Function Node (to process and format statistics)
|
|
159
|
+
|
|
160
|
+
3. Email Node (to send daily report)
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
## API Documentation
|
|
164
|
+
|
|
165
|
+
For detailed API documentation, visit:
|
|
166
|
+
|
|
167
|
+
- **Postman Collection**: [SalesRobot API Documentation](https://solar-robot-476240.postman.co/workspace/salesrobot~11cc6376-ed3b-435e-926a-0a10deb24cd7/collection/10815846-ab263f3a-130f-4de2-a05f-b824b4877a20)
|
|
168
|
+
|
|
169
|
+
## Common Parameters
|
|
170
|
+
|
|
171
|
+
### LinkedIn Account UUID
|
|
172
|
+
|
|
173
|
+
Most operations require a `linkedinAccountUuid`. You can get this by:
|
|
174
|
+
|
|
175
|
+
1. Using the **LinkedIn → Get Accounts** operation
|
|
176
|
+
2. The UUID will be in the response
|
|
177
|
+
|
|
178
|
+
### Campaign UUID
|
|
179
|
+
|
|
180
|
+
Campaign operations require a `campaignUuid`. You can get this by:
|
|
181
|
+
|
|
182
|
+
1. Creating a new campaign (returns UUID)
|
|
183
|
+
2. Listing campaigns (UUID in response)
|
|
184
|
+
|
|
185
|
+
### Sequence Steps Format
|
|
186
|
+
|
|
187
|
+
When adding sequence steps, use this JSON format:
|
|
188
|
+
|
|
189
|
+
```json
|
|
190
|
+
[
|
|
191
|
+
{
|
|
192
|
+
"stepOrdinal": 1,
|
|
193
|
+
"hoursDelay": 0,
|
|
194
|
+
"sequenceStepType": "VIEW_PROFILE",
|
|
195
|
+
"multiVariateMails": [
|
|
196
|
+
{
|
|
197
|
+
"body": "",
|
|
198
|
+
"subject": "",
|
|
199
|
+
"inMailVariant": false,
|
|
200
|
+
"ordinal": 1
|
|
201
|
+
}
|
|
202
|
+
]
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
"stepOrdinal": 2,
|
|
206
|
+
"hoursDelay": 1,
|
|
207
|
+
"sequenceStepType": "SEND_CONNECTION_REQUEST",
|
|
208
|
+
"multiVariateMails": [
|
|
209
|
+
{
|
|
210
|
+
"body": "Hi {{firstName}}, I would love to connect with you!",
|
|
211
|
+
"subject": "",
|
|
212
|
+
"inMailVariant": false,
|
|
213
|
+
"ordinal": 1
|
|
214
|
+
}
|
|
215
|
+
]
|
|
216
|
+
}
|
|
217
|
+
]
|
|
218
|
+
```
|
|
219
|
+
|
|
220
|
+
**Available Sequence Step Types:**
|
|
221
|
+
|
|
222
|
+
- `VIEW_PROFILE`
|
|
223
|
+
- `SEND_CONNECTION_REQUEST`
|
|
224
|
+
- `SEND_CONNECTION_REQUEST_BROWSER`
|
|
225
|
+
- `SEND_CONNECTION_USING_EMAIL`
|
|
226
|
+
- `SEND_MESSAGE`
|
|
227
|
+
- `SEND_VOICE_MESSAGE`
|
|
228
|
+
- `SEND_VIDEO_MESSAGE`
|
|
229
|
+
- `FOLLOW`
|
|
230
|
+
- `ENDORSE`
|
|
231
|
+
- `LIKE_POST`
|
|
232
|
+
- `LIKE_AND_COMMENT`
|
|
233
|
+
- `SEND_MESSAGE_IN_MAIL`
|
|
234
|
+
- `SEND_EMAIL`
|
|
235
|
+
- `SEND_MESSAGE_USING_GROUP`
|
|
236
|
+
- `SEND_MESSAGE_USING_EVENT`
|
|
237
|
+
|
|
238
|
+
## Troubleshooting
|
|
239
|
+
|
|
240
|
+
### Authentication Errors
|
|
241
|
+
|
|
242
|
+
- Verify your API key is correct
|
|
243
|
+
- Ensure the API key hasn't expired
|
|
244
|
+
- Check that the API key has the necessary permissions
|
|
245
|
+
|
|
246
|
+
### Missing Parameters
|
|
247
|
+
|
|
248
|
+
- Most operations require a `linkedinAccountUuid`
|
|
249
|
+
- Campaign operations require a `campaignUuid`
|
|
250
|
+
- Ensure all required fields are filled in the node configuration
|
|
251
|
+
|
|
252
|
+
## Support
|
|
253
|
+
|
|
254
|
+
- **GitHub Issues**: [Report Issues](https://github.com/coderman400/n8n-nodes-salesrobot/issues)
|
|
255
|
+
- **SalesRobot Support**: Contact SalesRobot support for API-related questions at support@salesrobot.co
|
|
256
|
+
- **n8n Community**: [n8n Community Forum](https://community.n8n.io/)
|
|
257
|
+
|
|
258
|
+
## License
|
|
259
|
+
|
|
260
|
+
MIT
|
|
261
|
+
|
|
262
|
+
## Version
|
|
263
|
+
|
|
264
|
+
Current version: 0.1.0
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { IAuthenticateGeneric, Icon, ICredentialType, INodeProperties } from 'n8n-workflow';
|
|
2
|
+
export declare class SalesrobotApi implements ICredentialType {
|
|
3
|
+
name: string;
|
|
4
|
+
displayName: string;
|
|
5
|
+
testedBy: string;
|
|
6
|
+
icon: Icon;
|
|
7
|
+
documentationUrl: string;
|
|
8
|
+
properties: INodeProperties[];
|
|
9
|
+
authenticate: IAuthenticateGeneric;
|
|
10
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SalesrobotApi = void 0;
|
|
4
|
+
class SalesrobotApi {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.name = 'salesrobotApi';
|
|
7
|
+
this.displayName = 'Salesrobot API';
|
|
8
|
+
this.testedBy = 'salesrobot';
|
|
9
|
+
this.icon = { light: 'file:../icons/salesrobot.svg', dark: 'file:../icons/salesrobot.dark.svg' };
|
|
10
|
+
this.documentationUrl = 'https://solar-robot-476240.postman.co/workspace/salesrobot~11cc6376-ed3b-435e-926a-0a10deb24cd7/collection/10815846-ab263f3a-130f-4de2-a05f-b824b4877a20';
|
|
11
|
+
this.properties = [
|
|
12
|
+
{
|
|
13
|
+
displayName: 'API Key',
|
|
14
|
+
name: 'apiKey',
|
|
15
|
+
type: 'string',
|
|
16
|
+
typeOptions: { password: true },
|
|
17
|
+
default: '',
|
|
18
|
+
required: true,
|
|
19
|
+
description: 'Your Salesrobot API key',
|
|
20
|
+
},
|
|
21
|
+
];
|
|
22
|
+
this.authenticate = {
|
|
23
|
+
type: 'generic',
|
|
24
|
+
properties: {
|
|
25
|
+
headers: {
|
|
26
|
+
Authorization: '={{$credentials.apiKey}}',
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
exports.SalesrobotApi = SalesrobotApi;
|
|
33
|
+
//# sourceMappingURL=SalesrobotApi.credentials.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SalesrobotApi.credentials.js","sourceRoot":"","sources":["../../credentials/SalesrobotApi.credentials.ts"],"names":[],"mappings":";;;AAEA,MAAa,aAAa;IAA1B;QACC,SAAI,GAAG,eAAe,CAAC;QAEvB,gBAAW,GAAG,gBAAgB,CAAC;QAE/B,aAAQ,GAAG,YAAY,CAAC;QAExB,SAAI,GAAS,EAAE,KAAK,EAAE,8BAA8B,EAAE,IAAI,EAAE,mCAAmC,EAAE,CAAC;QAElG,qBAAgB,GACf,0JAA0J,CAAC;QAE5J,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,SAAS;gBACtB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;gBAC/B,OAAO,EAAE,EAAE;gBACX,QAAQ,EAAE,IAAI;gBACd,WAAW,EAAE,yBAAyB;aACtC;SACD,CAAC;QAEF,iBAAY,GAAyB;YACpC,IAAI,EAAE,SAAS;YACf,UAAU,EAAE;gBACX,OAAO,EAAE;oBACR,aAAa,EAAE,0BAA0B;iBACzC;aACD;SACD,CAAC;IACH,CAAC;CAAA;AAhCD,sCAgCC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<svg width="36" height="26" viewBox="0 0 36 26" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M3.46729 17.6427C3.46729 9.58824 9.99669 3.05884 18.0511 3.05884C26.1055 3.05884 32.6349 9.58824 32.6349 17.6427V21.3406C32.6349 23.6353 30.7747 25.4955 28.48 25.4955H7.62223C5.32752 25.4955 3.46729 23.6353 3.46729 21.3406V17.6427Z" fill="#59DAF7"/>
|
|
3
|
+
<rect x="32.0251" y="14.2776" width="3.67146" height="8.7707" rx="1.83573" fill="#59DAF7"/>
|
|
4
|
+
<rect y="14.2776" width="3.67146" height="8.7707" rx="1.83573" fill="#59DAF7"/>
|
|
5
|
+
<rect x="33.2466" y="3.67084" width="1.42779" height="11.2183" fill="#59DAF7"/>
|
|
6
|
+
<rect x="1.22412" y="3.67084" width="1.42779" height="11.2183" fill="#59DAF7"/>
|
|
7
|
+
<circle cx="33.9629" cy="1.93771" r="1.93771" fill="#59DAF7"/>
|
|
8
|
+
<circle cx="1.93771" cy="1.93784" r="1.93771" fill="#59DAF7"/>
|
|
9
|
+
<rect x="9.33472" y="12.9756" width="17.1335" height="7.34291" rx="3.67146" fill="#162223" stroke="#162223" stroke-width="1.59352"/>
|
|
10
|
+
<circle cx="14.0423" cy="16.5669" r="1.83573" fill="#59DAF7"/>
|
|
11
|
+
<circle cx="21.8238" cy="16.5204" r="1.83573" fill="#59DAF7"/>
|
|
12
|
+
</svg>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<svg width="36" height="26" viewBox="0 0 36 26" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M3.46729 17.6427C3.46729 9.58824 9.99669 3.05884 18.0511 3.05884C26.1055 3.05884 32.6349 9.58824 32.6349 17.6427V21.3406C32.6349 23.6353 30.7747 25.4955 28.48 25.4955H7.62223C5.32752 25.4955 3.46729 23.6353 3.46729 21.3406V17.6427Z" fill="#59DAF7"/>
|
|
3
|
+
<rect x="32.0251" y="14.2776" width="3.67146" height="8.7707" rx="1.83573" fill="#59DAF7"/>
|
|
4
|
+
<rect y="14.2776" width="3.67146" height="8.7707" rx="1.83573" fill="#59DAF7"/>
|
|
5
|
+
<rect x="33.2466" y="3.67084" width="1.42779" height="11.2183" fill="#59DAF7"/>
|
|
6
|
+
<rect x="1.22412" y="3.67084" width="1.42779" height="11.2183" fill="#59DAF7"/>
|
|
7
|
+
<circle cx="33.9629" cy="1.93771" r="1.93771" fill="#59DAF7"/>
|
|
8
|
+
<circle cx="1.93771" cy="1.93784" r="1.93771" fill="#59DAF7"/>
|
|
9
|
+
<rect x="9.33472" y="12.9756" width="17.1335" height="7.34291" rx="3.67146" fill="white"/>
|
|
10
|
+
<circle cx="14.0423" cy="16.5669" r="1.83573" fill="#59DAF7"/>
|
|
11
|
+
<circle cx="21.8238" cy="16.5204" r="1.83573" fill="#59DAF7"/>
|
|
12
|
+
</svg>
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Salesrobot = void 0;
|
|
4
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
5
|
+
const campaign_1 = require("./resources/campaign");
|
|
6
|
+
const linkedin_1 = require("./resources/linkedin");
|
|
7
|
+
const settings_1 = require("./resources/settings");
|
|
8
|
+
const aiPersonalization_1 = require("./resources/aiPersonalization");
|
|
9
|
+
class Salesrobot {
|
|
10
|
+
constructor() {
|
|
11
|
+
this.description = {
|
|
12
|
+
displayName: 'Salesrobot',
|
|
13
|
+
name: 'salesrobot',
|
|
14
|
+
icon: {
|
|
15
|
+
light: 'file:../../icons/salesrobot.svg',
|
|
16
|
+
dark: 'file:../../icons/salesrobot.dark.svg',
|
|
17
|
+
},
|
|
18
|
+
group: ['transform'],
|
|
19
|
+
version: 1,
|
|
20
|
+
subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
|
|
21
|
+
description: 'Interact with Salesrobot API for LinkedIn automation and outreach',
|
|
22
|
+
defaults: {
|
|
23
|
+
name: 'Salesrobot',
|
|
24
|
+
},
|
|
25
|
+
usableAsTool: true,
|
|
26
|
+
inputs: [n8n_workflow_1.NodeConnectionTypes.Main],
|
|
27
|
+
outputs: [n8n_workflow_1.NodeConnectionTypes.Main],
|
|
28
|
+
credentials: [
|
|
29
|
+
{
|
|
30
|
+
name: 'salesrobotApi',
|
|
31
|
+
required: true,
|
|
32
|
+
testedBy: 'salesrobot',
|
|
33
|
+
},
|
|
34
|
+
],
|
|
35
|
+
requestDefaults: {
|
|
36
|
+
baseURL: 'https://api.boomtechinc.com/api',
|
|
37
|
+
headers: {
|
|
38
|
+
Accept: 'application/json',
|
|
39
|
+
'Content-Type': 'application/json',
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
properties: [
|
|
43
|
+
{
|
|
44
|
+
displayName: 'Resource',
|
|
45
|
+
name: 'resource',
|
|
46
|
+
type: 'options',
|
|
47
|
+
noDataExpression: true,
|
|
48
|
+
options: [
|
|
49
|
+
{
|
|
50
|
+
name: 'AI Personalization',
|
|
51
|
+
value: 'aiPersonalization',
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
name: 'Campaign',
|
|
55
|
+
value: 'campaign',
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
name: 'LinkedIn',
|
|
59
|
+
value: 'linkedin',
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
name: 'Setting',
|
|
63
|
+
value: 'settings',
|
|
64
|
+
},
|
|
65
|
+
],
|
|
66
|
+
default: 'campaign',
|
|
67
|
+
},
|
|
68
|
+
...campaign_1.campaignDescription,
|
|
69
|
+
...aiPersonalization_1.aiPersonalizationDescription,
|
|
70
|
+
...linkedin_1.linkedinDescription,
|
|
71
|
+
...settings_1.settingsDescription,
|
|
72
|
+
],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
exports.Salesrobot = Salesrobot;
|
|
77
|
+
//# sourceMappingURL=Salesrobot.node.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Salesrobot.node.js","sourceRoot":"","sources":["../../../nodes/Salesrobot/Salesrobot.node.ts"],"names":[],"mappings":";;;AAAA,+CAA8F;AAC9F,mDAA2D;AAC3D,mDAA2D;AAC3D,mDAA2D;AAC3D,qEAA6E;AAE7E,MAAa,UAAU;IAAvB;QACC,gBAAW,GAAyB;YACnC,WAAW,EAAE,YAAY;YACzB,IAAI,EAAE,YAAY;YAClB,IAAI,EAAE;gBACL,KAAK,EAAE,iCAAiC;gBACxC,IAAI,EAAE,sCAAsC;aAC5C;YACD,KAAK,EAAE,CAAC,WAAW,CAAC;YACpB,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE,8DAA8D;YACxE,WAAW,EAAE,mEAAmE;YAChF,QAAQ,EAAE;gBACT,IAAI,EAAE,YAAY;aAClB;YACD,YAAY,EAAE,IAAI;YAClB,MAAM,EAAE,CAAC,kCAAmB,CAAC,IAAI,CAAC;YAClC,OAAO,EAAE,CAAC,kCAAmB,CAAC,IAAI,CAAC;YACnC,WAAW,EAAE;gBACZ;oBACC,IAAI,EAAE,eAAe;oBACrB,QAAQ,EAAE,IAAI;oBACd,QAAQ,EAAE,YAAY;iBACtB;aACD;YACD,eAAe,EAAE;gBAChB,OAAO,EAAE,iCAAiC;gBAC1C,OAAO,EAAE;oBACR,MAAM,EAAE,kBAAkB;oBAC1B,cAAc,EAAE,kBAAkB;iBAClC;aACD;YACD,UAAU,EAAE;gBACX;oBACC,WAAW,EAAE,UAAU;oBACvB,IAAI,EAAE,UAAU;oBAChB,IAAI,EAAE,SAAS;oBACf,gBAAgB,EAAE,IAAI;oBACtB,OAAO,EAAE;wBACR;4BACC,IAAI,EAAE,oBAAoB;4BAC1B,KAAK,EAAE,mBAAmB;yBAC1B;wBACD;4BACC,IAAI,EAAE,UAAU;4BAChB,KAAK,EAAE,UAAU;yBACjB;wBACD;4BACC,IAAI,EAAE,UAAU;4BAChB,KAAK,EAAE,UAAU;yBACjB;wBACD;4BACC,IAAI,EAAE,SAAS;4BACf,KAAK,EAAE,UAAU;yBACjB;qBACD;oBACD,OAAO,EAAE,UAAU;iBACnB;gBACD,GAAG,8BAAmB;gBACtB,GAAG,gDAA4B;gBAC/B,GAAG,8BAAmB;gBACtB,GAAG,8BAAmB;aACtB;SACD,CAAC;IACH,CAAC;CAAA;AAhED,gCAgEC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"node": "n8n-nodes-salesrobot",
|
|
3
|
+
"nodeVersion": "1.0",
|
|
4
|
+
"codexVersion": "1.0",
|
|
5
|
+
"categories": ["Marketing", "Sales & CRM", "Developer Tools"],
|
|
6
|
+
"resources": {
|
|
7
|
+
"credentialDocumentation": [
|
|
8
|
+
{
|
|
9
|
+
"url": "https://github.com/achurox1121/n8n-nodes-salesrobot?tab=readme-ov-file#credentials"
|
|
10
|
+
}
|
|
11
|
+
],
|
|
12
|
+
"primaryDocumentation": [
|
|
13
|
+
{
|
|
14
|
+
"url": "https://github.com/achurox1121/n8n-nodes-salesrobot?tab=readme-ov-file"
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"apiDocumentation": [
|
|
18
|
+
{
|
|
19
|
+
"url": "https://solar-robot-476240.postman.co/workspace/salesrobot~11cc6376-ed3b-435e-926a-0a10deb24cd7/collection/10815846-ab263f3a-130f-4de2-a05f-b824b4877a20"
|
|
20
|
+
}
|
|
21
|
+
]
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createAiVariableDescription = void 0;
|
|
4
|
+
const showOnlyForCreateAiVariable = {
|
|
5
|
+
operation: ['createAiVariable'],
|
|
6
|
+
resource: ['aiPersonalization'],
|
|
7
|
+
};
|
|
8
|
+
exports.createAiVariableDescription = [
|
|
9
|
+
{
|
|
10
|
+
displayName: 'LinkedIn Account UUID',
|
|
11
|
+
name: 'linkedinAccountUuid',
|
|
12
|
+
type: 'string',
|
|
13
|
+
required: true,
|
|
14
|
+
default: '',
|
|
15
|
+
displayOptions: {
|
|
16
|
+
show: showOnlyForCreateAiVariable,
|
|
17
|
+
},
|
|
18
|
+
description: 'The UUID of the LinkedIn account',
|
|
19
|
+
routing: {
|
|
20
|
+
send: {
|
|
21
|
+
type: 'query',
|
|
22
|
+
property: 'linkedinAccountUuid',
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
displayName: 'Variable Name',
|
|
28
|
+
name: 'name',
|
|
29
|
+
type: 'string',
|
|
30
|
+
required: true,
|
|
31
|
+
default: '',
|
|
32
|
+
displayOptions: {
|
|
33
|
+
show: showOnlyForCreateAiVariable,
|
|
34
|
+
},
|
|
35
|
+
description: 'Name of the AI variable',
|
|
36
|
+
routing: {
|
|
37
|
+
send: {
|
|
38
|
+
type: 'body',
|
|
39
|
+
property: 'name',
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
displayName: 'AI Prompt',
|
|
45
|
+
name: 'text',
|
|
46
|
+
type: 'string',
|
|
47
|
+
required: true,
|
|
48
|
+
default: '',
|
|
49
|
+
typeOptions: {
|
|
50
|
+
rows: 6,
|
|
51
|
+
},
|
|
52
|
+
displayOptions: {
|
|
53
|
+
show: showOnlyForCreateAiVariable,
|
|
54
|
+
},
|
|
55
|
+
description: 'The prompt for your AI variable. You can use tags like {{firstName}}, {{industry}}, {{company}}, etc.',
|
|
56
|
+
placeholder: 'Write a personalized opening line for {{firstName}} who works at {{company}} in the {{industry}} industry',
|
|
57
|
+
routing: {
|
|
58
|
+
send: {
|
|
59
|
+
type: 'body',
|
|
60
|
+
property: 'text',
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
displayName: 'Update AI Variable ID',
|
|
66
|
+
name: 'updateAiVariableId',
|
|
67
|
+
type: 'string',
|
|
68
|
+
default: '',
|
|
69
|
+
displayOptions: {
|
|
70
|
+
show: showOnlyForCreateAiVariable,
|
|
71
|
+
},
|
|
72
|
+
description: 'ID of existing AI variable to update (leave empty to create new)',
|
|
73
|
+
routing: {
|
|
74
|
+
send: {
|
|
75
|
+
type: 'body',
|
|
76
|
+
property: 'updateAiVariableId',
|
|
77
|
+
value: '={{$value || null}}',
|
|
78
|
+
},
|
|
79
|
+
},
|
|
80
|
+
},
|
|
81
|
+
];
|
|
82
|
+
//# sourceMappingURL=createAiVariable.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createAiVariable.js","sourceRoot":"","sources":["../../../../../nodes/Salesrobot/resources/aiPersonalization/createAiVariable.ts"],"names":[],"mappings":";;;AAEA,MAAM,2BAA2B,GAAG;IACnC,SAAS,EAAE,CAAC,kBAAkB,CAAC;IAC/B,QAAQ,EAAE,CAAC,mBAAmB,CAAC;CAC/B,CAAC;AAEW,QAAA,2BAA2B,GAAsB;IAC7D;QACC,WAAW,EAAE,uBAAuB;QACpC,IAAI,EAAE,qBAAqB;QAC3B,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACf,IAAI,EAAE,2BAA2B;SACjC;QACD,WAAW,EAAE,kCAAkC;QAC/C,OAAO,EAAE;YACR,IAAI,EAAE;gBACL,IAAI,EAAE,OAAO;gBACb,QAAQ,EAAE,qBAAqB;aAC/B;SACD;KACD;IACD;QACC,WAAW,EAAE,eAAe;QAC5B,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACf,IAAI,EAAE,2BAA2B;SACjC;QACD,WAAW,EAAE,yBAAyB;QACtC,OAAO,EAAE;YACR,IAAI,EAAE;gBACL,IAAI,EAAE,MAAM;gBACZ,QAAQ,EAAE,MAAM;aAChB;SACD;KACD;IACD;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE;YACZ,IAAI,EAAE,CAAC;SACP;QACD,cAAc,EAAE;YACf,IAAI,EAAE,2BAA2B;SACjC;QACD,WAAW,EACV,uGAAuG;QACxG,WAAW,EACV,2GAA2G;QAC5G,OAAO,EAAE;YACR,IAAI,EAAE;gBACL,IAAI,EAAE,MAAM;gBACZ,QAAQ,EAAE,MAAM;aAChB;SACD;KACD;IACD;QACC,WAAW,EAAE,uBAAuB;QACpC,IAAI,EAAE,oBAAoB;QAC1B,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACf,IAAI,EAAE,2BAA2B;SACjC;QACD,WAAW,EAAE,kEAAkE;QAC/E,OAAO,EAAE;YACR,IAAI,EAAE;gBACL,IAAI,EAAE,MAAM;gBACZ,QAAQ,EAAE,oBAAoB;gBAC9B,KAAK,EAAE,qBAAqB;aAC5B;SACD;KACD;CACD,CAAC"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createSmartCommentVariableDescription = void 0;
|
|
4
|
+
const showOnlyForCreateSmartCommentVariable = {
|
|
5
|
+
operation: ['createSmartCommentVariable'],
|
|
6
|
+
resource: ['aiPersonalization'],
|
|
7
|
+
};
|
|
8
|
+
exports.createSmartCommentVariableDescription = [
|
|
9
|
+
{
|
|
10
|
+
displayName: 'LinkedIn Account UUID',
|
|
11
|
+
name: 'linkedinAccountUuid',
|
|
12
|
+
type: 'string',
|
|
13
|
+
required: true,
|
|
14
|
+
default: '',
|
|
15
|
+
displayOptions: {
|
|
16
|
+
show: showOnlyForCreateSmartCommentVariable,
|
|
17
|
+
},
|
|
18
|
+
description: 'The UUID of the LinkedIn account',
|
|
19
|
+
routing: {
|
|
20
|
+
send: {
|
|
21
|
+
type: 'query',
|
|
22
|
+
property: 'linkedinAccountUuid',
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
displayName: 'Variable Name',
|
|
28
|
+
name: 'name',
|
|
29
|
+
type: 'string',
|
|
30
|
+
required: true,
|
|
31
|
+
default: '',
|
|
32
|
+
displayOptions: {
|
|
33
|
+
show: showOnlyForCreateSmartCommentVariable,
|
|
34
|
+
},
|
|
35
|
+
description: 'Name of the smart comment variable',
|
|
36
|
+
routing: {
|
|
37
|
+
send: {
|
|
38
|
+
type: 'body',
|
|
39
|
+
property: 'name',
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
displayName: 'Smart Comment Prompt',
|
|
45
|
+
name: 'text',
|
|
46
|
+
type: 'string',
|
|
47
|
+
required: true,
|
|
48
|
+
default: '',
|
|
49
|
+
typeOptions: {
|
|
50
|
+
rows: 6,
|
|
51
|
+
},
|
|
52
|
+
displayOptions: {
|
|
53
|
+
show: showOnlyForCreateSmartCommentVariable,
|
|
54
|
+
},
|
|
55
|
+
description: 'The prompt for your smart comment variable. You can use tags like {{firstName}}, {{about}}, {{industry}}, {{currentPost}}, {{otherComments}}, etc.',
|
|
56
|
+
placeholder: "Write an engaging comment for {{firstName}}'s post about {{currentPost}} considering their {{industry}} background",
|
|
57
|
+
routing: {
|
|
58
|
+
send: {
|
|
59
|
+
type: 'body',
|
|
60
|
+
property: 'text',
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
displayName: 'Update Smart Comment Variable ID',
|
|
66
|
+
name: 'updateSmartCommentVariableId',
|
|
67
|
+
type: 'string',
|
|
68
|
+
default: '',
|
|
69
|
+
displayOptions: {
|
|
70
|
+
show: showOnlyForCreateSmartCommentVariable,
|
|
71
|
+
},
|
|
72
|
+
description: 'ID of existing smart comment variable to update (leave empty to create new)',
|
|
73
|
+
routing: {
|
|
74
|
+
send: {
|
|
75
|
+
type: 'body',
|
|
76
|
+
property: 'updateSmartCommentVariableId',
|
|
77
|
+
value: '={{$value || null}}',
|
|
78
|
+
},
|
|
79
|
+
},
|
|
80
|
+
},
|
|
81
|
+
];
|
|
82
|
+
//# sourceMappingURL=createSmartCommentVariable.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createSmartCommentVariable.js","sourceRoot":"","sources":["../../../../../nodes/Salesrobot/resources/aiPersonalization/createSmartCommentVariable.ts"],"names":[],"mappings":";;;AAEA,MAAM,qCAAqC,GAAG;IAC7C,SAAS,EAAE,CAAC,4BAA4B,CAAC;IACzC,QAAQ,EAAE,CAAC,mBAAmB,CAAC;CAC/B,CAAC;AAEW,QAAA,qCAAqC,GAAsB;IACvE;QACC,WAAW,EAAE,uBAAuB;QACpC,IAAI,EAAE,qBAAqB;QAC3B,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACf,IAAI,EAAE,qCAAqC;SAC3C;QACD,WAAW,EAAE,kCAAkC;QAC/C,OAAO,EAAE;YACR,IAAI,EAAE;gBACL,IAAI,EAAE,OAAO;gBACb,QAAQ,EAAE,qBAAqB;aAC/B;SACD;KACD;IACD;QACC,WAAW,EAAE,eAAe;QAC5B,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACf,IAAI,EAAE,qCAAqC;SAC3C;QACD,WAAW,EAAE,oCAAoC;QACjD,OAAO,EAAE;YACR,IAAI,EAAE;gBACL,IAAI,EAAE,MAAM;gBACZ,QAAQ,EAAE,MAAM;aAChB;SACD;KACD;IACD;QACC,WAAW,EAAE,sBAAsB;QACnC,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE;YACZ,IAAI,EAAE,CAAC;SACP;QACD,cAAc,EAAE;YACf,IAAI,EAAE,qCAAqC;SAC3C;QACD,WAAW,EACV,oJAAoJ;QACrJ,WAAW,EACV,oHAAoH;QACrH,OAAO,EAAE;YACR,IAAI,EAAE;gBACL,IAAI,EAAE,MAAM;gBACZ,QAAQ,EAAE,MAAM;aAChB;SACD;KACD;IACD;QACC,WAAW,EAAE,kCAAkC;QAC/C,IAAI,EAAE,8BAA8B;QACpC,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACf,IAAI,EAAE,qCAAqC;SAC3C;QACD,WAAW,EAAE,6EAA6E;QAC1F,OAAO,EAAE;YACR,IAAI,EAAE;gBACL,IAAI,EAAE,MAAM;gBACZ,QAAQ,EAAE,8BAA8B;gBACxC,KAAK,EAAE,qBAAqB;aAC5B;SACD;KACD;CACD,CAAC"}
|