-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathKnowledgeSetting.json
More file actions
496 lines (496 loc) · 17 KB
/
KnowledgeSetting.json
File metadata and controls
496 lines (496 loc) · 17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
{
"name": "KnowledgeSetting",
"nodes": [
{
"parameters": {
"pollTimes": {
"item": [
{
"hour": 23
}
]
},
"authentication": "airtableTokenApi",
"baseId": {
"__rl": true,
"value": "https://airtable.com/appXBHmjTdHh5YZ7U/tblLuyPYLxuT07nAF/viwJJK4lKyw4G8995",
"mode": "url"
},
"tableId": {
"__rl": true,
"value": "Websites",
"mode": "id"
},
"triggerField": "Created",
"additionalFields": {}
},
"type": "n8n-nodes-base.airtableTrigger",
"typeVersion": 1,
"position": [
-400,
-16
],
"id": "6b0f7648-6694-45d4-96a6-4c806790d698",
"name": "Airtable Trigger",
"credentials": {
"airtableTokenApi": {
"id": "UxM8ezI0fcNDfGnr",
"name": "Airtable account"
}
}
},
{
"parameters": {
"url": "={{ $json.fields.Website }}"
},
"type": "n8n-nodes-scrapeninja.scrapeNinja",
"typeVersion": 1,
"position": [
-176,
-16
],
"id": "ffb453a9-277c-484f-8366-ccbdb542d4fb",
"name": "ScrapeNinja",
"credentials": {
"scrapeNinjaApi": {
"id": "kCWOdOfTlZ7L6mvW",
"name": "ScrapeNinja account"
}
}
},
{
"parameters": {
"model": "sonar",
"messages": {
"message": [
{
"content": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('message0_Text', ``, 'string') }}"
}
]
},
"simplify": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Simplify_Output', ``, 'boolean') }}",
"options": {},
"requestOptions": {}
},
"type": "n8n-nodes-base.perplexityTool",
"typeVersion": 1,
"position": [
1408,
560
],
"id": "bd5b31b0-ae02-4864-9519-4c7e7709c55e",
"name": "Message a model in Perplexity",
"credentials": {
"perplexityApi": {
"id": "1bsNUyGlQGIg1S1n",
"name": "Perplexity account"
}
}
},
{
"parameters": {
"promptType": "define",
"text": "=Define the entity using only the information provided. {{ $json.body }}",
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.agent",
"typeVersion": 2,
"position": [
48,
-16
],
"id": "4ae99f48-af80-4ea8-a062-691f3ce3dbbb",
"name": "WebsiteInfo"
},
{
"parameters": {
"promptType": "define",
"text": "=Describe the persona of the entity in question. A persona refers to the character or role that someone (or something) adopts, especially in public or social contexts. This includes the public image, personality traits, behaviors, and values the entity projects to others.\n\nPrompt Example:\n\"Please provide a detailed description of the entity's persona. Consider the following aspects in your response:\n\nWhat character or role does the entity typically adopt in public or social settings?\n\nHow would you describe the entity's public image or reputation?\n\nWhat personality traits, behaviors, and values does the entity consistently project?\n\nAre there any specific ways the entity differentiates itself from others through its persona?\n\nHow does this persona influence interactions with others or the broader community?\"\n\nFeel free to elaborate on any unique characteristics or nuances that define the entity's persona. {{ $json.output }}",
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.agent",
"typeVersion": 2,
"position": [
992,
0
],
"id": "bcc48199-8c7e-4daf-b95d-2da9eb5e1005",
"name": "Persona"
},
{
"parameters": {
"promptType": "define",
"text": "=Given the following persona description, identify and articulate the core messages that should consistently represent this entity in communications, campaigns, and stakeholder engagements.\n\nInstructions:\n\nReview the persona overview carefully.\n\nList 3–5 core messages that capture the essence of the entity’s purpose, vision, and unique value.\n\nFor each core message, provide a brief explanation (1–2 sentences) of why it aligns with the persona.\n\nEnsure the language and tone reflect the entity’s style and values.\n\n {{ $json.output }}",
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.agent",
"typeVersion": 2,
"position": [
1440,
0
],
"id": "e6845fd9-958c-4295-b9b4-16670ed4888f",
"name": "Core Messages"
},
{
"parameters": {
"promptType": "define",
"text": "=Based on the core messages provided, please identify and list the main target audiences. For each target audience, include:\n\nAudience Name: A concise label for the group (e.g., \"Urban Millennials,\" \"Policy Makers,\" \"Small Business Owners\").\n\nAudience Description: Briefly describe this group, including key characteristics such as demographics, interests, needs, or challenges relevant to the core messages.\n\nRelevant Core Messages: Specify which core messages are most pertinent to this audience and explain why. \n\nRelevant social media platforms: The social media platform this target audience is most likely to be on. \n\n{{ $json.output }}",
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.agent",
"typeVersion": 2,
"position": [
1840,
0
],
"id": "fa9fd964-ba59-4da5-8059-1e707cf12068",
"name": "Target Audiences"
},
{
"parameters": {
"promptType": "define",
"text": "=For each audience provided in description of target audiences, identify and describe the most effective communication style(s) to reach them. Consider factors such as language, tone, medium, frequency, and cultural context. Explain why each style is suitable for the audience and provide practical examples of how to apply it in real-world communications. \n\n{{ $json.output }}",
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.agent",
"typeVersion": 2,
"position": [
2224,
0
],
"id": "d0090409-c418-4b03-9d42-ace26e56b3f2",
"name": "CommunicationStyle"
},
{
"parameters": {
"promptType": "define",
"text": "=Based on the following persona, please provide concise background history snippets that highlight key events, achievements, or formative experiences relevant to this entity. Focus on details that shaped their current identity, values, or mission. Make sure to use the perplexity search tool to verify the accuracy of the historical events and only provide ones that are true. \n\nGuidelines:\nEmphasize pivotal moments, turning points, or influential relationships.\n\nUse a tone and style that aligns with the persona's character or organizational voice. \n\n{{ $json.output }}",
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.agent",
"typeVersion": 2,
"position": [
1472,
240
],
"id": "4e223618-6f6f-4770-9210-549738f3dd17",
"name": "BackgroundHistory"
},
{
"parameters": {
"promptType": "define",
"text": "=Consider the persona of the entity. What are five descriptive adjectives that best capture the essence, character, or qualities of this entity? Please select adjectives that reflect its personality, values, and distinctive traits.\n\nExample Usage\nFor a Brand:\n\"Consider the persona of Patagonia, an environmentally conscious outdoor clothing brand. What are five descriptive adjectives that best capture its essence, character, or qualities? Please select adjectives that reflect its personality, values, and distinctive traits.\"\n\nFor a Person:\n\"Consider the persona of a Peace Corps volunteer dedicated to sustainable development. What are five descriptive adjectives that best capture their essence, character, or qualities? Please select adjectives that reflect their personality, values, and distinctive traits.\"\n\nFor a Web3 Project:\n\"Consider the persona of dMeter, a decentralized MRV platform focused on global sustainability monitoring. What are five descriptive adjectives that best capture its essence, character, or qualities? Please select adjectives that reflect its personality, values, and distinctive traits.\"\n\nTips for Effective Results\nClearly describe the entity’s persona or context.\n\nEncourage specificity and relevance to the entity’s core identity.\n\nAsk for a brief rationale for each adjective, if deeper insight is needed.\n\nThis prompt can be adapted for brands, individuals, organizations, or digital projects to elicit adjectives that authentically represent their persona. {{ $json.output }}",
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.agent",
"typeVersion": 2,
"position": [
1440,
-176
],
"id": "f60ae58e-429c-402c-8d66-7f65672ddc7e",
"name": "AdjectivesEntity"
},
{
"parameters": {
"promptType": "define",
"text": "=Please provide example messages for each audience in the list below. For each audience, use the communication style that is most effective for reaching and engaging them.\n\nList the target audience.\n\nState the recommended communication style for that audience (e.g., formal, conversational, technical, storytelling, visual, data-driven, etc.).\n\nWrite a brief example message (2-3 sentences) that demonstrates how to communicate effectively with that audience using the chosen style. \n\n{{ $json.output }}",
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.agent",
"typeVersion": 2,
"position": [
2656,
0
],
"id": "bf1253cd-e1d7-4897-9695-df6b0548a78f",
"name": "ExampleMessages"
},
{
"parameters": {
"model": "openrouter/cypher-alpha:free",
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
"typeVersion": 1,
"position": [
304,
208
],
"id": "30551c87-f3f1-4402-986f-d14b51918c91",
"name": "Cypher",
"credentials": {
"openRouterApi": {
"id": "U0a4bg7KOjNgcIPy",
"name": "OpenRouter account"
}
}
},
{
"parameters": {
"model": "deepseek/deepseek-chat-v3-0324:free",
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
"typeVersion": 1,
"position": [
176,
208
],
"id": "f56ca509-d3a3-4c9b-acd3-0ff5d4c33e1e",
"name": "Deepseek",
"credentials": {
"openRouterApi": {
"id": "U0a4bg7KOjNgcIPy",
"name": "OpenRouter account"
}
}
},
{
"parameters": {
"promptType": "define",
"text": "=Search for web pages, news articles, blogs, forums, and other online sources mentioning this entity. Focus on how the entity presents itself, its public image, and the context in which it appears. Summarize key perceptions, notable mentions, and the types of narratives or discussions associated with the entity across the indexed web.\n\nKey Elements to Include\nOfficial Presence: Identify the entity’s official website(s), published statements, and self-descriptions.\n\nMedia Coverage: Summarize news articles, press releases, and blog posts that discuss or analyze the entity.\n\nCommunity Discussions: Highlight forum threads, Q&A sites, or comment sections where the entity is a topic of conversation.\n\nPublic Perception: Synthesize opinions, sentiment, and recurring themes found in reviews, editorials, and user-generated content.\n\nNotable Mentions: Point out high-profile stories, viral articles, or widely referenced web content involving the entity.\n\nContext: Specify the types of sources (e.g., news, blogs, forums, official pages) and the nature of the conversations (e.g., informational, critical, supportive, speculative). {{ $json.output }}",
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.agent",
"typeVersion": 2,
"position": [
528,
0
],
"id": "44d8e478-b21b-45ea-954c-6e10bac97f92",
"name": "EntitySummarization"
}
],
"pinData": {},
"connections": {
"Airtable Trigger": {
"main": [
[
{
"node": "ScrapeNinja",
"type": "main",
"index": 0
}
]
]
},
"ScrapeNinja": {
"main": [
[
{
"node": "WebsiteInfo",
"type": "main",
"index": 0
}
]
]
},
"Message a model in Perplexity": {
"ai_tool": [
[
{
"node": "EntitySummarization",
"type": "ai_tool",
"index": 0
},
{
"node": "BackgroundHistory",
"type": "ai_tool",
"index": 0
}
]
]
},
"WebsiteInfo": {
"main": [
[
{
"node": "EntitySummarization",
"type": "main",
"index": 0
}
]
]
},
"Persona": {
"main": [
[
{
"node": "Core Messages",
"type": "main",
"index": 0
},
{
"node": "BackgroundHistory",
"type": "main",
"index": 0
},
{
"node": "AdjectivesEntity",
"type": "main",
"index": 0
}
]
]
},
"Core Messages": {
"main": [
[
{
"node": "Target Audiences",
"type": "main",
"index": 0
}
]
]
},
"Target Audiences": {
"main": [
[
{
"node": "CommunicationStyle",
"type": "main",
"index": 0
}
]
]
},
"CommunicationStyle": {
"main": [
[
{
"node": "ExampleMessages",
"type": "main",
"index": 0
}
]
]
},
"Deepseek": {
"ai_languageModel": [
[
{
"node": "WebsiteInfo",
"type": "ai_languageModel",
"index": 0
},
{
"node": "EntitySummarization",
"type": "ai_languageModel",
"index": 0
},
{
"node": "Persona",
"type": "ai_languageModel",
"index": 0
},
{
"node": "Persona",
"type": "ai_languageModel",
"index": 1
},
{
"node": "AdjectivesEntity",
"type": "ai_languageModel",
"index": 0
},
{
"node": "Core Messages",
"type": "ai_languageModel",
"index": 0
},
{
"node": "BackgroundHistory",
"type": "ai_languageModel",
"index": 0
},
{
"node": "Target Audiences",
"type": "ai_languageModel",
"index": 0
},
{
"node": "CommunicationStyle",
"type": "ai_languageModel",
"index": 0
},
{
"node": "ExampleMessages",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Cypher": {
"ai_languageModel": [
[
{
"node": "WebsiteInfo",
"type": "ai_languageModel",
"index": 1
},
{
"node": "EntitySummarization",
"type": "ai_languageModel",
"index": 1
},
{
"node": "AdjectivesEntity",
"type": "ai_languageModel",
"index": 1
},
{
"node": "Core Messages",
"type": "ai_languageModel",
"index": 1
},
{
"node": "BackgroundHistory",
"type": "ai_languageModel",
"index": 1
},
{
"node": "Target Audiences",
"type": "ai_languageModel",
"index": 1
},
{
"node": "CommunicationStyle",
"type": "ai_languageModel",
"index": 1
},
{
"node": "ExampleMessages",
"type": "ai_languageModel",
"index": 1
}
]
]
},
"EntitySummarization": {
"main": [
[
{
"node": "Persona",
"type": "main",
"index": 0
}
]
]
}
},
"active": false,
"settings": {
"executionOrder": "v1"
},
"versionId": "e28d504f-bd1b-4db2-8f75-69a7038c60f1",
"meta": {
"templateCredsSetupCompleted": true,
"instanceId": "1b2acf6335783249b428ec232a8da689f33ea1e5291dd7cc36a412d57bc021a5"
},
"id": "3VY1rABrJGnBKNiV",
"tags": []
}