@mindstudio-ai/agent 0.0.5 → 0.0.7

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/dist/index.js CHANGED
@@ -151,10 +151,9 @@ function applyStepMethods(AgentClass) {
151
151
  proto.generateMusic = function(step, options) {
152
152
  return this.executeStep("generateMusic", step, options);
153
153
  };
154
- proto.generatePdf = function(step, options) {
154
+ proto.generateAsset = function(step, options) {
155
155
  return this.executeStep("generatePdf", step, options);
156
156
  };
157
- proto.generateAsset = proto.generatePdf;
158
157
  proto.generateStaticVideoFromImage = function(step, options) {
159
158
  return this.executeStep("generateStaticVideoFromImage", step, options);
160
159
  };
@@ -386,10 +385,9 @@ function applyStepMethods(AgentClass) {
386
385
  proto.upscaleVideo = function(step, options) {
387
386
  return this.executeStep("upscaleVideo", step, options);
388
387
  };
389
- proto.userMessage = function(step, options) {
388
+ proto.generateText = function(step, options) {
390
389
  return this.executeStep("userMessage", step, options);
391
390
  };
392
- proto.generateText = proto.userMessage;
393
391
  proto.videoFaceSwap = function(step, options) {
394
392
  return this.executeStep("videoFaceSwap", step, options);
395
393
  };
@@ -494,11 +492,13 @@ function resolveToken(provided) {
494
492
  var stepSnippets = {
495
493
  "activeCampaignAddNote": {
496
494
  method: "activeCampaignAddNote",
497
- snippet: "{\n contactId: '',\n note: '',\n connectionId: '',\n}"
495
+ snippet: "{\n contactId: '',\n note: '',\n connectionId: '',\n}",
496
+ outputKeys: []
498
497
  },
499
498
  "activeCampaignCreateContact": {
500
499
  method: "activeCampaignCreateContact",
501
- snippet: "{\n email: '',\n firstName: '',\n lastName: '',\n phone: '',\n accountId: '',\n customFields: {},\n connectionId: '',\n}"
500
+ snippet: "{\n email: '',\n firstName: '',\n lastName: '',\n phone: '',\n accountId: '',\n customFields: {},\n connectionId: '',\n}",
501
+ outputKeys: ["contactId"]
502
502
  },
503
503
  "addSubtitlesToVideo": {
504
504
  method: "addSubtitlesToVideo",
@@ -518,63 +518,78 @@ var stepSnippets = {
518
518
  yOffset: 0,
519
519
  wordsPerSubtitle: 0,
520
520
  enableAnimation: false,
521
- }`
521
+ }`,
522
+ outputKeys: ["videoUrl"]
522
523
  },
523
524
  "airtableCreateUpdateRecord": {
524
525
  method: "airtableCreateUpdateRecord",
525
- snippet: "{\n connectionId: '',\n baseId: '',\n tableId: '',\n fields: '',\n recordData: {},\n}"
526
+ snippet: "{\n connectionId: '',\n baseId: '',\n tableId: '',\n fields: '',\n recordData: {},\n}",
527
+ outputKeys: ["recordId"]
526
528
  },
527
529
  "airtableDeleteRecord": {
528
530
  method: "airtableDeleteRecord",
529
- snippet: "{\n connectionId: '',\n baseId: '',\n tableId: '',\n recordId: '',\n}"
531
+ snippet: "{\n connectionId: '',\n baseId: '',\n tableId: '',\n recordId: '',\n}",
532
+ outputKeys: ["deleted"]
530
533
  },
531
534
  "airtableGetRecord": {
532
535
  method: "airtableGetRecord",
533
- snippet: "{\n connectionId: '',\n baseId: '',\n tableId: '',\n recordId: '',\n}"
536
+ snippet: "{\n connectionId: '',\n baseId: '',\n tableId: '',\n recordId: '',\n}",
537
+ outputKeys: ["record"]
534
538
  },
535
539
  "airtableGetTableRecords": {
536
540
  method: "airtableGetTableRecords",
537
- snippet: "{\n connectionId: '',\n baseId: '',\n tableId: '',\n}"
541
+ snippet: "{\n connectionId: '',\n baseId: '',\n tableId: '',\n}",
542
+ outputKeys: ["records"]
538
543
  },
539
544
  "analyzeImage": {
540
545
  method: "analyzeImage",
541
- snippet: "{\n prompt: '',\n imageUrl: '',\n}"
546
+ snippet: "{\n prompt: '',\n imageUrl: '',\n}",
547
+ outputKeys: ["analysis"]
542
548
  },
543
549
  "analyzeVideo": {
544
550
  method: "analyzeVideo",
545
- snippet: "{\n prompt: '',\n videoUrl: '',\n}"
551
+ snippet: "{\n prompt: '',\n videoUrl: '',\n}",
552
+ outputKeys: ["analysis"]
546
553
  },
547
554
  "captureThumbnail": {
548
555
  method: "captureThumbnail",
549
- snippet: "{\n videoUrl: '',\n at: '',\n}"
556
+ snippet: "{\n videoUrl: '',\n at: '',\n}",
557
+ outputKeys: ["thumbnailUrl"]
550
558
  },
551
559
  "codaCreateUpdatePage": {
552
560
  method: "codaCreateUpdatePage",
553
- snippet: "{\n connectionId: '',\n pageData: {},\n}"
561
+ snippet: "{\n connectionId: '',\n pageData: {},\n}",
562
+ outputKeys: ["pageId"]
554
563
  },
555
564
  "codaCreateUpdateRow": {
556
565
  method: "codaCreateUpdateRow",
557
- snippet: "{\n connectionId: '',\n docId: '',\n tableId: '',\n rowData: {},\n}"
566
+ snippet: "{\n connectionId: '',\n docId: '',\n tableId: '',\n rowData: {},\n}",
567
+ outputKeys: ["rowId"]
558
568
  },
559
569
  "codaFindRow": {
560
570
  method: "codaFindRow",
561
- snippet: "{\n connectionId: '',\n docId: '',\n tableId: '',\n rowData: {},\n}"
571
+ snippet: "{\n connectionId: '',\n docId: '',\n tableId: '',\n rowData: {},\n}",
572
+ outputKeys: ["row"]
562
573
  },
563
574
  "codaGetPage": {
564
575
  method: "codaGetPage",
565
- snippet: "{\n connectionId: '',\n docId: '',\n pageId: '',\n}"
576
+ snippet: "{\n connectionId: '',\n docId: '',\n pageId: '',\n}",
577
+ outputKeys: ["content"]
566
578
  },
567
579
  "codaGetTableRows": {
568
580
  method: "codaGetTableRows",
569
- snippet: "{\n connectionId: '',\n docId: '',\n tableId: '',\n}"
581
+ snippet: "{\n connectionId: '',\n docId: '',\n tableId: '',\n}",
582
+ outputKeys: ["rows"]
570
583
  },
571
584
  "convertPdfToImages": {
572
585
  method: "convertPdfToImages",
573
- snippet: "{\n pdfUrl: '',\n}"
586
+ snippet: "{\n pdfUrl: '',\n}",
587
+ outputKeys: ["imageUrls"]
574
588
  },
575
589
  "createGoogleCalendarEvent": {
576
590
  method: "createGoogleCalendarEvent",
577
- snippet: "{\n connectionId: '',\n summary: '',\n startDateTime: '',\n endDateTime: '',\n}"
591
+ snippet: "{\n connectionId: '',\n summary: '',\n startDateTime: '',\n endDateTime: '',\n}",
592
+ outputKeys: ["eventId", "htmlLink"]
578
593
  },
579
594
  "createGoogleDoc": {
580
595
  method: "createGoogleDoc",
@@ -583,46 +598,56 @@ var stepSnippets = {
583
598
  text: '',
584
599
  connectionId: '',
585
600
  textType: "plain",
586
- }`
601
+ }`,
602
+ outputKeys: ["documentUrl"]
587
603
  },
588
604
  "createGoogleSheet": {
589
605
  method: "createGoogleSheet",
590
- snippet: "{\n title: '',\n text: '',\n connectionId: '',\n}"
606
+ snippet: "{\n title: '',\n text: '',\n connectionId: '',\n}",
607
+ outputKeys: ["spreadsheetUrl"]
591
608
  },
592
609
  "deleteGoogleCalendarEvent": {
593
610
  method: "deleteGoogleCalendarEvent",
594
- snippet: "{\n connectionId: '',\n eventId: '',\n}"
611
+ snippet: "{\n connectionId: '',\n eventId: '',\n}",
612
+ outputKeys: []
595
613
  },
596
614
  "detectPII": {
597
615
  method: "detectPII",
598
- snippet: "{\n input: '',\n language: '',\n entities: [],\n}"
616
+ snippet: "{\n input: '',\n language: '',\n entities: [],\n}",
617
+ outputKeys: ["detected", "detections"]
599
618
  },
600
619
  "downloadVideo": {
601
620
  method: "downloadVideo",
602
621
  snippet: `{
603
622
  videoUrl: '',
604
623
  format: "mp4",
605
- }`
624
+ }`,
625
+ outputKeys: ["videoUrl"]
606
626
  },
607
627
  "enhanceImageGenerationPrompt": {
608
628
  method: "enhanceImageGenerationPrompt",
609
- snippet: "{\n initialPrompt: '',\n includeNegativePrompt: false,\n systemPrompt: '',\n}"
629
+ snippet: "{\n initialPrompt: '',\n includeNegativePrompt: false,\n systemPrompt: '',\n}",
630
+ outputKeys: ["prompt"]
610
631
  },
611
632
  "enhanceVideoGenerationPrompt": {
612
633
  method: "enhanceVideoGenerationPrompt",
613
- snippet: "{\n initialPrompt: '',\n includeNegativePrompt: false,\n systemPrompt: '',\n}"
634
+ snippet: "{\n initialPrompt: '',\n includeNegativePrompt: false,\n systemPrompt: '',\n}",
635
+ outputKeys: ["prompt"]
614
636
  },
615
637
  "enrichPerson": {
616
638
  method: "enrichPerson",
617
- snippet: "{\n params: {},\n}"
639
+ snippet: "{\n params: {},\n}",
640
+ outputKeys: ["data"]
618
641
  },
619
642
  "extractAudioFromVideo": {
620
643
  method: "extractAudioFromVideo",
621
- snippet: "{\n videoUrl: '',\n}"
644
+ snippet: "{\n videoUrl: '',\n}",
645
+ outputKeys: ["audioUrl"]
622
646
  },
623
647
  "extractText": {
624
648
  method: "extractText",
625
- snippet: "{\n url: '',\n}"
649
+ snippet: "{\n url: '',\n}",
650
+ outputKeys: ["text"]
626
651
  },
627
652
  "fetchGoogleDoc": {
628
653
  method: "fetchGoogleDoc",
@@ -630,7 +655,8 @@ var stepSnippets = {
630
655
  documentId: '',
631
656
  connectionId: '',
632
657
  exportType: "html",
633
- }`
658
+ }`,
659
+ outputKeys: ["content"]
634
660
  },
635
661
  "fetchGoogleSheet": {
636
662
  method: "fetchGoogleSheet",
@@ -639,11 +665,13 @@ var stepSnippets = {
639
665
  range: '',
640
666
  connectionId: '',
641
667
  exportType: "csv",
642
- }`
668
+ }`,
669
+ outputKeys: ["content"]
643
670
  },
644
671
  "fetchSlackChannelHistory": {
645
672
  method: "fetchSlackChannelHistory",
646
- snippet: "{\n connectionId: '',\n channelId: '',\n}"
673
+ snippet: "{\n connectionId: '',\n channelId: '',\n}",
674
+ outputKeys: ["messages"]
647
675
  },
648
676
  "fetchYoutubeCaptions": {
649
677
  method: "fetchYoutubeCaptions",
@@ -651,11 +679,13 @@ var stepSnippets = {
651
679
  videoUrl: '',
652
680
  exportType: "text",
653
681
  language: '',
654
- }`
682
+ }`,
683
+ outputKeys: ["transcripts"]
655
684
  },
656
685
  "fetchYoutubeChannel": {
657
686
  method: "fetchYoutubeChannel",
658
- snippet: "{\n channelUrl: '',\n}"
687
+ snippet: "{\n channelUrl: '',\n}",
688
+ outputKeys: ["channel"]
659
689
  },
660
690
  "fetchYoutubeComments": {
661
691
  method: "fetchYoutubeComments",
@@ -663,11 +693,13 @@ var stepSnippets = {
663
693
  videoUrl: '',
664
694
  exportType: "text",
665
695
  limitPages: '',
666
- }`
696
+ }`,
697
+ outputKeys: ["comments"]
667
698
  },
668
699
  "fetchYoutubeVideo": {
669
700
  method: "fetchYoutubeVideo",
670
- snippet: "{\n videoUrl: '',\n}"
701
+ snippet: "{\n videoUrl: '',\n}",
702
+ outputKeys: ["video"]
671
703
  },
672
704
  "generateAsset": {
673
705
  method: "generateAsset",
@@ -677,45 +709,43 @@ var stepSnippets = {
677
709
  outputFormat: "pdf",
678
710
  pageSize: "full",
679
711
  testData: {},
680
- }`
712
+ }`,
713
+ outputKeys: ["url"]
681
714
  },
682
715
  "generateChart": {
683
716
  method: "generateChart",
684
- snippet: "{\n chart: {},\n}"
717
+ snippet: "{\n chart: {},\n}",
718
+ outputKeys: ["chartUrl"]
685
719
  },
686
720
  "generateImage": {
687
721
  method: "generateImage",
688
- snippet: "{\n prompt: '',\n}"
722
+ snippet: "{\n prompt: '',\n}",
723
+ outputKeys: ["imageUrl"]
689
724
  },
690
725
  "generateLipsync": {
691
726
  method: "generateLipsync",
692
- snippet: "{}"
727
+ snippet: "{}",
728
+ outputKeys: []
693
729
  },
694
730
  "generateMusic": {
695
731
  method: "generateMusic",
696
- snippet: "{\n text: '',\n}"
697
- },
698
- "generatePdf": {
699
- method: "generatePdf",
700
- snippet: `{
701
- source: '',
702
- sourceType: "html",
703
- outputFormat: "pdf",
704
- pageSize: "full",
705
- testData: {},
706
- }`
732
+ snippet: "{\n text: '',\n}",
733
+ outputKeys: []
707
734
  },
708
735
  "generateStaticVideoFromImage": {
709
736
  method: "generateStaticVideoFromImage",
710
- snippet: "{\n imageUrl: '',\n duration: '',\n}"
737
+ snippet: "{\n imageUrl: '',\n duration: '',\n}",
738
+ outputKeys: ["videoUrl"]
711
739
  },
712
740
  "generateText": {
713
741
  method: "generateText",
714
- snippet: "{\n message: '',\n}"
742
+ snippet: "{\n message: '',\n}",
743
+ outputKeys: ["content"]
715
744
  },
716
745
  "generateVideo": {
717
746
  method: "generateVideo",
718
- snippet: "{\n prompt: '',\n}"
747
+ snippet: "{\n prompt: '',\n}",
748
+ outputKeys: ["videoUrl"]
719
749
  },
720
750
  "getGoogleCalendarEvent": {
721
751
  method: "getGoogleCalendarEvent",
@@ -723,11 +753,13 @@ var stepSnippets = {
723
753
  connectionId: '',
724
754
  eventId: '',
725
755
  exportType: "json",
726
- }`
756
+ }`,
757
+ outputKeys: ["event"]
727
758
  },
728
759
  "getMediaMetadata": {
729
760
  method: "getMediaMetadata",
730
- snippet: "{\n mediaUrl: '',\n}"
761
+ snippet: "{\n mediaUrl: '',\n}",
762
+ outputKeys: ["metadata"]
731
763
  },
732
764
  "httpRequest": {
733
765
  method: "httpRequest",
@@ -740,15 +772,18 @@ var stepSnippets = {
740
772
  bodyItems: {},
741
773
  contentType: "none",
742
774
  customContentType: '',
743
- }`
775
+ }`,
776
+ outputKeys: ["ok", "status", "statusText", "response"]
744
777
  },
745
778
  "hubspotCreateCompany": {
746
779
  method: "hubspotCreateCompany",
747
- snippet: "{\n connectionId: '',\n company: {},\n enabledProperties: [],\n}"
780
+ snippet: "{\n connectionId: '',\n company: {},\n enabledProperties: [],\n}",
781
+ outputKeys: ["companyId"]
748
782
  },
749
783
  "hubspotCreateContact": {
750
784
  method: "hubspotCreateContact",
751
- snippet: "{\n connectionId: '',\n contact: {},\n enabledProperties: [],\n companyDomain: '',\n}"
785
+ snippet: "{\n connectionId: '',\n contact: {},\n enabledProperties: [],\n companyDomain: '',\n}",
786
+ outputKeys: ["contactId"]
752
787
  },
753
788
  "hubspotGetCompany": {
754
789
  method: "hubspotGetCompany",
@@ -758,7 +793,8 @@ var stepSnippets = {
758
793
  companyDomain: '',
759
794
  companyId: '',
760
795
  additionalProperties: [],
761
- }`
796
+ }`,
797
+ outputKeys: ["company"]
762
798
  },
763
799
  "hubspotGetContact": {
764
800
  method: "hubspotGetContact",
@@ -768,39 +804,48 @@ var stepSnippets = {
768
804
  contactEmail: '',
769
805
  contactId: '',
770
806
  additionalProperties: [],
771
- }`
807
+ }`,
808
+ outputKeys: ["contact"]
772
809
  },
773
810
  "hunterApiCompanyEnrichment": {
774
811
  method: "hunterApiCompanyEnrichment",
775
- snippet: "{\n domain: '',\n}"
812
+ snippet: "{\n domain: '',\n}",
813
+ outputKeys: ["data"]
776
814
  },
777
815
  "hunterApiDomainSearch": {
778
816
  method: "hunterApiDomainSearch",
779
- snippet: "{\n domain: '',\n}"
817
+ snippet: "{\n domain: '',\n}",
818
+ outputKeys: ["data"]
780
819
  },
781
820
  "hunterApiEmailFinder": {
782
821
  method: "hunterApiEmailFinder",
783
- snippet: "{\n domain: '',\n firstName: '',\n lastName: '',\n}"
822
+ snippet: "{\n domain: '',\n firstName: '',\n lastName: '',\n}",
823
+ outputKeys: ["data"]
784
824
  },
785
825
  "hunterApiEmailVerification": {
786
826
  method: "hunterApiEmailVerification",
787
- snippet: "{\n email: '',\n}"
827
+ snippet: "{\n email: '',\n}",
828
+ outputKeys: ["data"]
788
829
  },
789
830
  "hunterApiPersonEnrichment": {
790
831
  method: "hunterApiPersonEnrichment",
791
- snippet: "{\n email: '',\n}"
832
+ snippet: "{\n email: '',\n}",
833
+ outputKeys: ["data"]
792
834
  },
793
835
  "imageFaceSwap": {
794
836
  method: "imageFaceSwap",
795
- snippet: "{\n imageUrl: '',\n faceImageUrl: '',\n engine: '',\n}"
837
+ snippet: "{\n imageUrl: '',\n faceImageUrl: '',\n engine: '',\n}",
838
+ outputKeys: ["imageUrl"]
796
839
  },
797
840
  "imageRemoveWatermark": {
798
841
  method: "imageRemoveWatermark",
799
- snippet: "{\n imageUrl: '',\n engine: '',\n}"
842
+ snippet: "{\n imageUrl: '',\n engine: '',\n}",
843
+ outputKeys: ["imageUrl"]
800
844
  },
801
845
  "insertVideoClips": {
802
846
  method: "insertVideoClips",
803
- snippet: "{\n baseVideoUrl: '',\n overlayVideos: [],\n}"
847
+ snippet: "{\n baseVideoUrl: '',\n overlayVideos: [],\n}",
848
+ outputKeys: ["videoUrl"]
804
849
  },
805
850
  "listGoogleCalendarEvents": {
806
851
  method: "listGoogleCalendarEvents",
@@ -808,31 +853,38 @@ var stepSnippets = {
808
853
  connectionId: '',
809
854
  limit: 0,
810
855
  exportType: "json",
811
- }`
856
+ }`,
857
+ outputKeys: ["events"]
812
858
  },
813
859
  "logic": {
814
860
  method: "logic",
815
- snippet: "{\n context: '',\n cases: [],\n}"
861
+ snippet: "{\n context: '',\n cases: [],\n}",
862
+ outputKeys: ["selectedCase"]
816
863
  },
817
864
  "makeDotComRunScenario": {
818
865
  method: "makeDotComRunScenario",
819
- snippet: "{\n webhookUrl: '',\n input: {},\n}"
866
+ snippet: "{\n webhookUrl: '',\n input: {},\n}",
867
+ outputKeys: ["data"]
820
868
  },
821
869
  "mergeAudio": {
822
870
  method: "mergeAudio",
823
- snippet: "{\n mp3Urls: [],\n}"
871
+ snippet: "{\n mp3Urls: [],\n}",
872
+ outputKeys: ["audioUrl"]
824
873
  },
825
874
  "mergeVideos": {
826
875
  method: "mergeVideos",
827
- snippet: "{\n videoUrls: [],\n}"
876
+ snippet: "{\n videoUrls: [],\n}",
877
+ outputKeys: ["videoUrl"]
828
878
  },
829
879
  "mixAudioIntoVideo": {
830
880
  method: "mixAudioIntoVideo",
831
- snippet: "{\n videoUrl: '',\n audioUrl: '',\n options: {},\n}"
881
+ snippet: "{\n videoUrl: '',\n audioUrl: '',\n options: {},\n}",
882
+ outputKeys: ["videoUrl"]
832
883
  },
833
884
  "muteVideo": {
834
885
  method: "muteVideo",
835
- snippet: "{\n videoUrl: '',\n}"
886
+ snippet: "{\n videoUrl: '',\n}",
887
+ outputKeys: ["videoUrl"]
836
888
  },
837
889
  "n8nRunNode": {
838
890
  method: "n8nRunNode",
@@ -843,11 +895,13 @@ var stepSnippets = {
843
895
  password: '',
844
896
  webhookUrl: '',
845
897
  input: {},
846
- }`
898
+ }`,
899
+ outputKeys: ["data"]
847
900
  },
848
901
  "notionCreatePage": {
849
902
  method: "notionCreatePage",
850
- snippet: "{\n pageId: '',\n content: '',\n title: '',\n connectionId: '',\n}"
903
+ snippet: "{\n pageId: '',\n content: '',\n title: '',\n connectionId: '',\n}",
904
+ outputKeys: ["pageId", "pageUrl"]
851
905
  },
852
906
  "notionUpdatePage": {
853
907
  method: "notionUpdatePage",
@@ -856,11 +910,13 @@ var stepSnippets = {
856
910
  content: '',
857
911
  mode: "append",
858
912
  connectionId: '',
859
- }`
913
+ }`,
914
+ outputKeys: ["pageId", "pageUrl"]
860
915
  },
861
916
  "peopleSearch": {
862
917
  method: "peopleSearch",
863
- snippet: "{\n smartQuery: '',\n enrichPeople: false,\n enrichOrganizations: false,\n limit: '',\n page: '',\n params: {},\n}"
918
+ snippet: "{\n smartQuery: '',\n enrichPeople: false,\n enrichOrganizations: false,\n limit: '',\n page: '',\n params: {},\n}",
919
+ outputKeys: ["results"]
864
920
  },
865
921
  "postToLinkedIn": {
866
922
  method: "postToLinkedIn",
@@ -868,7 +924,8 @@ var stepSnippets = {
868
924
  message: '',
869
925
  visibility: "PUBLIC",
870
926
  connectionId: '',
871
- }`
927
+ }`,
928
+ outputKeys: []
872
929
  },
873
930
  "postToSlackChannel": {
874
931
  method: "postToSlackChannel",
@@ -877,19 +934,23 @@ var stepSnippets = {
877
934
  messageType: "string",
878
935
  message: '',
879
936
  connectionId: '',
880
- }`
937
+ }`,
938
+ outputKeys: []
881
939
  },
882
940
  "postToX": {
883
941
  method: "postToX",
884
- snippet: "{\n text: '',\n connectionId: '',\n}"
942
+ snippet: "{\n text: '',\n connectionId: '',\n}",
943
+ outputKeys: []
885
944
  },
886
945
  "postToZapier": {
887
946
  method: "postToZapier",
888
- snippet: "{\n webhookUrl: '',\n input: {},\n}"
947
+ snippet: "{\n webhookUrl: '',\n input: {},\n}",
948
+ outputKeys: ["data"]
889
949
  },
890
950
  "queryDataSource": {
891
951
  method: "queryDataSource",
892
- snippet: "{\n dataSourceId: '',\n query: '',\n maxResults: 0,\n}"
952
+ snippet: "{\n dataSourceId: '',\n query: '',\n maxResults: 0,\n}",
953
+ outputKeys: ["text", "chunks", "query", "citations", "latencyMs"]
893
954
  },
894
955
  "queryExternalDatabase": {
895
956
  method: "queryExternalDatabase",
@@ -897,105 +958,120 @@ var stepSnippets = {
897
958
  connectionId: '',
898
959
  query: '',
899
960
  outputFormat: "json",
900
- }`
961
+ }`,
962
+ outputKeys: ["data"]
901
963
  },
902
964
  "redactPII": {
903
965
  method: "redactPII",
904
- snippet: "{\n input: '',\n language: '',\n entities: [],\n}"
966
+ snippet: "{\n input: '',\n language: '',\n entities: [],\n}",
967
+ outputKeys: ["text"]
905
968
  },
906
969
  "removeBackgroundFromImage": {
907
970
  method: "removeBackgroundFromImage",
908
- snippet: "{\n imageUrl: '',\n}"
971
+ snippet: "{\n imageUrl: '',\n}",
972
+ outputKeys: ["imageUrl"]
909
973
  },
910
974
  "resizeVideo": {
911
975
  method: "resizeVideo",
912
976
  snippet: `{
913
977
  videoUrl: '',
914
978
  mode: "fit",
915
- }`
979
+ }`,
980
+ outputKeys: ["videoUrl"]
916
981
  },
