@yrpri/api 9.0.79 → 9.0.80
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.
|
@@ -88,13 +88,68 @@ async function createAgentProductsAndPlans() {
|
|
|
88
88
|
},
|
|
89
89
|
],
|
|
90
90
|
};
|
|
91
|
+
const fundingAgentWorkflow = {
|
|
92
|
+
currentStepIndex: 0,
|
|
93
|
+
steps: [
|
|
94
|
+
{
|
|
95
|
+
name: "Funding Agent Wide Search",
|
|
96
|
+
shortName: "Wide Search",
|
|
97
|
+
description: "Wide search for investors and funding opportunities.",
|
|
98
|
+
shortDescription: "Wide search for investors and funding opportunities.",
|
|
99
|
+
agentClassUuid: "a1b2c3d4-e5f6-c7c8-a9c0-c1225354f516",
|
|
100
|
+
type: "agentOps",
|
|
101
|
+
stepBackgroundColor: "#ffdc2f",
|
|
102
|
+
stepTextColor: "#211e1c"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
name: "Funding Agent Human Prioritization",
|
|
106
|
+
shortName: "Human Prioritization",
|
|
107
|
+
description: "Human prioritization of the wide search results.",
|
|
108
|
+
shortDescription: "Human prioritization of the wide search results.",
|
|
109
|
+
agentClassUuid: "a1b2c3d4-e5f6-c7c8-a9c0-c1225354f516",
|
|
110
|
+
type: "engagmentFromOutputConnector",
|
|
111
|
+
stepBackgroundColor: "#e74c3c",
|
|
112
|
+
stepTextColor: "#ffffff",
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
name: "Funding Agent Detailed Search",
|
|
116
|
+
shortName: "Detailed Search",
|
|
117
|
+
description: "Detailed search for investors and funding opportunities.",
|
|
118
|
+
shortDescription: "Detailed search for investors and funding opportunities.",
|
|
119
|
+
agentClassUuid: "b36ffca6-7363-44be-bd55-40661210cf24",
|
|
120
|
+
type: "agentOps",
|
|
121
|
+
stepBackgroundColor: "#1e90ff",
|
|
122
|
+
stepTextColor: "#ffffff",
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
name: "Funding Agent Detailed Search Human Prioritization",
|
|
126
|
+
shortName: "Detailed Search Human Prioritization",
|
|
127
|
+
description: "Human prioritization of the detailed search results.",
|
|
128
|
+
shortDescription: "Human prioritization of the detailed search results.",
|
|
129
|
+
agentClassUuid: "b36ffca6-7363-44be-bd55-40661210cf24",
|
|
130
|
+
type: "engagmentFromOutputConnector",
|
|
131
|
+
stepBackgroundColor: "#2ecc71",
|
|
132
|
+
stepTextColor: "#ffffff",
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
name: "Funding Agent Report",
|
|
136
|
+
shortName: "Funding Agent Report",
|
|
137
|
+
description: "Report on investors and funding opportunities.",
|
|
138
|
+
shortDescription: "Report on investors and funding opportunities.",
|
|
139
|
+
agentClassUuid: "1bbf8f86-0ffc-4356-aaa1-9cea04b78ec4",
|
|
140
|
+
type: "agentOps",
|
|
141
|
+
stepBackgroundColor: "#d486da",
|
|
142
|
+
stepTextColor: "#ffffff",
|
|
143
|
+
},
|
|
144
|
+
],
|
|
145
|
+
};
|
|
91
146
|
const agentProductsData = [
|
|
92
147
|
{
|
|
93
148
|
name: "Competitor Agent Free Trial",
|
|
94
149
|
description: "Analyzes competitor strategies and market positions.",
|
|
95
150
|
configuration: {
|
|
96
151
|
workflow: competitionAgentWorkflow,
|
|
97
|
-
templateWorkflowCommunityId:
|
|
152
|
+
templateWorkflowCommunityId: 63,
|
|
98
153
|
},
|
|
99
154
|
status: {
|
|
100
155
|
currentStatus: "active",
|
|
@@ -186,7 +241,7 @@ async function createAgentProductsAndPlans() {
|
|
|
186
241
|
groupId: 11,
|
|
187
242
|
configuration: {
|
|
188
243
|
workflow: competitionAgentWorkflow,
|
|
189
|
-
templateWorkflowCommunityId:
|
|
244
|
+
templateWorkflowCommunityId: 63,
|
|
190
245
|
},
|
|
191
246
|
status: {
|
|
192
247
|
currentStatus: "active",
|
|
@@ -330,8 +385,8 @@ async function createAgentProductsAndPlans() {
|
|
|
330
385
|
description: "Identifies and analyzes funding opportunities and investment strategies.",
|
|
331
386
|
groupId: 33814,
|
|
332
387
|
configuration: {
|
|
333
|
-
workflow:
|
|
334
|
-
templateWorkflowCommunityId:
|
|
388
|
+
workflow: fundingAgentWorkflow,
|
|
389
|
+
templateWorkflowCommunityId: 10175,
|
|
335
390
|
},
|
|
336
391
|
status: {},
|
|
337
392
|
subscriptionPlan: {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { YpAgentProduct } from "../agentProduct.js";
|
|
2
|
+
import { YpSubscriptionPlan } from "../subscriptionPlan.js";
|
|
2
3
|
async function setupAgentProductsConfiguration() {
|
|
3
4
|
const competitorAgentFreeTrial = await YpAgentProduct.findByPk(1);
|
|
4
5
|
if (competitorAgentFreeTrial) {
|
|
@@ -64,5 +65,88 @@ async function setupAgentProductsConfiguration() {
|
|
|
64
65
|
else {
|
|
65
66
|
console.log("CompetitorAgentFreeTrial not found");
|
|
66
67
|
}
|
|
68
|
+
const fundingAgent = await YpAgentProduct.findByPk(6);
|
|
69
|
+
if (fundingAgent) {
|
|
70
|
+
const fundingAgentWorkflow = {
|
|
71
|
+
currentStepIndex: 0,
|
|
72
|
+
steps: [
|
|
73
|
+
{
|
|
74
|
+
name: "Funding Agent Wide Search",
|
|
75
|
+
shortName: "Wide Search",
|
|
76
|
+
description: "Wide search for investors and funding opportunities.",
|
|
77
|
+
shortDescription: "Wide search for investors and funding opportunities.",
|
|
78
|
+
agentClassUuid: "956e7f74-6fc6-4e01-81b4-098c193e6450",
|
|
79
|
+
type: "agentOps",
|
|
80
|
+
stepBackgroundColor: "#ffdc2f",
|
|
81
|
+
stepTextColor: "#211e1c"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
name: "Funding Agent People Prioritization",
|
|
85
|
+
shortName: "Vetting investors",
|
|
86
|
+
description: "People prioritization of the wide search results.",
|
|
87
|
+
shortDescription: "People prioritization of the wide search results.",
|
|
88
|
+
agentClassUuid: "956e7f74-6fc6-4e01-81b4-098c193e6450",
|
|
89
|
+
type: "engagmentFromOutputConnector",
|
|
90
|
+
stepBackgroundColor: "#e74c3c",
|
|
91
|
+
stepTextColor: "#ffffff",
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
name: "Funding Agent Detailed Search",
|
|
95
|
+
shortName: "Detailed Search",
|
|
96
|
+
description: "Detailed search for investors and funding opportunities.",
|
|
97
|
+
shortDescription: "Detailed search for investors and funding opportunities.",
|
|
98
|
+
agentClassUuid: "b36ffca6-7363-44be-bd55-40661210cf24",
|
|
99
|
+
type: "agentOps",
|
|
100
|
+
stepBackgroundColor: "#1e90ff",
|
|
101
|
+
stepTextColor: "#ffffff",
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
name: "Funding Agent Detailed Search People Prioritization",
|
|
105
|
+
shortName: "Key investors",
|
|
106
|
+
description: "People prioritization of the detailed search results.",
|
|
107
|
+
shortDescription: "People prioritization of the detailed search results.",
|
|
108
|
+
agentClassUuid: "b36ffca6-7363-44be-bd55-40661210cf24",
|
|
109
|
+
type: "engagmentFromOutputConnector",
|
|
110
|
+
stepBackgroundColor: "#2ecc71",
|
|
111
|
+
stepTextColor: "#ffffff",
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
name: "Funding Agent Report",
|
|
115
|
+
shortName: "Funding report",
|
|
116
|
+
description: "Report on investors and funding opportunities.",
|
|
117
|
+
shortDescription: "Report on investors and funding opportunities.",
|
|
118
|
+
agentClassUuid: "1bbf8f86-0ffc-4356-aaa1-9cea04b78ec4",
|
|
119
|
+
type: "agentOps",
|
|
120
|
+
stepBackgroundColor: "#d486da",
|
|
121
|
+
stepTextColor: "#ffffff",
|
|
122
|
+
},
|
|
123
|
+
],
|
|
124
|
+
};
|
|
125
|
+
fundingAgent.set("configuration.workflow", fundingAgentWorkflow);
|
|
126
|
+
fundingAgent.changed("configuration", true);
|
|
127
|
+
await fundingAgent.save();
|
|
128
|
+
}
|
|
129
|
+
const fundingSubscriptionPlan = await YpSubscriptionPlan.findByPk(6);
|
|
130
|
+
if (fundingSubscriptionPlan) {
|
|
131
|
+
fundingSubscriptionPlan.set("configuration.structuredAnswersOverride", []);
|
|
132
|
+
fundingSubscriptionPlan.set("configuration.requiredStructuredQuestions", [
|
|
133
|
+
{
|
|
134
|
+
uniqueId: "businessDescription",
|
|
135
|
+
type: "textArea",
|
|
136
|
+
description: "Detailed description of the business, this is critical for the agent to understand the business and provide accurate results.",
|
|
137
|
+
value: "",
|
|
138
|
+
maxLength: 7500,
|
|
139
|
+
required: true,
|
|
140
|
+
rows: 5,
|
|
141
|
+
charCounter: true,
|
|
142
|
+
text: "Business Description",
|
|
143
|
+
},
|
|
144
|
+
]);
|
|
145
|
+
fundingSubscriptionPlan.changed("configuration", true);
|
|
146
|
+
await fundingSubscriptionPlan.save();
|
|
147
|
+
}
|
|
148
|
+
else {
|
|
149
|
+
console.log("FundingSubscriptionPlan not found");
|
|
150
|
+
}
|
|
67
151
|
}
|
|
68
152
|
setupAgentProductsConfiguration();
|