-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTrend_SEO_Post.json
More file actions
1029 lines (1029 loc) · 35.9 KB
/
Copy pathTrend_SEO_Post.json
File metadata and controls
1029 lines (1029 loc) · 35.9 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
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"name": "Trend SEO Post",
"nodes": [
{
"parameters": {
"rule": {
"interval": [
{
"field": "cronExpression",
"expression": "0 8 * * 4"
}
]
}
},
"type": "n8n-nodes-base.scheduleTrigger",
"typeVersion": 1.2,
"position": [
100,
240
],
"id": "fe8a8311-f4e5-47e6-9c1e-2ff459a14387",
"name": "Schedule Trigger"
},
{
"parameters": {
"method": "POST",
"url": "https://api.openai.com/v1/chat/completions",
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth",
"sendBody": true,
"specifyBody": "json",
"jsonBody": "={\n \"model\": \"gpt-3.5-turbo\",\n \"messages\": [\n {\n \"role\": \"system\",\n \"content\": \"Act as a professional news researcher who is capable of finding detailed summaries about a news topic from highly reputable sources.\"\n },\n {\n \"role\": \"user\",\n \"content\": \"Research the following topic and return everything you can find: 'Recent developments in renewable energy'\"\n }\n ]\n}",
"options": {}
},
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
1560,
-60
],
"id": "92f8da82-205c-4937-8340-5d2a60608952",
"name": "Research",
"credentials": {
"httpHeaderAuth": {
"id": "MlnuEKQGiNdrB5g6",
"name": "chatgpt"
}
}
},
{
"parameters": {
"assignments": {
"assignments": [
{
"id": "7cefb5f9-b7bf-4f6a-911d-bd38920f0dfb",
"name": "",
"value": "",
"type": "string"
}
]
},
"options": {}
},
"type": "n8n-nodes-base.set",
"typeVersion": 3.4,
"position": [
1740,
-20
],
"id": "97d54983-3c1c-4559-92d8-360e2626d7e9",
"name": "Fix Links",
"disabled": true
},
{
"parameters": {
"aggregate": "aggregateAllItemData",
"destinationFieldName": "previous-posts",
"options": {}
},
"type": "n8n-nodes-base.aggregate",
"typeVersion": 1,
"position": [
2620,
80
],
"id": "1dea4123-6972-41c1-9ed5-8cd2366ffde0",
"name": "Aggregate"
},
{
"parameters": {
"documentId": {
"__rl": true,
"value": "1t-J2x22lsG6TpktQLBkwaS-ewuJI2WQvB-g4vQspbYU",
"mode": "list",
"cachedResultName": "Completed Keywords",
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1t-J2x22lsG6TpktQLBkwaS-ewuJI2WQvB-g4vQspbYU/edit?usp=drivesdk"
},
"sheetName": {
"__rl": true,
"value": "gid=0",
"mode": "list",
"cachedResultName": "Sheet1",
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1t-J2x22lsG6TpktQLBkwaS-ewuJI2WQvB-g4vQspbYU/edit#gid=0"
},
"options": {}
},
"type": "n8n-nodes-base.googleSheets",
"typeVersion": 4.5,
"position": [
2420,
-20
],
"id": "6b42662c-4796-4849-834c-3f99b8419665",
"name": "Previous Posts",
"credentials": {
"googleSheetsOAuth2Api": {
"id": "MkAP85dkZLC6M2hS",
"name": "Google Sheets account"
}
}
},
{
"parameters": {
"modelId": {
"__rl": true,
"value": "o1-mini-2024-09-12",
"mode": "list",
"cachedResultName": "O1-MINI-2024-09-12"
},
"messages": {
"values": [
{
"content": "=You are part of a team that creats world class blog posts. \n\nYou are in charge of internal linking between blog posts. \n\nFor each new blog post that comes across your desk, your job is to look through previously posted blogs and make atleast 5 internal links. \n\nTo choose the best internal linking opportunities you must: \n\n- Read the previous blog post summaries and look through their keywords. If there is a match where the previous blog post is highly relevant, then this is an internal linking opportunity. \n\n- Do not link if it is not highly relevant. Only make a link if it makes sense and adds value for the reader. \n\nOnce you've found the best linking opportunities, you must update the blog post with the internal links. To do this you must: \n\n- Add the link of the previous blog post at the relevant section of the new blog post. Drop the URL at the place which makes most sense. Later we will hyperlink the URL to the word in the blog post which it is placed next to. So your placing is very important. \n\nMake sure to not delete any existing URLs or change anything about the blog post provided to you. You must only add new internal linking URLs and output the revised blog post. \n\nYour output must be the blog post given to you plus the new urls. Don't remove any info. \n\nDon't return the previous blog posts. Only return the current blog post with the internal links added.\n\nCurrent blog Post: \n{{ $('Copywriter').item.json.message.content }}\n\nPrevious Blog Posts: \n{{ $json.message.content }}\n\n"
}
]
},
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.openAi",
"typeVersion": 1.8,
"position": [
2740,
240
],
"id": "981da488-7ab3-450c-8dbe-2adef6606ef8",
"name": "Add internal links",
"credentials": {
"openAiApi": {
"id": "A4VrznQgOoMObSI7",
"name": "OpenAi account"
}
}
},
{
"parameters": {
"modelId": {
"__rl": true,
"value": "gpt-4o-mini",
"mode": "list",
"cachedResultName": "GPT-4O-MINI"
},
"messages": {
"values": [
{
"content": "=Create a slug for the following blog post: \n{{ $('Add internal links').item.json.message.content }}\n\nA slug in a blog post is the part of the URL that comes after the domain name and identifies a specific page. It is typically a short, descriptive phrase that summarizes the content of the post, making it easier for users and search engines to understand what the page is about. For example, in the URL www.example.com/intelligent-agents, the slug is intelligent-agents. A good slug is concise, contains relevant keywords, and avoids unnecessary words to improve readability and SEO. \n\nThe slug must be 4 or 5 words max and must include the primary keyword of the blog post which is {{ $('Choosing Topic').item.json.message.content }}\n\nYour output must be the slug and nothing else so that I can copy and paste your output and put it at the end of my blog post URL to post it right away. "
}
]
},
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.openAi",
"typeVersion": 1.8,
"position": [
3520,
240
],
"id": "0db36116-2594-407d-b05f-6f33538dee32",
"name": "Slug",
"credentials": {
"openAiApi": {
"id": "A4VrznQgOoMObSI7",
"name": "OpenAi account"
}
}
},
{
"parameters": {
"modelId": {
"__rl": true,
"value": "gpt-4o-2024-11-20",
"mode": "list",
"cachedResultName": "GPT-4O-2024-11-20"
},
"messages": {
"values": [
{
"content": "=Extract the blog post title from the following blog post: \n{{ $('Add internal links').item.json.message.content }}\n\n\n\nThe blog post title must include the primary keyword '{{ $('Choosing Topic').item.json.message.content }}' and must inform the users right away of what they can expect from reading the blog post. \n\n- Don't put the output in \"\". The output should just text with no markdown or formatting. \n\nYour output must only be the blog post title and nothing else. "
}
]
},
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.openAi",
"typeVersion": 1.8,
"position": [
3820,
240
],
"id": "af7f04cc-3313-4325-9803-9b7511b29b69",
"name": "Title",
"credentials": {
"openAiApi": {
"id": "A4VrznQgOoMObSI7",
"name": "OpenAi account"
}
}
},
{
"parameters": {
"modelId": {
"__rl": true,
"value": "gpt-4o-2024-11-20",
"mode": "list",
"cachedResultName": "GPT-4O-2024-11-20"
},
"messages": {
"values": [
{
"content": "=Create a good meta description for the following blog post: \n\n{{ $('Add internal links').item.json.message.content }}\n\nA good meta description for a blog post that is SEO-optimized should:\n- Be Concise: Stick to 150-160 characters to ensure the full description displays in search results. \n- Include Keywords: Incorporate primary keywords naturally to improve visibility and relevance to search queries.\n\nPrimary keyword = {{ $('Choosing Topic').item.json.message.content }}\n\n\n- Provide Value: Clearly describe what the reader will learn or gain by clicking the link. \n\n- Be Engaging: Use persuasive language, such as action verbs or a question, to encourage clicks. \n\n- Align with Content: Ensure the description accurately reflects the blog post to meet user expectations and reduce bounce rates. \n\nYour output must only be the meta description and nothing else. \n"
}
]
},
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.openAi",
"typeVersion": 1.8,
"position": [
4120,
240
],
"id": "70d88b3b-06f3-4319-b5a6-e64f8f46446d",
"name": "Meta description",
"credentials": {
"openAiApi": {
"id": "A4VrznQgOoMObSI7",
"name": "OpenAi account"
}
}
},
{
"parameters": {
"modelId": {
"__rl": true,
"value": "o1-preview",
"mode": "list",
"cachedResultName": "O1-PREVIEW"
},
"messages": {
"values": [
{
"content": "=DO NOT OUTPUT ANYTHING OTHER THAN THE CODE. I want you to follow the layout of the template as a guide to generate the WordPress code for a blog post. Here are the rules to follow:\n\nThe blog post should have a title, estimated reading time, key takeaways, table of contents, body, and FAQ in this order.\nMake it engaging by using italics, dot points, quotes, bold, spaces, and sometimes new lines. Never use emojis.\nThe blog post will have some URLs referenced next to certain keyphrases to show where the info came from. You must hyperlink the keyphrase with the provided URL so that the reader can click on the referenced URL. It is critical you get this right.\nWrap the entire content in a container <div> with inline CSS that sets the text color to white (#ffffff), uses a legible font such as Arial, sans-serif, and sets line-height to 1.6.\nEnsure that all non-heading text elements (e.g., paragraphs, list items) have an inline style or embedded style that sets their font size to 20px and color to white (#ffffff) using !important to override theme styles.\nHyperlinks, points in the table of contents, and FAQ questions must be styled in blue (#00c2ff).\nAll headings and subheadings should have an underline implemented via a bottom border in blue (#00c2ff) with appropriate padding.\nPlace a double break (<br><br>) between each section to improve readability.\nDo not output any extra text or mention code tags like HTML''' around the output; just output the HTML code.\nBlog post: \n\n{{ $json.message.content }}\n\nHere's an example of a well formatted output:\n\n<div style=\"color: #ffffff; font-family: Arial, sans-serif; line-height: 1.6;\"> <style> p, .wp-block-paragraph, ul.wp-block-list, li { color: #ffffff !important; font-size: 20px !important; } a { color: #00c2ff !important; } </style> <h1 id=\"h-devin-ai-the-hype-and-reality-of-an-ai-software-engineer\" class=\"wp-block-heading\" style=\"border-bottom: 2px solid #00c2ff; padding-bottom: 5px;\">Devin AI: The Hype and Reality of an AI Software Engineer</h1> <br><br> <p class=\"estimated-reading-time\" style=\"color: #ffffff; font-size: 20px !important;\">Estimated reading time: 5 minutes</p> <br><br> <h2 id=\"h-key-takeaways\" class=\"wp-block-heading\" style=\"border-bottom: 2px solid #00c2ff; padding-bottom: 5px;\"><strong>Key Takeaways</strong></h2> <br><br> <ul class=\"wp-block-list\"> <li><mark style=\"background-color: #ffd966;\"><strong>Devin AI</strong></mark> claims to be the world's first fully autonomous AI software engineer.</li> <br><br> <li>Initial demos and claims have generated significant <mark style=\"background-color: #ffff00;\">hype</mark> and interest.</li> <br><br> <li>Critics argue some capabilities may be exaggerated or misleading.</li> <br><br> <li>Real-world testing reveals both <em>strengths</em> and <em>limitations</em>.</li> <br><br> <li>The true impact on software engineering remains to be seen.</li> </ul> <br><br> <div class=\"wp-block-yoast-seo-table-of-contents yoast-table-of-contents\"> <h2 style=\"color: #ffffff; border-bottom: 2px solid #00c2ff; padding-bottom: 5px;\">Table of contents</h2> <br><br> <ul> <li><a href=\"#h-devin-ai-the-hype-and-reality-of-an-ai-software-engineer\" data-level=\"1\">Devin AI: The Hype and Reality of an AI Software Engineer</a></li> <br><br> <li><a href=\"#h-key-takeaways\" data-level=\"2\">Key Takeaways</a></li> <br><br> <li><a href=\"#h-what-is-devin-ai\" data-level=\"2\">What is Devin AI?</a></li> <br><br> <li><a href=\"#h-the-hype-around-devin-ai\" data-level=\"2\">The Hype Around Devin AI</a></li> <br><br> <li><a href=\"#h-putting-devin-to-the-test\" data-level=\"2\">Putting Devin to the Test</a></li> <br><br> <li><a href=\"#h-the-reality-check\" data-level=\"2\">The Reality Check</a></li> <br><br> <li><a href=\"#h-the-future-of-ai-in-software-development\" data-level=\"2\">The Future of AI in Software Development</a></li> <br><br> <li><a href=\"#h-frequently-asked-questions\" data-level=\"2\">Frequently Asked Questions</a></li> </ul> </div> <br><br> <p>Devin AI has burst onto the tech scene, promising to revolutionize software development as we know it. But does this AI-powered coding assistant live up to the hype? Let's dive into what Devin AI really is, what it can do, and what developers are saying after putting it to the test.</p> <br><br> <!-- Rest of blog post content goes here --> </div>\n"
}
]
},
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.openAi",
"typeVersion": 1.8,
"position": [
3180,
240
],
"id": "b009b4e9-a373-472b-a35b-2c6a1becbacb",
"name": "HTML version",
"credentials": {
"openAiApi": {
"id": "A4VrznQgOoMObSI7",
"name": "OpenAi account"
}
}
},
{
"parameters": {
"url": "https://serpapi.com/search?engine=google_images&q=cats&api_key=ca1fbe2a69cf734c20eeeca29020e73e849fe5a923c178798e81e54abe152304",
"authentication": "genericCredentialType",
"genericAuthType": "httpQueryAuth",
"sendQuery": true,
"queryParameters": {
"parameters": [
{
"name": "q",
"value": "={{ $('Choosing Topic').item.json.message.content }}"
},
{
"name": "gl",
"value": "us"
}
]
},
"options": {}
},
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
4460,
240
],
"id": "48bc17d9-455e-4f95-a481-fcdf873cd546",
"name": "Image Covers",
"credentials": {
"httpQueryAuth": {
"id": "pHmCjxM94vzYCD9b",
"name": "Query Auth account"
}
}
},
{
"parameters": {
"assignments": {
"assignments": [
{
"id": "1f0541df-05ab-4e3d-a5d8-3904579fc8a9",
"name": "image-url",
"value": "={{ $json.images_results[1].original }}",
"type": "string"
}
]
},
"options": {}
},
"type": "n8n-nodes-base.set",
"typeVersion": 3.4,
"position": [
4620,
240
],
"id": "46546847-720b-476d-a893-df94990b2020",
"name": "Edit Fields"
},
{
"parameters": {
"title": "={{ $('Title').item.json.message.content }}",
"additionalFields": {
"authorId": 2,
"content": "=<img src=\"{{ $json['image-url'] }}\" alt=\"Cover Image\">\n{{ $('HTML version').item.json.message.content }}",
"slug": "={{ $('Slug').item.json.message.content }}",
"status": "draft",
"commentStatus": "closed",
"sticky": false,
"categories": [
280
],
"tags": [
281
],
"postTemplate": {
"values": {}
}
}
},
"type": "n8n-nodes-base.wordpress",
"typeVersion": 1,
"position": [
4880,
240
],
"id": "ad55469b-7539-4f7f-9520-2d63ad3619fd",
"name": "Wordpress",
"credentials": {
"wordpressApi": {
"id": "dOH3BFF9p89EeXe1",
"name": "OwlGroup-WordPress"
}
}
},
{
"parameters": {
"operation": "append",
"documentId": {
"__rl": true,
"value": "1t-J2x22lsG6TpktQLBkwaS-ewuJI2WQvB-g4vQspbYU",
"mode": "list",
"cachedResultName": "Completed Keywords",
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1t-J2x22lsG6TpktQLBkwaS-ewuJI2WQvB-g4vQspbYU/edit?usp=drivesdk"
},
"sheetName": {
"__rl": true,
"value": "gid=0",
"mode": "list",
"cachedResultName": "Sheet1",
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1t-J2x22lsG6TpktQLBkwaS-ewuJI2WQvB-g4vQspbYU/edit#gid=0"
},
"columns": {
"mappingMode": "defineBelow",
"value": {
"Blog Title ": "={{ $('Title').item.json.message.content }}",
"Keywords": "={{ $('Choosing Topic').item.json.message.content }}",
"Summary ": "={{ $('Meta description').item.json.message.content }}",
"URL": "=https://YourURL.com/{{ $('Slug').item.json.message.content }}"
},
"matchingColumns": [],
"schema": [
{
"id": "Blog Title ",
"displayName": "Blog Title ",
"required": false,
"defaultMatch": false,
"display": true,
"type": "string",
"canBeUsedToMatch": true
},
{
"id": "Keywords",
"displayName": "Keywords",
"required": false,
"defaultMatch": false,
"display": true,
"type": "string",
"canBeUsedToMatch": true
},
{
"id": "Summary ",
"displayName": "Summary ",
"required": false,
"defaultMatch": false,
"display": true,
"type": "string",
"canBeUsedToMatch": true
},
{
"id": "URL",
"displayName": "URL",
"required": false,
"defaultMatch": false,
"display": true,
"type": "string",
"canBeUsedToMatch": true,
"removed": false
}
],
"attemptToConvertTypes": false,
"convertFieldsToString": false
},
"options": {}
},
"type": "n8n-nodes-base.googleSheets",
"typeVersion": 4.5,
"position": [
5100,
240
],
"id": "e23c47ab-5057-42ee-ac9c-0165e709f1a2",
"name": "Google Sheets",
"credentials": {
"googleSheetsOAuth2Api": {
"id": "MkAP85dkZLC6M2hS",
"name": "Google Sheets account"
}
}
},
{
"parameters": {
"url": "https://serpapi.com/search?engine=google_trends&api_key=ca1fbe2a69cf734c20eeeca29020e73e849fe5a923c178798e81e54abe152304",
"authentication": "genericCredentialType",
"genericAuthType": "httpQueryAuth",
"sendQuery": true,
"queryParameters": {
"parameters": [
{
"name": "q",
"value": "=AI Agent"
},
{
"name": "geo",
"value": "VN"
},
{
"name": "hl",
"value": "en"
},
{
"name": "date",
"value": "={{ $now.minus({ days: 3 }).format('yyyy-MM-dd') }} {{ $now.format('yyyy-MM-dd') }}"
},
{
"name": "data_type",
"value": "RELATED_QUERIES"
}
]
},
"options": {}
},
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
300,
240
],
"id": "17752452-30a6-4479-ba70-60121cdebd58",
"name": "Trends",
"credentials": {
"httpQueryAuth": {
"id": "pHmCjxM94vzYCD9b",
"name": "Query Auth account"
}
}
},
{
"parameters": {
"mode": "raw",
"jsonOutput": "={\n \"most-trending\": {\n\n \"#1\": { \n\n \"query\":\"{{ $json.related_queries.rising[0].query }}\",\n \"score\":\"{{ $json.related_queries.rising[0].extracted_value }}\"\n\n },\n\n\n \"#2\": { \n\n \"query\":\"{{ $json.related_queries.rising[1].query }}\",\n \"score\":\"{{ $json.related_queries.rising[1].extracted_value }}\"\n\n }\n }\n}",
"options": {}
},
"type": "n8n-nodes-base.set",
"typeVersion": 3.4,
"position": [
480,
240
],
"id": "ba8faf49-a5f4-47bd-9e80-5e7e67e55cd4",
"name": "2 Most Trending"
},
{
"parameters": {
"jsCode": "// Get the top array from your JSON\nconst topItems = $('Trends').first().json.related_queries.top;\n\n// Filter the items to only include those with extracted_value > 30\nconst filtered = topItems.filter(item => item.extracted_value > 30);\n\n// Map the filtered items to their query values and join them with commas\nconst resultString = filtered.map(item => item.query).join(', ');\n\n// Return the result in a new JSON property\nreturn [{ json: { result: resultString } }];\n"
},
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"position": [
700,
240
],
"id": "048e32c6-3947-48f6-acf4-411354b30a31",
"name": "High search volume keywords"
},
{
"parameters": {
"modelId": {
"__rl": true,
"value": "gpt-4",
"mode": "id"
},
"messages": {
"values": [
{
"content": "=You are part of a team that creates world class blog posts. Your job is to choose the topic for each blog post. \n\nThe blog posts are posted on the website of a [COMPANY NAME + DESCRIPTION + PRODUCTS + TARGET MARKET]. The blog posts are mainly posted as part of an SEO campaign to get [COMPANY NAME] to rank high for its products and services.\n\nIn this instance, you are given a list of 2 keywords which have been trending the most on Google news search over the past few days. \n\nYour job is to pick one which you think would make for the most relevant blog post with the best SEO outcomes for the client. \n\nThe keywords have two attributes: \n\n1. query: This attribute determines the search query that users have been searching for which is trending. \n\n2. value: This attribute determines what percentage increase the keyword has seen compared to previous periods (i.e. the increase in search volume). \n\nYou must choose one out of the taking into consideration both the relevance of the keyword for [COMPANY NAME's] SEO efforts and the comparative trendiness determined by the value attribute. \n\nOutput the keyword you decided to post a blog on and nothing else. Don't explain your reasoning. Just output the keyword. \n\nThis instance: \n\nKeyword 1:\n{{ $('2 Most Trending').item.json['most-trending']['#1'].toJsonString() }} \n\nKeyword2: \n{{ $('2 Most Trending').item.json['most-trending']['#2'].toJsonString() }} "
}
]
},
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.openAi",
"typeVersion": 1.8,
"position": [
920,
240
],
"id": "6bc60355-abdd-4e83-ac67-17d7e29470a7",
"name": "Choosing Topic",
"credentials": {
"openAiApi": {
"id": "A4VrznQgOoMObSI7",
"name": "OpenAi account"
}
}
},
{
"parameters": {
"modelId": {
"__rl": true,
"value": "gpt-4",
"mode": "id"
},
"messages": {
"values": [
{
"content": "=You are part of a team that creates world class blog posts for SEO purposes. \n\nEvery week your team posts one blog post on the most trending news in this week of AI. As the copywriter for the blogs, you are provided with the folling information: \n\n- Query: The topic of this weeks blog post. This is the most trending news in the space.\n\n- Other keywords: This is a list of some high search volume keywords in the AI space. The goal is to include some of these into the blog post naturally. This is only optional and dependant on the natural dependancy of this weeks topic to the blog post. Include any of the keywords in the blog, if you can do so naturally without changing the meaning of the blog post. \n\n\n- Research findings: This is research found from very reputable resources in relation to the topic of the post. Your blog post must be based off this research.\n\n\nGiven the said info, you must write the blog post.\n \nThe blog post must: \n\n- Place the query in the blog title, H1 header and early in the introduction. \n\n- Include all detail in research findings. When including the research points, make sure to also include their source URL so that the copywriter can use them as hyperlinks. (source url for each statement is given in the research findings next to the text)\n\n- Be very detailed. \n\n- Be using tone similar to that of a reporter, invoking curiosity and excitement and thrill in the readers.\n\n- Flow naturally and make sense. \n\n- Be at minimum 1500 to 2000 words long. \n\n- Be suitable for a year 5 reading level. \n\nMake sure to create the entire blog post draft in your first output. Don't stop or cut it short. \n\nYour output must be the blog post and nothing else.\n\nHere are the details of your next blog post project: \n\nQuery: \n{{ $('Choosing Topic').item.json.message.content }}\n\nDetailed Research: \n{{ $json.text }}\n\nWrite the blog post.\n"
}
]
},
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.openAi",
"typeVersion": 1.8,
"position": [
1980,
240
],
"id": "e602dbe0-35aa-469c-98ff-b97605f8ca41",
"name": "Copywriter",
"credentials": {
"openAiApi": {
"id": "A4VrznQgOoMObSI7",
"name": "OpenAi account"
}
}
},
{
"parameters": {
"content": "## Find Trend\n\n",
"height": 240,
"width": 400
},
"type": "n8n-nodes-base.stickyNote",
"position": [
220,
160
],
"typeVersion": 1,
"id": "a0c03f57-79c8-459b-9960-af42ca006e0c",
"name": "Sticky Note"
},
{
"parameters": {
"content": "## High Volume Keywords\n\n",
"height": 240,
"width": 200
},
"type": "n8n-nodes-base.stickyNote",
"position": [
660,
160
],
"typeVersion": 1,
"id": "9b0a2f6b-537e-453f-b284-3622a1d22a11",
"name": "Sticky Note1"
},
{
"parameters": {
"content": "## Choosing Blog Topic\n\n\n",
"height": 240,
"width": 340
},
"type": "n8n-nodes-base.stickyNote",
"position": [
900,
160
],
"typeVersion": 1,
"id": "36a6f265-3d0a-4c11-b189-ad01522d168d",
"name": "Sticky Note2"
},
{
"parameters": {
"content": "## Research\n\n\n",
"height": 240,
"width": 460
},
"type": "n8n-nodes-base.stickyNote",
"position": [
1260,
160
],
"typeVersion": 1,
"id": "bf18397c-57a7-4c9e-bf5d-d2e0fc93bbab",
"name": "Sticky Note3"
},
{
"parameters": {
"content": "## Write Post\n\n\n",
"height": 240,
"width": 360
},
"type": "n8n-nodes-base.stickyNote",
"position": [
1740,
160
],
"typeVersion": 1,
"id": "7e136994-1130-4e51-8600-17f37c061d69",
"name": "Sticky Note4"
},
{
"parameters": {
"content": "## Internal Links\n\n\n",
"height": 240,
"width": 800
},
"type": "n8n-nodes-base.stickyNote",
"position": [
2140,
160
],
"typeVersion": 1,
"id": "108cf3b6-f696-4a65-801f-66eac0ab33cb",
"name": "Sticky Note5"
},
{
"parameters": {
"content": "## Prepare to Post\n\n\n",
"height": 240,
"width": 1220
},
"type": "n8n-nodes-base.stickyNote",
"position": [
2960,
160
],
"typeVersion": 1,
"id": "6e3a99bf-4e1e-466e-b1f7-6a8b85967e24",
"name": "Sticky Note6"
},
{
"parameters": {
"content": "## Find Cover Image\n\n\n",
"height": 240,
"width": 320
},
"type": "n8n-nodes-base.stickyNote",
"position": [
4200,
160
],
"typeVersion": 1,
"id": "5840c9d1-55ca-485c-ba4e-3cbc372d4b68",
"name": "Sticky Note7"
},
{
"parameters": {
"content": "## Post on Wordpress\n\n\n",
"height": 240
},
"type": "n8n-nodes-base.stickyNote",
"position": [
4560,
160
],
"typeVersion": 1,
"id": "15fdefb3-d7de-46a7-bcc7-7f5a9dbdf838",
"name": "Sticky Note8"
},
{
"parameters": {
"content": "## Add to Other Blogs\n\n\n",
"height": 240
},
"type": "n8n-nodes-base.stickyNote",
"position": [
4820,
160
],
"typeVersion": 1,
"id": "a85a38e9-bed7-4b50-b10a-6750dcbe27bf",
"name": "Sticky Note9"
},
{
"parameters": {
"content": "# Trend SEO Post",
"height": 80,
"width": 420,
"color": 4
},
"type": "n8n-nodes-base.stickyNote",
"position": [
140,
-160
],
"typeVersion": 1,
"id": "1a677d3f-295c-4f7f-b1b0-7b210558019d",
"name": "Sticky Note10"
},
{
"parameters": {
"promptType": "define",
"text": "=Research the following topic and return everything you can find: '{{ $('Choosing Topic').item.json.message.content }}",
"messages": {
"messageValues": [
{
"message": "Act as a professional news researcher who is capable of finding detailed summaries about a news topic from highly reputable sources."
},
{
"type": "HumanMessagePromptTemplate",
"message": "=Research the following topic and return everything you can find: '{{ $('Choosing Topic').item.json.message.content }}"
}
]
}
},
"type": "@n8n/n8n-nodes-langchain.chainLlm",
"typeVersion": 1.5,
"position": [
1340,
240
],
"id": "8114f076-e485-4698-880b-87d317d116ea",
"name": "Basic LLM Chain"
},
{
"parameters": {
"model": {
"__rl": true,
"mode": "list",
"value": "gpt-4o-mini"
},
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"typeVersion": 1.2,
"position": [
1260,
460
],
"id": "f514adc3-fe0d-42bc-bf9f-0132db1f6297",
"name": "OpenAI Chat Model",
"credentials": {
"openAiApi": {
"id": "A4VrznQgOoMObSI7",
"name": "OpenAi account"
}
}
}
],
"pinData": {},
"connections": {
"Schedule Trigger": {
"main": [
[
{
"node": "Trends",
"type": "main",
"index": 0
}
]
]
},
"Research": {
"main": [
[]
]
},
"Fix Links": {
"main": [
[]
]
},
"Previous Posts": {
"main": [
[]
]
},
"Aggregate": {
"main": [
[]
]
},
"Add internal links": {
"main": [
[
{
"node": "HTML version",
"type": "main",
"index": 0
}
]
]
},
"Slug": {
"main": [
[
{
"node": "Title",
"type": "main",
"index": 0
}
]
]
},
"Title": {
"main": [
[
{
"node": "Meta description",
"type": "main",
"index": 0
}
]
]
},
"HTML version": {
"main": [
[
{
"node": "Slug",
"type": "main",
"index": 0
}
]
]
},
"Meta description": {
"main": [
[
{
"node": "Image Covers",
"type": "main",
"index": 0
}
]
]
},
"Image Covers": {
"main": [
[
{
"node": "Edit Fields",
"type": "main",
"index": 0
}
]
]
},
"Edit Fields": {
"main": [
[
{
"node": "Wordpress",
"type": "main",
"index": 0
}
]
]
},
"Wordpress": {
"main": [
[
{
"node": "Google Sheets",
"type": "main",
"index": 0
}
]
]
},
"Trends": {
"main": [
[
{
"node": "2 Most Trending",
"type": "main",
"index": 0
}
]
]
},
"2 Most Trending": {
"main": [
[
{
"node": "High search volume keywords",
"type": "main",
"index": 0
}
]
]
},
"High search volume keywords": {
"main": [
[
{
"node": "Choosing Topic",
"type": "main",
"index": 0
}
]
]
},
"Choosing Topic": {
"main": [
[
{
"node": "Basic LLM Chain",
"type": "main",
"index": 0
}
]
]
},
"Copywriter": {
"main": [
[
{
"node": "Add internal links",
"type": "main",
"index": 0
}
]
]
},
"Basic LLM Chain": {
"main": [
[
{
"node": "Copywriter",
"type": "main",
"index": 0
}
]
]
},
"OpenAI Chat Model": {
"ai_languageModel": [