917
982
  "runPackagedWorkflow": {
918
983
  method: "runPackagedWorkflow",
919
- snippet: "{\n appId: '',\n workflowId: '',\n inputVariables: {},\n outputVariables: {},\n name: '',\n}"
984
+ snippet: "{\n appId: '',\n workflowId: '',\n inputVariables: {},\n outputVariables: {},\n name: '',\n}",
985
+ outputKeys: ["data"]
920
986
  },
921
987
  "scrapeFacebookPage": {
922
988
  method: "scrapeFacebookPage",
923
- snippet: "{\n pageUrl: '',\n}"
989
+ snippet: "{\n pageUrl: '',\n}",
990
+ outputKeys: ["data"]
924
991
  },
925
992
  "scrapeFacebookPosts": {
926
993
  method: "scrapeFacebookPosts",
927
- snippet: "{\n pageUrl: '',\n}"
994
+ snippet: "{\n pageUrl: '',\n}",
995
+ outputKeys: ["data"]
928
996
  },
929
997
  "scrapeInstagramComments": {
930
998
  method: "scrapeInstagramComments",
931
- snippet: "{\n postUrl: '',\n resultsLimit: '',\n}"
999
+ snippet: "{\n postUrl: '',\n resultsLimit: '',\n}",
1000
+ outputKeys: ["data"]
932
1001
  },
