@venturialstd/workflow 0.1.162 → 0.1.163
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 +238 -238
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/modules/chatbot/actions/ask-question.action.d.ts +3 -0
- package/dist/modules/chatbot/actions/ask-question.action.d.ts.map +1 -0
- package/dist/modules/chatbot/actions/ask-question.action.js +42 -0
- package/dist/modules/chatbot/actions/ask-question.action.js.map +1 -0
- package/dist/modules/chatbot/actions/index.d.ts +4 -0
- package/dist/modules/chatbot/actions/index.d.ts.map +1 -0
- package/dist/modules/chatbot/actions/index.js +20 -0
- package/dist/modules/chatbot/actions/index.js.map +1 -0
- package/dist/modules/chatbot/actions/send-buttons.action.d.ts +3 -0
- package/dist/modules/chatbot/actions/send-buttons.action.d.ts.map +1 -0
- package/dist/modules/chatbot/actions/send-buttons.action.js +67 -0
- package/dist/modules/chatbot/actions/send-buttons.action.js.map +1 -0
- package/dist/modules/chatbot/actions/send-message.action.d.ts +3 -0
- package/dist/modules/chatbot/actions/send-message.action.d.ts.map +1 -0
- package/dist/modules/chatbot/actions/send-message.action.js +52 -0
- package/dist/modules/chatbot/actions/send-message.action.js.map +1 -0
- package/dist/modules/chatbot/chatbot-nest.module.d.ts +3 -0
- package/dist/modules/chatbot/chatbot-nest.module.d.ts.map +1 -0
- package/dist/modules/chatbot/chatbot-nest.module.js +21 -0
- package/dist/modules/chatbot/chatbot-nest.module.js.map +1 -0
- package/dist/modules/chatbot/chatbot.module.d.ts +3 -0
- package/dist/modules/chatbot/chatbot.module.d.ts.map +1 -0
- package/dist/modules/chatbot/chatbot.module.js +17 -0
- package/dist/modules/chatbot/chatbot.module.js.map +1 -0
- package/dist/modules/chatbot/credentials.d.ts +3 -0
- package/dist/modules/chatbot/credentials.d.ts.map +1 -0
- package/dist/modules/chatbot/credentials.js +5 -0
- package/dist/modules/chatbot/credentials.js.map +1 -0
- package/dist/modules/chatbot/services/ask-question.service.d.ts +5 -0
- package/dist/modules/chatbot/services/ask-question.service.d.ts.map +1 -0
- package/dist/modules/chatbot/services/ask-question.service.js +25 -0
- package/dist/modules/chatbot/services/ask-question.service.js.map +1 -0
- package/dist/modules/chatbot/services/index.d.ts +5 -0
- package/dist/modules/chatbot/services/index.d.ts.map +1 -0
- package/dist/modules/chatbot/services/index.js +21 -0
- package/dist/modules/chatbot/services/index.js.map +1 -0
- package/dist/modules/chatbot/services/send-buttons.service.d.ts +5 -0
- package/dist/modules/chatbot/services/send-buttons.service.d.ts.map +1 -0
- package/dist/modules/chatbot/services/send-buttons.service.js +25 -0
- package/dist/modules/chatbot/services/send-buttons.service.js.map +1 -0
- package/dist/modules/chatbot/services/send-message.service.d.ts +5 -0
- package/dist/modules/chatbot/services/send-message.service.d.ts.map +1 -0
- package/dist/modules/chatbot/services/send-message.service.js +27 -0
- package/dist/modules/chatbot/services/send-message.service.js.map +1 -0
- package/dist/modules/chatbot/services/user-responded.service.d.ts +5 -0
- package/dist/modules/chatbot/services/user-responded.service.d.ts.map +1 -0
- package/dist/modules/chatbot/services/user-responded.service.js +25 -0
- package/dist/modules/chatbot/services/user-responded.service.js.map +1 -0
- package/dist/modules/chatbot/triggers/index.d.ts +2 -0
- package/dist/modules/chatbot/triggers/index.d.ts.map +1 -0
- package/dist/modules/chatbot/triggers/index.js +18 -0
- package/dist/modules/chatbot/triggers/index.js.map +1 -0
- package/dist/modules/chatbot/triggers/user-responded.trigger.d.ts +3 -0
- package/dist/modules/chatbot/triggers/user-responded.trigger.d.ts.map +1 -0
- package/dist/modules/chatbot/triggers/user-responded.trigger.js +45 -0
- package/dist/modules/chatbot/triggers/user-responded.trigger.js.map +1 -0
- package/dist/modules/chatgpt/actions/chat-completion.action.d.ts.map +1 -1
- package/dist/modules/chatgpt/actions/chat-completion.action.js +27 -109
- package/dist/modules/chatgpt/actions/chat-completion.action.js.map +1 -1
- package/dist/modules/chatgpt/actions/chat-purpose.action.d.ts +3 -0
- package/dist/modules/chatgpt/actions/chat-purpose.action.d.ts.map +1 -0
- package/dist/modules/chatgpt/actions/chat-purpose.action.js +229 -0
- package/dist/modules/chatgpt/actions/chat-purpose.action.js.map +1 -0
- package/dist/modules/chatgpt/actions/create-embedding.action.d.ts.map +1 -1
- package/dist/modules/chatgpt/actions/create-embedding.action.js +10 -16
- package/dist/modules/chatgpt/actions/create-embedding.action.js.map +1 -1
- package/dist/modules/chatgpt/actions/generate-image.action.d.ts.map +1 -1
- package/dist/modules/chatgpt/actions/generate-image.action.js +19 -35
- package/dist/modules/chatgpt/actions/generate-image.action.js.map +1 -1
- package/dist/modules/chatgpt/actions/index.d.ts +1 -0
- package/dist/modules/chatgpt/actions/index.d.ts.map +1 -1
- package/dist/modules/chatgpt/actions/index.js +1 -0
- package/dist/modules/chatgpt/actions/index.js.map +1 -1
- package/dist/modules/chatgpt/actions/speech-to-text.action.d.ts.map +1 -1
- package/dist/modules/chatgpt/actions/speech-to-text.action.js +18 -31
- package/dist/modules/chatgpt/actions/speech-to-text.action.js.map +1 -1
- package/dist/modules/chatgpt/actions/text-to-speech.action.d.ts.map +1 -1
- package/dist/modules/chatgpt/actions/text-to-speech.action.js +15 -32
- package/dist/modules/chatgpt/actions/text-to-speech.action.js.map +1 -1
- package/dist/modules/chatgpt/auth/chatgpt-auth.service.d.ts +3 -0
- package/dist/modules/chatgpt/auth/chatgpt-auth.service.d.ts.map +1 -1
- package/dist/modules/chatgpt/auth/chatgpt-auth.service.js +33 -36
- package/dist/modules/chatgpt/auth/chatgpt-auth.service.js.map +1 -1
- package/dist/modules/chatgpt/auth/index.d.ts +2 -0
- package/dist/modules/chatgpt/auth/index.d.ts.map +1 -0
- package/dist/modules/chatgpt/auth/index.js +6 -0
- package/dist/modules/chatgpt/auth/index.js.map +1 -0
- package/dist/modules/chatgpt/chatgpt-nest.module.d.ts.map +1 -1
- package/dist/modules/chatgpt/chatgpt-nest.module.js +9 -6
- package/dist/modules/chatgpt/chatgpt-nest.module.js.map +1 -1
- package/dist/modules/chatgpt/chatgpt.module.d.ts.map +1 -1
- package/dist/modules/chatgpt/chatgpt.module.js +3 -2
- package/dist/modules/chatgpt/chatgpt.module.js.map +1 -1
- package/dist/modules/chatgpt/services/chat-completion.service.d.ts +2 -4
- package/dist/modules/chatgpt/services/chat-completion.service.d.ts.map +1 -1
- package/dist/modules/chatgpt/services/chat-completion.service.js +21 -100
- package/dist/modules/chatgpt/services/chat-completion.service.js.map +1 -1
- package/dist/modules/chatgpt/services/chat-purpose.service.d.ts +24 -0
- package/dist/modules/chatgpt/services/chat-purpose.service.d.ts.map +1 -0
- package/dist/modules/chatgpt/services/chat-purpose.service.js +396 -0
- package/dist/modules/chatgpt/services/chat-purpose.service.js.map +1 -0
- package/dist/modules/chatgpt/services/index.d.ts +1 -0
- package/dist/modules/chatgpt/services/index.d.ts.map +1 -1
- package/dist/modules/chatgpt/services/index.js +1 -0
- package/dist/modules/chatgpt/services/index.js.map +1 -1
- package/dist/modules/chatgpt/types/purpose-memory.types.d.ts +38 -0
- package/dist/modules/chatgpt/types/purpose-memory.types.d.ts.map +1 -0
- package/dist/modules/chatgpt/types/purpose-memory.types.js +28 -0
- package/dist/modules/chatgpt/types/purpose-memory.types.js.map +1 -0
- package/dist/modules/chatgpt/utils/purpose-cache-key.util.d.ts +5 -0
- package/dist/modules/chatgpt/utils/purpose-cache-key.util.d.ts.map +1 -0
- package/dist/modules/chatgpt/utils/purpose-cache-key.util.js +15 -0
- package/dist/modules/chatgpt/utils/purpose-cache-key.util.js.map +1 -0
- package/dist/modules/chatgpt/utils/purpose-schema.validator.d.ts +2 -0
- package/dist/modules/chatgpt/utils/purpose-schema.validator.d.ts.map +1 -0
- package/dist/modules/chatgpt/utils/purpose-schema.validator.js +34 -0
- package/dist/modules/chatgpt/utils/purpose-schema.validator.js.map +1 -0
- package/dist/modules/chatgpt/utils/token-estimate.util.d.ts +7 -0
- package/dist/modules/chatgpt/utils/token-estimate.util.d.ts.map +1 -0
- package/dist/modules/chatgpt/utils/token-estimate.util.js +20 -0
- package/dist/modules/chatgpt/utils/token-estimate.util.js.map +1 -0
- package/dist/modules/index.d.ts +1 -0
- package/dist/modules/index.d.ts.map +1 -1
- package/dist/modules/index.js +5 -1
- package/dist/modules/index.js.map +1 -1
- package/dist/workflow.module.d.ts.map +1 -1
- package/dist/workflow.module.js +3 -0
- package/dist/workflow.module.js.map +1 -1
- package/package.json +119 -118
- package/dist/modules/chatgpt/constants/chatgpt-completion.constants.d.ts +0 -4
- package/dist/modules/chatgpt/constants/chatgpt-completion.constants.d.ts.map +0 -1
- package/dist/modules/chatgpt/constants/chatgpt-completion.constants.js +0 -32
- package/dist/modules/chatgpt/constants/chatgpt-completion.constants.js.map +0 -1
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.validateWithJsonSchema = validateWithJsonSchema;
|
|
7
|
+
const ajv_1 = __importDefault(require("ajv"));
|
|
8
|
+
const ajv = new ajv_1.default({ allErrors: true, strict: false });
|
|
9
|
+
function validateWithJsonSchema(data, schema) {
|
|
10
|
+
if (schema == null || typeof schema !== 'object')
|
|
11
|
+
return null;
|
|
12
|
+
try {
|
|
13
|
+
const normalized = normalizeSchema(schema);
|
|
14
|
+
const validate = ajv.compile(normalized);
|
|
15
|
+
const valid = validate(data);
|
|
16
|
+
if (valid)
|
|
17
|
+
return null;
|
|
18
|
+
const errors = validate.errors;
|
|
19
|
+
if (!errors || errors.length === 0)
|
|
20
|
+
return 'Validation failed';
|
|
21
|
+
return errors.map((e) => `${e.instancePath || '/'} ${e.message}`).join('; ');
|
|
22
|
+
}
|
|
23
|
+
catch (err) {
|
|
24
|
+
return err instanceof Error ? err.message : 'Schema validation error';
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
function normalizeSchema(schema) {
|
|
28
|
+
const out = { ...schema };
|
|
29
|
+
if (!out.type && (out.properties || out.required)) {
|
|
30
|
+
out.type = 'object';
|
|
31
|
+
}
|
|
32
|
+
return out;
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=purpose-schema.validator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"purpose-schema.validator.js","sourceRoot":"","sources":["../../../../src/modules/chatgpt/utils/purpose-schema.validator.ts"],"names":[],"mappings":";;;;;AASA,wDAiBC;AA1BD,8CAAsB;AAEtB,MAAM,GAAG,GAAG,IAAI,aAAG,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC;AAOxD,SAAgB,sBAAsB,CACpC,IAAa,EACb,MAA+B;IAE/B,IAAI,MAAM,IAAI,IAAI,IAAI,OAAO,MAAM,KAAK,QAAQ;QAAE,OAAO,IAAI,CAAC;IAE9D,IAAI,CAAC;QACH,MAAM,UAAU,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC;QAC3C,MAAM,QAAQ,GAAG,GAAG,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;QACzC,MAAM,KAAK,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;QAC7B,IAAI,KAAK;YAAE,OAAO,IAAI,CAAC;QACvB,MAAM,MAAM,GAAG,QAAQ,CAAC,MAAM,CAAC;QAC/B,IAAI,CAAC,MAAM,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;YAAE,OAAO,mBAAmB,CAAC;QAC/D,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,CAAC,YAAY,IAAI,GAAG,IAAI,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC/E,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,OAAO,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,yBAAyB,CAAC;IACxE,CAAC;AACH,CAAC;AAED,SAAS,eAAe,CAAC,MAA+B;IACtD,MAAM,GAAG,GAAG,EAAE,GAAG,MAAM,EAAE,CAAC;IAC1B,IAAI,CAAC,GAAG,CAAC,IAAI,IAAI,CAAC,GAAG,CAAC,UAAU,IAAI,GAAG,CAAC,QAAQ,CAAC,EAAE,CAAC;QAClD,GAAG,CAAC,IAAI,GAAG,QAAQ,CAAC;IACtB,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"token-estimate.util.d.ts","sourceRoot":"","sources":["../../../../src/modules/chatgpt/utils/token-estimate.util.ts"],"names":[],"mappings":"AAMA,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAGnD;AAED,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,KAAK,CAAC;IAAE,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,GAAG,MAAM,CAQrH"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.estimateTokens = estimateTokens;
|
|
4
|
+
exports.estimateMessagesTokens = estimateMessagesTokens;
|
|
5
|
+
const CHARS_PER_TOKEN_ESTIMATE = 4;
|
|
6
|
+
function estimateTokens(text) {
|
|
7
|
+
if (!text || typeof text !== 'string')
|
|
8
|
+
return 0;
|
|
9
|
+
return Math.ceil(text.length / CHARS_PER_TOKEN_ESTIMATE);
|
|
10
|
+
}
|
|
11
|
+
function estimateMessagesTokens(messages) {
|
|
12
|
+
let total = 0;
|
|
13
|
+
for (const m of messages) {
|
|
14
|
+
const text = (m.content ?? m.message ?? '');
|
|
15
|
+
total += estimateTokens(text);
|
|
16
|
+
total += 4;
|
|
17
|
+
}
|
|
18
|
+
return total;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=token-estimate.util.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"token-estimate.util.js","sourceRoot":"","sources":["../../../../src/modules/chatgpt/utils/token-estimate.util.ts"],"names":[],"mappings":";;AAMA,wCAGC;AAED,wDAQC;AAfD,MAAM,wBAAwB,GAAG,CAAC,CAAC;AAEnC,SAAgB,cAAc,CAAC,IAAY;IACzC,IAAI,CAAC,IAAI,IAAI,OAAO,IAAI,KAAK,QAAQ;QAAE,OAAO,CAAC,CAAC;IAChD,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,wBAAwB,CAAC,CAAC;AAC3D,CAAC;AAED,SAAgB,sBAAsB,CAAC,QAAsE;IAC3G,IAAI,KAAK,GAAG,CAAC,CAAC;IACd,KAAK,MAAM,CAAC,IAAI,QAAQ,EAAE,CAAC;QACzB,MAAM,IAAI,GAAG,CAAC,CAAC,CAAC,OAAO,IAAI,CAAC,CAAC,OAAO,IAAI,EAAE,CAAW,CAAC;QACtD,KAAK,IAAI,cAAc,CAAC,IAAI,CAAC,CAAC;QAC9B,KAAK,IAAI,CAAC,CAAC;IACb,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC"}
|
package/dist/modules/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from './types';
|
|
2
2
|
export { aiModule } from './ai/ai.module';
|
|
3
3
|
export { capaModule } from './capa/capa.module';
|
|
4
|
+
export { chatbotModule } from './chatbot/chatbot.module';
|
|
4
5
|
export { chatgptModule } from './chatgpt/chatgpt.module';
|
|
5
6
|
export { circleModule } from './circle/circle.module';
|
|
6
7
|
export { conditionalModule } from './conditional/conditional.module';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/modules/index.ts"],"names":[],"mappings":"AAyFA,cAAc,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/modules/index.ts"],"names":[],"mappings":"AAyFA,cAAc,SAAS,CAAC;AAiDxB,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC"}
|
package/dist/modules/index.js
CHANGED
|
@@ -36,7 +36,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
36
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.webhookModule = exports.vcardModule = exports.validationModule = exports.userModule = exports.twilioModule = exports.toolboxModule = exports.slackModule = exports.sessionModule = exports.scheduleModule = exports.kycModule = exports.kiraModule = exports.inbestgoModule = exports.fintechModule = exports.eventsModule = exports.emailModule = exports.conditionalModule = exports.circleModule = exports.chatgptModule = exports.capaModule = exports.aiModule = void 0;
|
|
39
|
+
exports.webhookModule = exports.vcardModule = exports.validationModule = exports.userModule = exports.twilioModule = exports.toolboxModule = exports.slackModule = exports.sessionModule = exports.scheduleModule = exports.kycModule = exports.kiraModule = exports.inbestgoModule = exports.fintechModule = exports.eventsModule = exports.emailModule = exports.conditionalModule = exports.circleModule = exports.chatgptModule = exports.chatbotModule = exports.capaModule = exports.aiModule = void 0;
|
|
40
40
|
const fs = __importStar(require("fs"));
|
|
41
41
|
const path = __importStar(require("path"));
|
|
42
42
|
const types_1 = require("./types");
|
|
@@ -101,6 +101,7 @@ registerModules().catch((error) => {
|
|
|
101
101
|
__exportStar(require("./types"), exports);
|
|
102
102
|
const ai_module_1 = require("./ai/ai.module");
|
|
103
103
|
const capa_module_1 = require("./capa/capa.module");
|
|
104
|
+
const chatbot_module_1 = require("./chatbot/chatbot.module");
|
|
104
105
|
const chatgpt_module_1 = require("./chatgpt/chatgpt.module");
|
|
105
106
|
const circle_module_1 = require("./circle/circle.module");
|
|
106
107
|
const conditional_module_1 = require("./conditional/conditional.module");
|
|
@@ -121,6 +122,7 @@ const vcard_module_1 = require("./vcard/vcard.module");
|
|
|
121
122
|
const webhook_module_1 = require("./webhook/webhook.module");
|
|
122
123
|
types_1.workflowModuleRegistry.register(ai_module_1.aiModule);
|
|
123
124
|
types_1.workflowModuleRegistry.register(capa_module_1.capaModule);
|
|
125
|
+
types_1.workflowModuleRegistry.register(chatbot_module_1.chatbotModule);
|
|
124
126
|
types_1.workflowModuleRegistry.register(chatgpt_module_1.chatgptModule);
|
|
125
127
|
types_1.workflowModuleRegistry.register(circle_module_1.circleModule);
|
|
126
128
|
types_1.workflowModuleRegistry.register(conditional_module_1.conditionalModule);
|
|
@@ -143,6 +145,8 @@ var ai_module_2 = require("./ai/ai.module");
|
|
|
143
145
|
Object.defineProperty(exports, "aiModule", { enumerable: true, get: function () { return ai_module_2.aiModule; } });
|
|
144
146
|
var capa_module_2 = require("./capa/capa.module");
|
|
145
147
|
Object.defineProperty(exports, "capaModule", { enumerable: true, get: function () { return capa_module_2.capaModule; } });
|
|
148
|
+
var chatbot_module_2 = require("./chatbot/chatbot.module");
|
|
149
|
+
Object.defineProperty(exports, "chatbotModule", { enumerable: true, get: function () { return chatbot_module_2.chatbotModule; } });
|
|
146
150
|
var chatgpt_module_2 = require("./chatgpt/chatgpt.module");
|
|
147
151
|
Object.defineProperty(exports, "chatgptModule", { enumerable: true, get: function () { return chatgpt_module_2.chatgptModule; } });
|
|
148
152
|
var circle_module_2 = require("./circle/circle.module");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/modules/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AACzB,2CAA6B;AAE7B,mCAA2E;AAO3E,KAAK,UAAU,eAAe;IAC5B,MAAM,UAAU,GAAG,SAAS,CAAC;IAG7B,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC,EAAE,CAAC;QAC/B,OAAO,CAAC,IAAI,CAAC,gCAAgC,UAAU,EAAE,CAAC,CAAC;QAC3D,OAAO;IACT,CAA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":"workflow.module.d.ts","sourceRoot":"","sources":["../src/workflow.module.ts"],"names":[],"mappings":"AACA,OAAO,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"workflow.module.d.ts","sourceRoot":"","sources":["../src/workflow.module.ts"],"names":[],"mappings":"AACA,OAAO,WAAW,CAAC;AA4BnB,qBAmDa,cAAc;CAAG"}
|
package/dist/workflow.module.js
CHANGED
|
@@ -12,6 +12,7 @@ const common_1 = require("@nestjs/common");
|
|
|
12
12
|
const core_1 = require("@venturialstd/core");
|
|
13
13
|
const ai_nest_module_1 = require("./modules/ai/ai-nest.module");
|
|
14
14
|
const capa_nest_module_1 = require("./modules/capa/capa-nest.module");
|
|
15
|
+
const chatbot_nest_module_1 = require("./modules/chatbot/chatbot-nest.module");
|
|
15
16
|
const chatgpt_nest_module_1 = require("./modules/chatgpt/chatgpt-nest.module");
|
|
16
17
|
const circle_nest_module_1 = require("./modules/circle/circle-nest.module");
|
|
17
18
|
const conditional_nest_module_1 = require("./modules/conditional/conditional-nest.module");
|
|
@@ -41,6 +42,7 @@ exports.WorkflowModule = WorkflowModule = __decorate([
|
|
|
41
42
|
workflow_core_module_1.WorkflowCoreModule,
|
|
42
43
|
ai_nest_module_1.AiNestModule,
|
|
43
44
|
capa_nest_module_1.CapaNestModule,
|
|
45
|
+
chatbot_nest_module_1.ChatbotNestModule,
|
|
44
46
|
chatgpt_nest_module_1.ChatGptNestModule,
|
|
45
47
|
circle_nest_module_1.CircleNestModule,
|
|
46
48
|
conditional_nest_module_1.ConditionalNestModule,
|
|
@@ -64,6 +66,7 @@ exports.WorkflowModule = WorkflowModule = __decorate([
|
|
|
64
66
|
workflow_core_module_1.WorkflowCoreModule,
|
|
65
67
|
ai_nest_module_1.AiNestModule,
|
|
66
68
|
capa_nest_module_1.CapaNestModule,
|
|
69
|
+
chatbot_nest_module_1.ChatbotNestModule,
|
|
67
70
|
chatgpt_nest_module_1.ChatGptNestModule,
|
|
68
71
|
circle_nest_module_1.CircleNestModule,
|
|
69
72
|
conditional_nest_module_1.ConditionalNestModule,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow.module.js","sourceRoot":"","sources":["../src/workflow.module.ts"],"names":[],"mappings":";;;;;;;;;AACA,qBAAmB;AAEnB,2CAAwC;AACxC,6CAAkD;AAElD,gEAA2D;AAC3D,sEAAiE;AACjE,+EAA0E;AAC1E,4EAAuE;AACvE,2FAAsF;AACtF,yEAAoE;AACpE,4EAAuE;AACvE,+EAA0E;AAC1E,kFAA6E;AAC7E,sEAAiE;AACjE,mEAA8D;AAC9D,+EAA0E;AAC1E,yEAAoE;AACpE,+EAA0E;AAC1E,4EAAuE;AACvE,sEAAiE;AACjE,wFAAmF;AACnF,yEAAoE;AACpE,+EAA0E;AAC1E,iEAA4D;AAC5D,sEAAiE;
|
|
1
|
+
{"version":3,"file":"workflow.module.js","sourceRoot":"","sources":["../src/workflow.module.ts"],"names":[],"mappings":";;;;;;;;;AACA,qBAAmB;AAEnB,2CAAwC;AACxC,6CAAkD;AAElD,gEAA2D;AAC3D,sEAAiE;AACjE,+EAA0E;AAC1E,+EAA0E;AAC1E,4EAAuE;AACvE,2FAAsF;AACtF,yEAAoE;AACpE,4EAAuE;AACvE,+EAA0E;AAC1E,kFAA6E;AAC7E,sEAAiE;AACjE,mEAA8D;AAC9D,+EAA0E;AAC1E,yEAAoE;AACpE,+EAA0E;AAC1E,4EAAuE;AACvE,sEAAiE;AACjE,wFAAmF;AACnF,yEAAoE;AACpE,+EAA0E;AAC1E,iEAA4D;AAC5D,sEAAiE;AAqD1D,IAAM,cAAc,GAApB,MAAM,cAAc;CAAG,CAAA;AAAjB,wCAAc;yBAAd,cAAc;IAnD1B,IAAA,eAAM,EAAC;QACN,OAAO,EAAE;YACP,mBAAY;YACZ,yCAAkB;YAClB,6BAAY;YACZ,iCAAc;YACd,uCAAiB;YACjB,uCAAiB;YACjB,qCAAgB;YAChB,+CAAqB;YACrB,mCAAe;YACf,qCAAgB;YAChB,uCAAiB;YACjB,yCAAkB;YAClB,iCAAc;YACd,+BAAa;YACb,uCAAiB;YACjB,mCAAe;YACf,uCAAiB;YACjB,qCAAgB;YAChB,iCAAc;YACd,6CAAoB;YACpB,mCAAe;YACf,uCAAiB;YACjB,iCAAc;SACf;QACD,OAAO,EAAE;YACP,yCAAkB;YAClB,6BAAY;YACZ,iCAAc;YACd,uCAAiB;YACjB,uCAAiB;YACjB,qCAAgB;YAChB,+CAAqB;YACrB,mCAAe;YACf,qCAAgB;YAChB,uCAAiB;YACjB,yCAAkB;YAClB,iCAAc;YACd,+BAAa;YACb,uCAAiB;YACjB,mCAAe;YACf,uCAAiB;YACjB,qCAAgB;YAChB,iCAAc;YACd,6CAAoB;YACpB,mCAAe;YACf,uCAAiB;YACjB,iCAAc;SACf;KACF,CAAC;GACW,cAAc,CAAG"}
|
package/package.json
CHANGED
|
@@ -1,118 +1,119 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@venturialstd/workflow",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "Workflow Module for Venturial",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"types": "dist/index.d.ts",
|
|
7
|
-
"type": "commonjs",
|
|
8
|
-
"files": [
|
|
9
|
-
"dist"
|
|
10
|
-
],
|
|
11
|
-
"publishConfig": {
|
|
12
|
-
"access": "public"
|
|
13
|
-
},
|
|
14
|
-
"scripts": {
|
|
15
|
-
"prebuild": "rimraf dist",
|
|
16
|
-
"build": "tsc -p tsconfig.json",
|
|
17
|
-
"prepublishOnly": "npm run build",
|
|
18
|
-
"release:patch": "npm run build && npm version patch --no-git-tag-version && npm publish",
|
|
19
|
-
"test:dev": "ts-node -r tsconfig-paths/register test/main.ts",
|
|
20
|
-
"test:watch": "nodemon --watch src --watch test --ext ts --exec npm run test:dev",
|
|
21
|
-
"migration:generate": "ts-node node_modules/.bin/typeorm migration:generate -d test/data-source.ts test/migrations/$npm_config_name",
|
|
22
|
-
"migration:run": "ts-node node_modules/.bin/typeorm migration:run -d test/data-source.ts",
|
|
23
|
-
"migration:revert": "ts-node node_modules/.bin/typeorm migration:revert -d test/data-source.ts"
|
|
24
|
-
},
|
|
25
|
-
"devDependencies": {
|
|
26
|
-
"@dataui/crud": "^5.3.4",
|
|
27
|
-
"@dataui/crud-request": "^5.3.4",
|
|
28
|
-
"@dataui/crud-typeorm": "^5.3.4",
|
|
29
|
-
"@keyv/redis": "^4.2.0",
|
|
30
|
-
"@nestjs/cache-manager": "^3.0.0",
|
|
31
|
-
"@nestjs/common": "^11.0.11",
|
|
32
|
-
"@nestjs/config": "^4.0.0",
|
|
33
|
-
"@nestjs/core": "^11.0.5",
|
|
34
|
-
"@nestjs/jwt": "^11.0.0",
|
|
35
|
-
"@nestjs/passport": "^11.0.5",
|
|
36
|
-
"@nestjs/platform-express": "^11.0.5",
|
|
37
|
-
"@nestjs/platform-socket.io": "^11.0.0",
|
|
38
|
-
"@nestjs/websockets": "^11.0.0",
|
|
39
|
-
"socket.io": "^4.8.0",
|
|
40
|
-
"@nestjs/swagger": "^11.0.3",
|
|
41
|
-
"@nestjs/typeorm": "^11.0.0",
|
|
42
|
-
"@types/express": "^4.17.25",
|
|
43
|
-
"@types/node": "^20.0.0",
|
|
44
|
-
"@venturialstd/core": "^1.0.16",
|
|
45
|
-
"bcrypt": "^5.1.1",
|
|
46
|
-
"cache-manager": "^6.4.0",
|
|
47
|
-
"class-transformer": "^0.5.1",
|
|
48
|
-
"class-validator": "^0.14.1",
|
|
49
|
-
"dotenv": "^17.2.3",
|
|
50
|
-
"express": "^5.2.1",
|
|
51
|
-
"glob": "^13.0.0",
|
|
52
|
-
"joi": "^17.13.3",
|
|
53
|
-
"jwks-rsa": "^3.1.0",
|
|
54
|
-
"lodash": "^4.17.21",
|
|
55
|
-
"nodemon": "^3.0.0",
|
|
56
|
-
"passport": "^0.7.0",
|
|
57
|
-
"passport-auth0": "^1.4.4",
|
|
58
|
-
"passport-jwt": "^4.0.1",
|
|
59
|
-
"passport-local": "^1.0.0",
|
|
60
|
-
"rxjs": "^7.8.1",
|
|
61
|
-
"ts-node": "^10.9.0",
|
|
62
|
-
"tsconfig-paths": "^4.2.0",
|
|
63
|
-
"typeorm": "^0.3.20",
|
|
64
|
-
"typescript": "^5.9.3",
|
|
65
|
-
"uuid": "^11.0.5",
|
|
66
|
-
"winston": "^3.17.0"
|
|
67
|
-
},
|
|
68
|
-
"peerDependencies": {
|
|
69
|
-
"@dataui/crud": "^5.3.4",
|
|
70
|
-
"@dataui/crud-request": "^5.3.4",
|
|
71
|
-
"@dataui/crud-typeorm": "^5.3.4",
|
|
72
|
-
"@nestjs/cache-manager": "^3.0.0",
|
|
73
|
-
"@nestjs/common": "^11.0.11",
|
|
74
|
-
"@nestjs/config": "^4.0.0",
|
|
75
|
-
"@nestjs/core": "^11.0.5",
|
|
76
|
-
"@nestjs/event-emitter": "^3.0.1",
|
|
77
|
-
"@nestjs/jwt": "^11.0.0",
|
|
78
|
-
"@nestjs/passport": "^11.0.5",
|
|
79
|
-
"@nestjs/swagger": "^11.0.3",
|
|
80
|
-
"@nestjs/typeorm": "^11.0.0",
|
|
81
|
-
"@nestjs/platform-socket.io": "^11.0.0",
|
|
82
|
-
"@nestjs/websockets": "^11.0.0",
|
|
83
|
-
"socket.io": "^4.8.0",
|
|
84
|
-
"@venturialstd/capa": "^0.0.6",
|
|
85
|
-
"@venturialstd/chatgpt": "^0.0.
|
|
86
|
-
"@venturialstd/circle": "^0.0.7",
|
|
87
|
-
"@venturialstd/core": "^1.0.16",
|
|
88
|
-
"@venturialstd/email": "^0.0.2",
|
|
89
|
-
"@venturialstd/fintech": "^0.0.16",
|
|
90
|
-
"@venturialstd/inbestgo": "^0.0.4",
|
|
91
|
-
"@venturialstd/jira": "^0.1.35",
|
|
92
|
-
"@venturialstd/kira": "^0.0.1",
|
|
93
|
-
"@venturialstd/kyc": "^0.0.6",
|
|
94
|
-
"@venturialstd/slack": "^0.1.31",
|
|
95
|
-
"@venturialstd/user": "^0.0.3",
|
|
96
|
-
"@venturialstd/toolbox": "^0.0.1",
|
|
97
|
-
"@venturialstd/twilio": "^0.0.4",
|
|
98
|
-
"bcrypt": "^5.1.1",
|
|
99
|
-
"cache-manager": "^6.4.0",
|
|
100
|
-
"class-transformer": "^0.5.1",
|
|
101
|
-
"class-validator": "^0.14.1",
|
|
102
|
-
"jwks-rsa": "^3.1.0",
|
|
103
|
-
"passport": "^0.7.0",
|
|
104
|
-
"passport-auth0": "^1.4.0",
|
|
105
|
-
"passport-jwt": "^4.0.1",
|
|
106
|
-
"passport-local": "^1.0.0",
|
|
107
|
-
"rxjs": "^7.8.1",
|
|
108
|
-
"typeorm": "^0.3.20",
|
|
109
|
-
"uuid": "^11.0.5"
|
|
110
|
-
},
|
|
111
|
-
"dependencies": {
|
|
112
|
-
"
|
|
113
|
-
"
|
|
114
|
-
"
|
|
115
|
-
"
|
|
116
|
-
"
|
|
117
|
-
|
|
118
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@venturialstd/workflow",
|
|
3
|
+
"version": "0.1.163",
|
|
4
|
+
"description": "Workflow Module for Venturial",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"type": "commonjs",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist"
|
|
10
|
+
],
|
|
11
|
+
"publishConfig": {
|
|
12
|
+
"access": "public"
|
|
13
|
+
},
|
|
14
|
+
"scripts": {
|
|
15
|
+
"prebuild": "rimraf dist",
|
|
16
|
+
"build": "tsc -p tsconfig.json",
|
|
17
|
+
"prepublishOnly": "npm run build",
|
|
18
|
+
"release:patch": "npm run build && npm version patch --no-git-tag-version && npm publish",
|
|
19
|
+
"test:dev": "ts-node -r tsconfig-paths/register test/main.ts",
|
|
20
|
+
"test:watch": "nodemon --watch src --watch test --ext ts --exec npm run test:dev",
|
|
21
|
+
"migration:generate": "ts-node node_modules/.bin/typeorm migration:generate -d test/data-source.ts test/migrations/$npm_config_name",
|
|
22
|
+
"migration:run": "ts-node node_modules/.bin/typeorm migration:run -d test/data-source.ts",
|
|
23
|
+
"migration:revert": "ts-node node_modules/.bin/typeorm migration:revert -d test/data-source.ts"
|
|
24
|
+
},
|
|
25
|
+
"devDependencies": {
|
|
26
|
+
"@dataui/crud": "^5.3.4",
|
|
27
|
+
"@dataui/crud-request": "^5.3.4",
|
|
28
|
+
"@dataui/crud-typeorm": "^5.3.4",
|
|
29
|
+
"@keyv/redis": "^4.2.0",
|
|
30
|
+
"@nestjs/cache-manager": "^3.0.0",
|
|
31
|
+
"@nestjs/common": "^11.0.11",
|
|
32
|
+
"@nestjs/config": "^4.0.0",
|
|
33
|
+
"@nestjs/core": "^11.0.5",
|
|
34
|
+
"@nestjs/jwt": "^11.0.0",
|
|
35
|
+
"@nestjs/passport": "^11.0.5",
|
|
36
|
+
"@nestjs/platform-express": "^11.0.5",
|
|
37
|
+
"@nestjs/platform-socket.io": "^11.0.0",
|
|
38
|
+
"@nestjs/websockets": "^11.0.0",
|
|
39
|
+
"socket.io": "^4.8.0",
|
|
40
|
+
"@nestjs/swagger": "^11.0.3",
|
|
41
|
+
"@nestjs/typeorm": "^11.0.0",
|
|
42
|
+
"@types/express": "^4.17.25",
|
|
43
|
+
"@types/node": "^20.0.0",
|
|
44
|
+
"@venturialstd/core": "^1.0.16",
|
|
45
|
+
"bcrypt": "^5.1.1",
|
|
46
|
+
"cache-manager": "^6.4.0",
|
|
47
|
+
"class-transformer": "^0.5.1",
|
|
48
|
+
"class-validator": "^0.14.1",
|
|
49
|
+
"dotenv": "^17.2.3",
|
|
50
|
+
"express": "^5.2.1",
|
|
51
|
+
"glob": "^13.0.0",
|
|
52
|
+
"joi": "^17.13.3",
|
|
53
|
+
"jwks-rsa": "^3.1.0",
|
|
54
|
+
"lodash": "^4.17.21",
|
|
55
|
+
"nodemon": "^3.0.0",
|
|
56
|
+
"passport": "^0.7.0",
|
|
57
|
+
"passport-auth0": "^1.4.4",
|
|
58
|
+
"passport-jwt": "^4.0.1",
|
|
59
|
+
"passport-local": "^1.0.0",
|
|
60
|
+
"rxjs": "^7.8.1",
|
|
61
|
+
"ts-node": "^10.9.0",
|
|
62
|
+
"tsconfig-paths": "^4.2.0",
|
|
63
|
+
"typeorm": "^0.3.20",
|
|
64
|
+
"typescript": "^5.9.3",
|
|
65
|
+
"uuid": "^11.0.5",
|
|
66
|
+
"winston": "^3.17.0"
|
|
67
|
+
},
|
|
68
|
+
"peerDependencies": {
|
|
69
|
+
"@dataui/crud": "^5.3.4",
|
|
70
|
+
"@dataui/crud-request": "^5.3.4",
|
|
71
|
+
"@dataui/crud-typeorm": "^5.3.4",
|
|
72
|
+
"@nestjs/cache-manager": "^3.0.0",
|
|
73
|
+
"@nestjs/common": "^11.0.11",
|
|
74
|
+
"@nestjs/config": "^4.0.0",
|
|
75
|
+
"@nestjs/core": "^11.0.5",
|
|
76
|
+
"@nestjs/event-emitter": "^3.0.1",
|
|
77
|
+
"@nestjs/jwt": "^11.0.0",
|
|
78
|
+
"@nestjs/passport": "^11.0.5",
|
|
79
|
+
"@nestjs/swagger": "^11.0.3",
|
|
80
|
+
"@nestjs/typeorm": "^11.0.0",
|
|
81
|
+
"@nestjs/platform-socket.io": "^11.0.0",
|
|
82
|
+
"@nestjs/websockets": "^11.0.0",
|
|
83
|
+
"socket.io": "^4.8.0",
|
|
84
|
+
"@venturialstd/capa": "^0.0.6",
|
|
85
|
+
"@venturialstd/chatgpt": "^0.0.7",
|
|
86
|
+
"@venturialstd/circle": "^0.0.7",
|
|
87
|
+
"@venturialstd/core": "^1.0.16",
|
|
88
|
+
"@venturialstd/email": "^0.0.2",
|
|
89
|
+
"@venturialstd/fintech": "^0.0.16",
|
|
90
|
+
"@venturialstd/inbestgo": "^0.0.4",
|
|
91
|
+
"@venturialstd/jira": "^0.1.35",
|
|
92
|
+
"@venturialstd/kira": "^0.0.1",
|
|
93
|
+
"@venturialstd/kyc": "^0.0.6",
|
|
94
|
+
"@venturialstd/slack": "^0.1.31",
|
|
95
|
+
"@venturialstd/user": "^0.0.3",
|
|
96
|
+
"@venturialstd/toolbox": "^0.0.1",
|
|
97
|
+
"@venturialstd/twilio": "^0.0.4",
|
|
98
|
+
"bcrypt": "^5.1.1",
|
|
99
|
+
"cache-manager": "^6.4.0",
|
|
100
|
+
"class-transformer": "^0.5.1",
|
|
101
|
+
"class-validator": "^0.14.1",
|
|
102
|
+
"jwks-rsa": "^3.1.0",
|
|
103
|
+
"passport": "^0.7.0",
|
|
104
|
+
"passport-auth0": "^1.4.0",
|
|
105
|
+
"passport-jwt": "^4.0.1",
|
|
106
|
+
"passport-local": "^1.0.0",
|
|
107
|
+
"rxjs": "^7.8.1",
|
|
108
|
+
"typeorm": "^0.3.20",
|
|
109
|
+
"uuid": "^11.0.5"
|
|
110
|
+
},
|
|
111
|
+
"dependencies": {
|
|
112
|
+
"ajv": "^8.17.1",
|
|
113
|
+
"bullmq": "^5.67.2",
|
|
114
|
+
"cron-parser": "^4.9.0",
|
|
115
|
+
"ioredis": "^5.9.2",
|
|
116
|
+
"libphonenumber-js": "^1.12.34",
|
|
117
|
+
"pg": "^8.16.3"
|
|
118
|
+
}
|
|
119
|
+
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export declare const CHATGPT_COMPLETION_CONSTANTS: {
|
|
2
|
-
readonly SYSTEM_INSTRUCTIONS: "You are a helpful AI assistant. Your responses MUST be in JSON format WITHOUT markdown, just the raw JSON.\n IMPORTANT RULES:\n - Always respond in valid JSON format\n - Do NOT use markdown code blocks (no ```json```)\n - The response must be a JSON object with the following structure:\n - You will ask the user for their name, email, phone, and status.\n - You will then extract the data from the user's response and store it in the \"output\" field.\n - You will then return the JSON object with the \"event\" field set to \"IN_PROGRESS\" and the \"output\" field containing the data.\n - You will ask again till the user fill all the fields.\n - If the user responds with \"END\", you will set the \"event\" field to \"END\" and return the JSON object.\n - If the user responds with something else, you will set the \"event\" field to \"IN_PROGRESS\", ask again the missing fields and return the JSON object.\n - If the user responds correctly all the fields, you will set the \"event\" field to \"END\" and return the JSON object.\n {\n \"event\": \"IN_PROGRESS\" | \"END\",\n \"aiMessage\": \"Your response message here\",\n \"output\": {\n \"name\": \"John Doe\",\n \"email\": \"john@example.com\",\n \"phone\": \"+1234567890\",\n \"status\": \"active\"\n }\n }\n - The \"event\" field indicates conversation state: \"IN_PROGRESS\" for ongoing, \"END\" for completed\n - The \"aiMessage\" field contains your response to the user\n - The \"output\" field contains structured data extracted from the conversation\n - Use placeholder values when data is not available (e.g., \"N/A\", \"pending\", \"unknown\")";
|
|
3
|
-
};
|
|
4
|
-
//# sourceMappingURL=chatgpt-completion.constants.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chatgpt-completion.constants.d.ts","sourceRoot":"","sources":["../../../../src/modules/chatgpt/constants/chatgpt-completion.constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,4BAA4B;;CA2B3B,CAAC"}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CHATGPT_COMPLETION_CONSTANTS = void 0;
|
|
4
|
-
exports.CHATGPT_COMPLETION_CONSTANTS = {
|
|
5
|
-
SYSTEM_INSTRUCTIONS: `You are a helpful AI assistant. Your responses MUST be in JSON format WITHOUT markdown, just the raw JSON.
|
|
6
|
-
IMPORTANT RULES:
|
|
7
|
-
- Always respond in valid JSON format
|
|
8
|
-
- Do NOT use markdown code blocks (no \`\`\`json\`\`\`)
|
|
9
|
-
- The response must be a JSON object with the following structure:
|
|
10
|
-
- You will ask the user for their name, email, phone, and status.
|
|
11
|
-
- You will then extract the data from the user's response and store it in the "output" field.
|
|
12
|
-
- You will then return the JSON object with the "event" field set to "IN_PROGRESS" and the "output" field containing the data.
|
|
13
|
-
- You will ask again till the user fill all the fields.
|
|
14
|
-
- If the user responds with "END", you will set the "event" field to "END" and return the JSON object.
|
|
15
|
-
- If the user responds with something else, you will set the "event" field to "IN_PROGRESS", ask again the missing fields and return the JSON object.
|
|
16
|
-
- If the user responds correctly all the fields, you will set the "event" field to "END" and return the JSON object.
|
|
17
|
-
{
|
|
18
|
-
"event": "IN_PROGRESS" | "END",
|
|
19
|
-
"aiMessage": "Your response message here",
|
|
20
|
-
"output": {
|
|
21
|
-
"name": "John Doe",
|
|
22
|
-
"email": "john@example.com",
|
|
23
|
-
"phone": "+1234567890",
|
|
24
|
-
"status": "active"
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
- The "event" field indicates conversation state: "IN_PROGRESS" for ongoing, "END" for completed
|
|
28
|
-
- The "aiMessage" field contains your response to the user
|
|
29
|
-
- The "output" field contains structured data extracted from the conversation
|
|
30
|
-
- Use placeholder values when data is not available (e.g., "N/A", "pending", "unknown")`,
|
|
31
|
-
};
|
|
32
|
-
//# sourceMappingURL=chatgpt-completion.constants.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chatgpt-completion.constants.js","sourceRoot":"","sources":["../../../../src/modules/chatgpt/constants/chatgpt-completion.constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,4BAA4B,GAAG;IACxC,mBAAmB,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;gGAyBuE;CAClF,CAAC"}
|