933
1002
  "scrapeInstagramMentions": {
934
1003
  method: "scrapeInstagramMentions",
935
- snippet: "{\n profileUrl: '',\n resultsLimit: '',\n}"
1004
+ snippet: "{\n profileUrl: '',\n resultsLimit: '',\n}",
1005
+ outputKeys: ["data"]
936
1006
  },
937
1007
  "scrapeInstagramPosts": {
938
1008
  method: "scrapeInstagramPosts",
939
- snippet: "{\n profileUrl: '',\n resultsLimit: '',\n onlyPostsNewerThan: '',\n}"
1009
+ snippet: "{\n profileUrl: '',\n resultsLimit: '',\n onlyPostsNewerThan: '',\n}",
1010
+ outputKeys: ["data"]
940
1011
  },
941
1012
  "scrapeInstagramProfile": {
942
1013
  method: "scrapeInstagramProfile",
943
- snippet: "{\n profileUrl: '',\n}"
1014
+ snippet: "{\n profileUrl: '',\n}",
1015
+ outputKeys: ["data"]
944
1016
  },
945
1017
  "scrapeInstagramReels": {
946
1018
  method: "scrapeInstagramReels",
947
- snippet: "{\n profileUrl: '',\n resultsLimit: '',\n}"
1019
+ snippet: "{\n profileUrl: '',\n resultsLimit: '',\n}",
1020
+ outputKeys: ["data"]
948
1021
  },
949
1022
  "scrapeLinkedInCompany": {
950
1023
  method: "scrapeLinkedInCompany",
951
- snippet: "{\n url: '',\n}"
1024
+ snippet: "{\n url: '',\n}",
1025
+ outputKeys: ["company"]
952
1026
  },
953
1027
  "scrapeLinkedInProfile": {
954
1028
  method: "scrapeLinkedInProfile",
955
- snippet: "{\n url: '',\n}"
1029
+ snippet: "{\n url: '',\n}",
1030
+ outputKeys: ["profile"]
956
1031
  },
957
1032
  "scrapeMetaThreadsProfile": {
958
1033
  method: "scrapeMetaThreadsProfile",
959
- snippet: "{\n profileUrl: '',\n}"
1034
+ snippet: "{\n profileUrl: '',\n}",
1035
+ outputKeys: ["data"]
960
1036
  },
961
1037
  "scrapeUrl": {
962
1038
  method: "scrapeUrl",
963
- snippet: `{
964
- url: '',
965
- service: "default",
966
- autoEnhance: false,
967
- outputFormat: "text",
968
- pageOptions: {},
969
- }`
1039
+ snippet: "{\n url: '',\n}",
1040
+ outputKeys: ["content"]
970
1041
  },
971
1042
  "scrapeXPost": {
972
1043
  method: "scrapeXPost",
973
- snippet: "{\n url: '',\n}"
1044
+ snippet: "{\n url: '',\n}",
1045
+ outputKeys: ["post"]
974
1046
  },
975
1047
  "scrapeXProfile": {
976
1048
  method: "scrapeXProfile",
977
- snippet: "{\n url: '',\n}"
1049
+ snippet: "{\n url: '',\n}",
1050
+ outputKeys: ["profile"]
978
1051
  },
979
1052
  "searchGoogle": {
980
1053
  method: "searchGoogle",
981
1054
  snippet: `{
982
1055
  query: '',
983
1056
  exportType: "text",
984
- }`
1057
+ }`,
1058
+ outputKeys: ["results"]
985
1059
  },
986
1060
  "searchGoogleImages": {
987
1061
  method: "searchGoogleImages",
988
1062
  snippet: `{
989
1063
  query: '',
990
1064
  exportType: "text",
991
- }`
1065
+ }`,
1066
+ outputKeys: ["images"]
992
1067
  },
993
1068
  "searchGoogleNews": {
994
1069
  method: "searchGoogleNews",
995
1070
  snippet: `{
996
1071
  text: '',
997
1072
  exportType: "text",
998
- }`
1073
+ }`,
1074
+ outputKeys: ["articles"]
999
1075
  },
1000
1076
  "searchGoogleTrends": {
1001
1077
  method: "searchGoogleTrends",
@@ -1007,14 +1083,16 @@ var stepSnippets = {
1007
1083
  cat: '',
1008
1084
  date: '',
1009
1085
  ts: '',
1010
- }`
1086
+ }`,
1087
+ outputKeys: ["trends"]
1011
1088
  },
1012
1089
  "searchPerplexity": {
1013
1090
  method: "searchPerplexity",
1014
1091
  snippet: `{
1015
1092
  query: '',
1016
1093
  exportType: "text",
1017
- }`
1094
+ }`,
1095
+ outputKeys: ["results"]
1018
1096
  },
1019
1097
  "searchXPosts": {
1020
1098
  method: "searchXPosts",
@@ -1022,11 +1100,13 @@ var stepSnippets = {
1022
1100
  query: '',
1023
1101
  scope: "recent",
1024
1102
  options: {},
1025
- }`
1103
+ }`,
1104
+ outputKeys: ["posts"]
1026
1105
  },
1027
1106
  "searchYoutube": {
1028
1107
  method: "searchYoutube",
1029
- snippet: "{\n query: '',\n limitPages: '',\n filter: '',\n filterType: '',\n}"
1108
+ snippet: "{\n query: '',\n limitPages: '',\n filter: '',\n filterType: '',\n}",
1109
+ outputKeys: ["results"]
1030
1110
  },
1031
1111
  "searchYoutubeTrends": {
1032
1112
  method: "searchYoutubeTrends",
@@ -1034,26 +1114,31 @@ var stepSnippets = {
1034
1114
  bp: "now",
1035
1115
  hl: '',
1036
1116
  gl: '',
1037
- }`
1117
+ }`,
1118
+ outputKeys: ["trends"]
1038
1119
  },
1039
1120
  "sendEmail": {
1040
1121
  method: "sendEmail",
1041
- snippet: "{\n subject: '',\n body: '',\n connectionId: '',\n}"
1122
+ snippet: "{\n subject: '',\n body: '',\n connectionId: '',\n}",
1123
+ outputKeys: ["recipients"]
1042
1124
  },
1043
1125
  "sendSMS": {
1044
1126
  method: "sendSMS",
1045
- snippet: "{\n body: '',\n connectionId: '',\n}"
1127
+ snippet: "{\n body: '',\n connectionId: '',\n}",
1128
+ outputKeys: []
1046
1129
  },
1047
1130
  "setRunTitle": {
1048
1131
  method: "setRunTitle",
1049
- snippet: "{\n title: '',\n}"
1132
+ snippet: "{\n title: '',\n}",
1133
+ outputKeys: []
1050
1134
  },
1051
1135
  "setVariable": {
1052
1136
  method: "setVariable",
1053
1137
  snippet: `{
1054
1138
  value: '',
1055
1139
  type: "imageUrl",
1056
- }`
1140
+ }`,
1141
+ outputKeys: ["variableName", "value"]
1057
1142
  },
1058
1143
  "telegramSendAudio": {
1059
1144
  method: "telegramSendAudio",
@@ -1062,43 +1147,53 @@ var stepSnippets = {
1062
1147
  chatId: '',
1063
1148
  audioUrl: '',
1064
1149
  mode: "audio",
1065
- }`
1150
+ }`,
1151
+ outputKeys: []
1066
1152
  },
1067
1153
  "telegramSendFile": {
1068
1154
  method: "telegramSendFile",
1069
- snippet: "{\n botToken: '',\n chatId: '',\n fileUrl: '',\n}"
1155
+ snippet: "{\n botToken: '',\n chatId: '',\n fileUrl: '',\n}",
1156
+ outputKeys: []
1070
1157
  },
1071
1158
  "telegramSendImage": {
1072
1159
  method: "telegramSendImage",
1073
- snippet: "{\n botToken: '',\n chatId: '',\n imageUrl: '',\n}"
1160
+ snippet: "{\n botToken: '',\n chatId: '',\n imageUrl: '',\n}",
1161
+ outputKeys: []
1074
1162
  },
1075
1163
  "telegramSendMessage": {
1076
1164
  method: "telegramSendMessage",
1077
- snippet: "{\n botToken: '',\n chatId: '',\n text: '',\n}"
1165
+ snippet: "{\n botToken: '',\n chatId: '',\n text: '',\n}",
1166
+ outputKeys: []
1078
1167
  },
1079
1168
  "telegramSendVideo": {
1080
1169
  method: "telegramSendVideo",
1081
- snippet: "{\n botToken: '',\n chatId: '',\n videoUrl: '',\n}"
1170
+ snippet: "{\n botToken: '',\n chatId: '',\n videoUrl: '',\n}",
1171
+ outputKeys: []
1082
1172
  },
1083
1173
  "telegramSetTyping": {
1084
1174
  method: "telegramSetTyping",
1085
- snippet: "{\n botToken: '',\n chatId: '',\n}"
1175
+ snippet: "{\n botToken: '',\n chatId: '',\n}",
1176
+ outputKeys: []
1086
1177
  },
1087
1178
  "textToSpeech": {
1088
1179
  method: "textToSpeech",
1089
- snippet: "{\n text: '',\n}"
1180
+ snippet: "{\n text: '',\n}",
1181
+ outputKeys: ["audioUrl"]
1090
1182
  },
1091
1183
  "transcribeAudio": {
1092
1184
  method: "transcribeAudio",
1093
- snippet: "{\n audioUrl: '',\n prompt: '',\n}"
1185
+ snippet: "{\n audioUrl: '',\n prompt: '',\n}",
1186
+ outputKeys: ["text"]
1094
1187
  },
1095
1188
  "trimMedia": {
1096
1189
  method: "trimMedia",
1097
- snippet: "{\n inputUrl: '',\n}"
1190
+ snippet: "{\n inputUrl: '',\n}",
1191
+ outputKeys: ["mediaUrl"]
1098
1192
  },
1099
1193
  "updateGoogleCalendarEvent": {
1100
1194
  method: "updateGoogleCalendarEvent",
1101
- snippet: "{\n connectionId: '',\n eventId: '',\n}"
1195
+ snippet: "{\n connectionId: '',\n eventId: '',\n}",
1196
+ outputKeys: ["eventId", "htmlLink"]
1102
1197
  },
1103
1198
  "updateGoogleDoc": {
1104
1199
  method: "updateGoogleDoc",
@@ -1108,7 +1203,8 @@ var stepSnippets = {
1108
1203
  text: '',
1109
1204
  textType: "plain",
1110
1205
  operationType: "addToTop",
1111
- }`
1206
+ }`,
1207
+ outputKeys: ["documentUrl"]
1112
1208
  },
1113
1209
  "updateGoogleSheet": {
1114
1210
  method: "updateGoogleSheet",
@@ -1118,7 +1214,8 @@ var stepSnippets = {
1118
1214
  spreadsheetId: '',
1119
1215
  range: '',
1120
1216
  operationType: "addToBottom",
1121
- }`
1217
+ }`,
1218
+ outputKeys: ["spreadsheetUrl"]
1122
1219
  },
1123
1220
  "upscaleImage": {
1124
1221
  method: "upscaleImage",
@@ -1126,7 +1223,8 @@ var stepSnippets = {
1126
1223
  imageUrl: '',
1127
1224
  targetResolution: "2k",
1128
1225
  engine: "standard",
1129
- }`
1226
+ }`,
1227
+ outputKeys: ["imageUrl"]
1130
1228
  },
1131
1229
  "upscaleVideo": {
1132
1230
  method: "upscaleVideo",
@@ -1134,15 +1232,13 @@ var stepSnippets = {
1134
1232
  videoUrl: '',
1135
1233
  targetResolution: "720p",
1136
1234
  engine: "standard",
1137
- }`
1138
- },
1139
- "userMessage": {
1140
- method: "userMessage",
1141
- snippet: "{\n message: '',\n}"
1235
+ }`,
1236
+ outputKeys: ["videoUrl"]
1142
1237
  },
1143
1238
  "videoFaceSwap": {
1144
1239
  method: "videoFaceSwap",
1145
- snippet: "{\n videoUrl: '',\n faceImageUrl: '',\n targetIndex: 0,\n engine: '',\n}"
1240
+ snippet: "{\n videoUrl: '',\n faceImageUrl: '',\n targetIndex: 0,\n engine: '',\n}",
1241
+ outputKeys: ["videoUrl"]
1146
1242
  },
1147
1243
  "videoRemoveBackground": {
1148
1244
  method: "videoRemoveBackground",
@@ -1150,11 +1246,13 @@ var stepSnippets = {
1150
1246
  videoUrl: '',
1151
1247
  newBackground: "transparent",
1152
1248
  engine: '',
1153
- }`
1249
+ }`,
1250
+ outputKeys: ["videoUrl"]
1154
1251
  },
1155
1252
  "videoRemoveWatermark": {
1156
1253
  method: "videoRemoveWatermark",
1157
- snippet: "{\n videoUrl: '',\n engine: '',\n}"
1254
+ snippet: "{\n videoUrl: '',\n engine: '',\n}",
1255
+ outputKeys: ["videoUrl"]
1158
1256
  },
1159
1257
  "watermarkImage": {
1160
1258
  method: "watermarkImage",
@@ -1164,7 +1262,8 @@ var stepSnippets = {
1164
1262
  corner: "top-left",
1165
1263
  paddingPx: 0,
1166
1264
  widthPx: 0,
1167
- }`
1265
+ }`,
1266
+ outputKeys: ["imageUrl"]
1168
1267
  },
1169
1268
  "watermarkVideo": {
1170
1269
  method: "watermarkVideo",
@@ -1174,7 +1273,8 @@ var stepSnippets = {
1174
1273
  corner: "top-left",
1175
1274
  paddingPx: 0,
1176
1275
  widthPx: 0,
1177
- }`
1276
+ }`,
1277
+ outputKeys: ["videoUrl"]
1178
1278
  }
1179
1279
  };
1180
1280