@onereach/idw-init-account-resources 0.12.2 → 0.13.0
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/.turbo/turbo-build.log +1 -1
- package/CHANGELOG.md +12 -0
- package/dist/assets/collections/knowledge.js +6 -0
- package/dist/assets/collections/knowledge.js.map +1 -1
- package/dist/assets/db_migrations/20250321102618-sync-graph.js +67 -0
- package/dist/assets/db_migrations/20250321102618-sync-graph.js.map +1 -0
- package/dist/assets/default_knowledges/gsx_information.js +15 -0
- package/dist/assets/default_knowledges/gsx_information.js.map +1 -0
- package/dist/assets/default_knowledges/idw_general_overview.js +15 -0
- package/dist/assets/default_knowledges/idw_general_overview.js.map +1 -0
- package/dist/assets/default_knowledges/idw_key_features.js +15 -0
- package/dist/assets/default_knowledges/idw_key_features.js.map +1 -0
- package/dist/assets/default_knowledges/idw_use_case.js +15 -0
- package/dist/assets/default_knowledges/idw_use_case.js.map +1 -0
- package/dist/assets/default_knowledges/index.js +17 -9
- package/dist/assets/default_knowledges/index.js.map +1 -1
- package/dist/assets/default_knowledges/news_feed.js +15 -0
- package/dist/assets/default_knowledges/news_feed.js.map +1 -0
- package/dist/assets/default_knowledges/onereach_information.js +15 -0
- package/dist/assets/default_knowledges/onereach_information.js.map +1 -0
- package/dist/assets/default_knowledges/skills_overview.js +15 -0
- package/dist/assets/default_knowledges/skills_overview.js.map +1 -0
- package/dist/initializers/lookup/lookup.js +70 -22
- package/dist/initializers/lookup/lookup.js.map +1 -1
- package/dist/initializers/lookup/lookup_utils.js +1 -0
- package/dist/initializers/lookup/lookup_utils.js.map +1 -1
- package/package.json +2 -2
- package/src/assets/collections/knowledge.ts +6 -0
- package/src/assets/db_migrations/20250321102618-sync-graph.ts +31 -0
- package/src/assets/default_knowledges/{passages/gsx_information.ts → gsx_information.ts} +10 -5
- package/src/assets/default_knowledges/idw_general_overview.ts +11 -0
- package/src/assets/default_knowledges/{passages/idw_key_features.ts → idw_key_features.ts} +10 -5
- package/src/assets/default_knowledges/{passages/idw_use_case.ts → idw_use_case.ts} +10 -5
- package/src/assets/default_knowledges/index.ts +16 -9
- package/src/assets/default_knowledges/news_feed.ts +11 -0
- package/src/assets/default_knowledges/{passages/onereach_information.ts → onereach_information.ts} +11 -6
- package/src/assets/default_knowledges/{passages/skills_overview.ts → skills_overview.ts} +12 -7
- package/src/initializers/lookup/lookup.ts +15 -6
- package/src/initializers/lookup/lookup_utils.ts +1 -0
- package/src/types.ts +1 -1
- package/dist/assets/default_knowledges/passages/gsx_information.js +0 -7
- package/dist/assets/default_knowledges/passages/gsx_information.js.map +0 -1
- package/dist/assets/default_knowledges/passages/idw_general_overview.js +0 -7
- package/dist/assets/default_knowledges/passages/idw_general_overview.js.map +0 -1
- package/dist/assets/default_knowledges/passages/idw_key_features.js +0 -7
- package/dist/assets/default_knowledges/passages/idw_key_features.js.map +0 -1
- package/dist/assets/default_knowledges/passages/idw_use_case.js +0 -7
- package/dist/assets/default_knowledges/passages/idw_use_case.js.map +0 -1
- package/dist/assets/default_knowledges/passages/index.js +0 -41
- package/dist/assets/default_knowledges/passages/index.js.map +0 -1
- package/dist/assets/default_knowledges/passages/news_feed.js +0 -7
- package/dist/assets/default_knowledges/passages/news_feed.js.map +0 -1
- package/dist/assets/default_knowledges/passages/onereach_information.js +0 -7
- package/dist/assets/default_knowledges/passages/onereach_information.js.map +0 -1
- package/dist/assets/default_knowledges/passages/skills_overview.js +0 -7
- package/dist/assets/default_knowledges/passages/skills_overview.js.map +0 -1
- package/src/assets/default_knowledges/passages/idw_general_overview.ts +0 -6
- package/src/assets/default_knowledges/passages/index.ts +0 -25
- package/src/assets/default_knowledges/passages/news_feed.ts +0 -6
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
WARN Issue while reading "/builds/onereach/platform/idw/idw-template/.npmrc". Failed to replace env in config: ${OR_NPM_TOKEN}
|
|
2
2
|
|
|
3
|
-
> @onereach/idw-init-account-resources@0.12.
|
|
3
|
+
> @onereach/idw-init-account-resources@0.12.3 build /builds/onereach/platform/idw/idw-template/packages/init/idw-init-account-resources
|
|
4
4
|
> rimraf dist && tsc -b && mkdir dist/assets/skills/documentation && cp -r src/assets/skills/documentation/* dist/assets/skills/documentation
|
|
5
5
|
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @onereach/idw-init-account-resources
|
|
2
2
|
|
|
3
|
+
## 0.13.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 7b6c022: move each default knowledge to separate document
|
|
8
|
+
|
|
9
|
+
## 0.12.3
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 17f2f29: sync feed, knowledge, skills, domains to graph db
|
|
14
|
+
|
|
3
15
|
## 0.12.2
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -14,6 +14,12 @@ exports.knowledgeCollectionData = {
|
|
|
14
14
|
description: 'Domain of knowledge to filter data in QnA skill',
|
|
15
15
|
vectorize: false,
|
|
16
16
|
},
|
|
17
|
+
{
|
|
18
|
+
name: 'authorId',
|
|
19
|
+
dataType: 'text',
|
|
20
|
+
description: 'Author id',
|
|
21
|
+
vectorize: false,
|
|
22
|
+
},
|
|
17
23
|
{
|
|
18
24
|
name: 'defaultKnowledge',
|
|
19
25
|
dataType: 'boolean',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"knowledge.js","sourceRoot":"","sources":["../../../src/assets/collections/knowledge.ts"],"names":[],"mappings":";;;AAEa,QAAA,uBAAuB,GAAqB;IACvD,IAAI,EAAE,kBAAkB;IACxB,WAAW,EAAE,gHAE0B;IACvC,iBAAiB,EAAE,QAAQ;IAC3B,cAAc,EAAE,wBAAwB;IACxC,WAAW,EAAE,IAAI;IACjB,UAAU,EAAE;QACV;YACE,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,MAAM;YAChB,WAAW,EAAE,iDAAiD;YAC9D,SAAS,EAAE,KAAK;SACjB;QACD;YACE,IAAI,EAAE,kBAAkB;YACxB,QAAQ,EAAE,SAAS;YACnB,WAAW,EAAE,sCAAsC;YACnD,SAAS,EAAE,KAAK;SACjB;QACD;YACE,IAAI,EAAE,kBAAkB;YACxB,QAAQ,EAAE,SAAS;YACnB,WAAW,EAAE,2FAA2F;YACxG,SAAS,EAAE,KAAK;SACjB;QACD;YACE,IAAI,EAAE,WAAW;YACjB,QAAQ,EAAE,QAAQ;YAClB,WAAW,EAAE,kEAAkE;YAC/E,SAAS,EAAE,KAAK;SACjB;KACF;CACF,CAAC"}
|
|
1
|
+
{"version":3,"file":"knowledge.js","sourceRoot":"","sources":["../../../src/assets/collections/knowledge.ts"],"names":[],"mappings":";;;AAEa,QAAA,uBAAuB,GAAqB;IACvD,IAAI,EAAE,kBAAkB;IACxB,WAAW,EAAE,gHAE0B;IACvC,iBAAiB,EAAE,QAAQ;IAC3B,cAAc,EAAE,wBAAwB;IACxC,WAAW,EAAE,IAAI;IACjB,UAAU,EAAE;QACV;YACE,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,MAAM;YAChB,WAAW,EAAE,iDAAiD;YAC9D,SAAS,EAAE,KAAK;SACjB;QACD;YACE,IAAI,EAAE,UAAU;YAChB,QAAQ,EAAE,MAAM;YAChB,WAAW,EAAE,WAAW;YACxB,SAAS,EAAE,KAAK;SACjB;QACD;YACE,IAAI,EAAE,kBAAkB;YACxB,QAAQ,EAAE,SAAS;YACnB,WAAW,EAAE,sCAAsC;YACnD,SAAS,EAAE,KAAK;SACjB;QACD;YACE,IAAI,EAAE,kBAAkB;YACxB,QAAQ,EAAE,SAAS;YACnB,WAAW,EAAE,2FAA2F;YACxG,SAAS,EAAE,KAAK;SACjB;QACD;YACE,IAAI,EAAE,WAAW;YACjB,QAAQ,EAAE,QAAQ;YAClB,WAAW,EAAE,kEAAkE;YAC/E,SAAS,EAAE,KAAK;SACjB;KACF;CACF,CAAC"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
+
function step(op) {
|
|
16
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
18
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
+
switch (op[0]) {
|
|
21
|
+
case 0: case 1: t = op; break;
|
|
22
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
+
default:
|
|
26
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
+
if (t[2]) _.ops.pop();
|
|
31
|
+
_.trys.pop(); continue;
|
|
32
|
+
}
|
|
33
|
+
op = body.call(thisArg, _);
|
|
34
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
var idw_1 = require("@or-sdk/idw");
|
|
40
|
+
module.exports = {
|
|
41
|
+
up: function (queryInterface) {
|
|
42
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
43
|
+
var idwApiV2;
|
|
44
|
+
return __generator(this, function (_a) {
|
|
45
|
+
switch (_a.label) {
|
|
46
|
+
case 0:
|
|
47
|
+
idwApiV2 = new idw_1.IdwApiV2({
|
|
48
|
+
idwApiUrl: queryInterface.context.discoveryUrl.replace('discovery', 'idw'),
|
|
49
|
+
token: queryInterface.context._orToken,
|
|
50
|
+
});
|
|
51
|
+
return [4, idwApiV2.syncGraph()];
|
|
52
|
+
case 1:
|
|
53
|
+
_a.sent();
|
|
54
|
+
return [2];
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
});
|
|
58
|
+
},
|
|
59
|
+
down: function () {
|
|
60
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
61
|
+
return __generator(this, function (_a) {
|
|
62
|
+
return [2];
|
|
63
|
+
});
|
|
64
|
+
});
|
|
65
|
+
},
|
|
66
|
+
};
|
|
67
|
+
//# sourceMappingURL=20250321102618-sync-graph.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"20250321102618-sync-graph.js","sourceRoot":"","sources":["../../../src/assets/db_migrations/20250321102618-sync-graph.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEb,mCAAuC;AAKvC,MAAM,CAAC,OAAO,GAAG;IACT,EAAE,YAAC,cAA+G;;;;;;wBAChH,QAAQ,GAAG,IAAI,cAAQ,CAAC;4BAC5B,SAAS,EAAE,cAAc,CAAC,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC,WAAW,EAAE,KAAK,CAAC;4BAC1E,KAAK,EAAE,cAAc,CAAC,OAAO,CAAC,QAAQ;yBACvC,CAAC,CAAC;wBACH,WAAM,QAAQ,CAAC,SAAS,EAAE,EAAA;;wBAA1B,SAA0B,CAAC;;;;;KAO5B;IAEK,IAAI;;;;;;KAOT;CACF,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.gsx_information = void 0;
|
|
4
|
+
exports.gsx_information = {
|
|
5
|
+
name: 'gsx_information',
|
|
6
|
+
description: 'GSX information',
|
|
7
|
+
defaultKnowledge: true,
|
|
8
|
+
authorId: 'IDW',
|
|
9
|
+
passages: [
|
|
10
|
+
{
|
|
11
|
+
content: "**GSX Studio** by [OneReach.ai](http://OneReach.ai) is a part of conversational AI and automation platform, specifically designed to help users build, test, and deploy Generative AI and Conversational AI experiences across various channels.\n\n**Key Features of GSX Studio by** [**OneReach.ai**](http://OneReach.ai)**:**\n\n1. **Generative AI Integration**:\n * GSX Studio incorporates Generative AI capabilities to create more sophisticated and dynamic conversational experiences. This allows businesses to use AI models to generate responses, content, and solutions tailored to specific user inputs.\n\n1. 1. **Low-Code/No-Code Development**:\n * Like the rest of the [OneReach.ai](http://OneReach.ai) platform, GSX Studio emphasizes low-code/no-code tools, enabling users with minimal technical expertise to build conversational workflows. Through an intuitive drag-and-drop interface, users can design and implement AI-driven workflows and solutions quickly.\n2. 1. **Multi-Channel Deployment**:\n * Conversations and AI-driven interactions created in GSX Studio can be deployed across multiple channels, such as SMS, email, voice, social media, and web chat. This omnichannel approach ensures that businesses can interact with customers wherever they are.\n3. 1. **Skill and Workflow Creation**:\n * GSX Studio allows businesses to create \"skills\" or automation workflows that integrate AI to handle specific tasks or processes. These skills can be as simple as responding to FAQs or as complex as managing customer interactions, support requests, or internal operations.\n4. 1. **APIs and Integrations**:\n * GSX Studio supports API integration, which allows businesses to connect their existing software systems and databases with the conversational AI workflows they build. This makes it possible to automate data-driven interactions and pull in real-time information.\n5. 1. **Collaboration and Team Building**:\n * GSX Studio allows multiple team members to collaborate on AI projects, whether building workflows or managing AI models. This collaborative approach helps teams work more efficiently and create solutions that meet the organization's goals.",
|
|
12
|
+
},
|
|
13
|
+
],
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=gsx_information.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gsx_information.js","sourceRoot":"","sources":["../../../src/assets/default_knowledges/gsx_information.ts"],"names":[],"mappings":";;;AAAa,QAAA,eAAe,GAAG;IAC7B,IAAI,EAAE,iBAAiB;IACvB,WAAW,EAAE,iBAAiB;IAC9B,gBAAgB,EAAE,IAAI;IACtB,QAAQ,EAAE,KAAK;IACf,QAAQ,EAAE;QACR;YACE,OAAO,EAAE,8rEAgB6O;SACvP;KACF;CACF,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.idw_general_overview = void 0;
|
|
4
|
+
exports.idw_general_overview = {
|
|
5
|
+
name: 'idw_general_overview',
|
|
6
|
+
description: 'IDW general overview',
|
|
7
|
+
defaultKnowledge: true,
|
|
8
|
+
authorId: 'IDW',
|
|
9
|
+
passages: [
|
|
10
|
+
{
|
|
11
|
+
content: 'The IDW stands for intelligent digital worker, starting as a basic tool that gradually learns about you and your organization, becoming more intelligent and capable over time. It provides a chat experience with strong capabilities for writing and answering questions across all major channels, delivers relevant news and updates through a feed, and allows users to create and share custom skills through the GSX platform. IDWs are not just another productivity tool; they represent a fundamental shift in how work gets done.',
|
|
12
|
+
},
|
|
13
|
+
],
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=idw_general_overview.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"idw_general_overview.js","sourceRoot":"","sources":["../../../src/assets/default_knowledges/idw_general_overview.ts"],"names":[],"mappings":";;;AAAa,QAAA,oBAAoB,GAAG;IAClC,IAAI,EAAE,sBAAsB;IAC5B,WAAW,EAAE,sBAAsB;IACnC,gBAAgB,EAAE,IAAI;IACtB,QAAQ,EAAE,KAAK;IACf,QAAQ,EAAE;QACR;YACE,OAAO,EAAE,8gBAA8gB;SACxhB;KACF;CACF,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.idw_key_features = void 0;
|
|
4
|
+
exports.idw_key_features = {
|
|
5
|
+
name: 'idw_key_features',
|
|
6
|
+
description: 'IDW key features',
|
|
7
|
+
defaultKnowledge: true,
|
|
8
|
+
authorId: 'IDW',
|
|
9
|
+
passages: [
|
|
10
|
+
{
|
|
11
|
+
content: "1. **AI-Driven Automation**: IDWs are designed to leverage AI and automation to streamline workflows, handle routine tasks, and improve efficiency, freeing up human workers for more creative and strategic work. For instance, instead of manually searching for information or scheduling meetings, the system can automatically handle these tasks.\n 2. **Knowledge Management**: IDWs integrate with existing knowledge systems, making information easily accessible to users in a conversational manner. It simplifies tasks like finding documents, or getting quick answers to questions, which is especially helpful when onboarding new employees or handling new tasks.\n 3. **Customizable AI Skills**: Users can create custom AI skills to handle specific workflows or tasks within the workspace. For example, an organization can build a skill to automate reporting, handle customer inquiries, or manage internal support requests. These skills can be tailored to fit the specific needs of the company.\n 4. **24/7 Operations**: IDWs are available around the clock, ensuring continuous support for business processes, employee needs, and customer interactions. This allows teams and businesses to operate without downtime, improving responsiveness and productivity.\n 5. **No-Code Skill Creation (GSX)**: Through GSX Studio, users can create and deploy custom AI skills without needing any coding knowledge. This makes it easy for non-technical team members to build solutions that automate tasks, answer queries, or handle workflows.\n 6. **Integrations**: IDWs seamlessly integrate with existing business tools such as CRM systems, document management, and task tracking tools, enabling organizations to connect their workflows and data into a unified, intelligent environment.\n 7. **Self-management:** IDW has the capability to manage itself, allowing users to set up, tune, and adjust the workspace through pre-built skills. Additionally, users can easily add new skills to automate processes or enhance functionality.",
|
|
12
|
+
},
|
|
13
|
+
],
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=idw_key_features.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"idw_key_features.js","sourceRoot":"","sources":["../../../src/assets/default_knowledges/idw_key_features.ts"],"names":[],"mappings":";;;AAAa,QAAA,gBAAgB,GAAG;IAC9B,IAAI,EAAE,kBAAkB;IACxB,WAAW,EAAE,kBAAkB;IAC/B,gBAAgB,EAAE,IAAI;IACtB,QAAQ,EAAE,KAAK;IACf,QAAQ,EAAE;QACR;YACE,OAAO,EAAE,i/DAMuO;SACjP;KACF;CACF,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.idw_use_case = void 0;
|
|
4
|
+
exports.idw_use_case = {
|
|
5
|
+
name: 'idw_use_case',
|
|
6
|
+
description: 'IDW use case',
|
|
7
|
+
defaultKnowledge: true,
|
|
8
|
+
authorId: 'IDW',
|
|
9
|
+
passages: [
|
|
10
|
+
{
|
|
11
|
+
content: "Whether you're an individual, a small business, or an enterprise, IDW offers endless possibilities tailored to your needs. From automating customer interactions to streamlining internal processes, IDW adapts to your business. Below is just a glimpse of the countless use cases IDW can support\u2014your imagination is the only limit to how you can put it to work.\n\n* **Employee Onboarding**: IDWs can assist new employees by offering personalized onboarding experiences. The workspace can guide them through training materials, answer questions about the company, and help them become familiar with internal tools and processes quickly.\n* **Customer Service and Support**: Internally, IDWs can be used to support teams like customer service by automating the retrieval of information, summarizing customer interactions, or automating repetitive queries. Externally, customer-facing teams can use these digital workspaces to interact with customers via AI chatbots.\n* **Knowledge Sharing and Retrieval**: Employees can access a centralized repository of knowledge with AI assistance to help retrieve information in seconds. This is particularly useful for large organizations where finding the right information can be time-consuming.\n* **Internal Process Automation**: Repetitive internal processes such as data entry, approval workflows, or document management can be automated within an IDW, freeing employees from manual tasks and improving operational efficiency.",
|
|
12
|
+
},
|
|
13
|
+
],
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=idw_use_case.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"idw_use_case.js","sourceRoot":"","sources":["../../../src/assets/default_knowledges/idw_use_case.ts"],"names":[],"mappings":";;;AAAa,QAAA,YAAY,GAAG;IAC1B,IAAI,EAAE,cAAc;IACpB,WAAW,EAAE,cAAc;IAC3B,gBAAgB,EAAE,IAAI;IACtB,QAAQ,EAAE,KAAK;IACf,QAAQ,EAAE;QACR;YACE,OAAO,EAAE,08CAK6N;SACvO;KACF;CACF,CAAC"}
|
|
@@ -1,12 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
var
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
3
|
+
exports.DEFAULT_KNOWLEDGE_DOCUMENTS = void 0;
|
|
4
|
+
var gsx_information_1 = require("./gsx_information");
|
|
5
|
+
var idw_general_overview_1 = require("./idw_general_overview");
|
|
6
|
+
var idw_key_features_1 = require("./idw_key_features");
|
|
7
|
+
var idw_use_case_1 = require("./idw_use_case");
|
|
8
|
+
var news_feed_1 = require("./news_feed");
|
|
9
|
+
var onereach_information_1 = require("./onereach_information");
|
|
10
|
+
var skills_overview_1 = require("./skills_overview");
|
|
11
|
+
exports.DEFAULT_KNOWLEDGE_DOCUMENTS = [
|
|
12
|
+
gsx_information_1.gsx_information,
|
|
13
|
+
idw_general_overview_1.idw_general_overview,
|
|
14
|
+
idw_key_features_1.idw_key_features,
|
|
15
|
+
idw_use_case_1.idw_use_case,
|
|
16
|
+
news_feed_1.news_feed,
|
|
17
|
+
onereach_information_1.onereach_information,
|
|
18
|
+
skills_overview_1.skills_overview,
|
|
19
|
+
];
|
|
12
20
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/assets/default_knowledges/index.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/assets/default_knowledges/index.ts"],"names":[],"mappings":";;;AAAA,qDAAoD;AACpD,+DAA8D;AAC9D,uDAAsD;AACtD,+CAA8C;AAC9C,yCAAwC;AACxC,+DAA8D;AAC9D,qDAAoD;AAEvC,QAAA,2BAA2B,GAAG;IACzC,iCAAe;IACf,2CAAoB;IACpB,mCAAgB;IAChB,2BAAY;IACZ,qBAAS;IACT,2CAAoB;IACpB,iCAAe;CAChB,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.news_feed = void 0;
|
|
4
|
+
exports.news_feed = {
|
|
5
|
+
name: 'news_feed',
|
|
6
|
+
description: 'News feed',
|
|
7
|
+
defaultKnowledge: true,
|
|
8
|
+
authorId: 'IDW',
|
|
9
|
+
passages: [
|
|
10
|
+
{
|
|
11
|
+
content: 'News Feed allows users to create and share posts that will be visible to all product users, including guests without an account, authorized users, and administrators. This feature enhances user engagement and community interaction by providing a platform for sharing updates, news, and important information. By allowing all users, including guests, to view posts, this feature fosters a sense of community and encourages engagement. Users can stay informed about the latest news and updates, making the platform more interactive and dynamic.',
|
|
12
|
+
},
|
|
13
|
+
],
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=news_feed.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"news_feed.js","sourceRoot":"","sources":["../../../src/assets/default_knowledges/news_feed.ts"],"names":[],"mappings":";;;AAAa,QAAA,SAAS,GAAG;IACvB,IAAI,EAAE,WAAW;IACjB,WAAW,EAAE,WAAW;IACxB,gBAAgB,EAAE,IAAI;IACtB,QAAQ,EAAE,KAAK;IACf,QAAQ,EAAE;QACR;YACE,OAAO,EAAE,giBAAgiB;SAC1iB;KACF;CACF,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.onereach_information = void 0;
|
|
4
|
+
exports.onereach_information = {
|
|
5
|
+
name: 'onereach_information',
|
|
6
|
+
description: 'OneReach information',
|
|
7
|
+
defaultKnowledge: true,
|
|
8
|
+
authorId: 'IDW',
|
|
9
|
+
passages: [
|
|
10
|
+
{
|
|
11
|
+
content: "[OneReach.ai](http://onereach.ai/) is a platform focused on creating conversational AI and automation solutions that enable organizations to build intelligent applications. It is designed to empower users to create powerful, AI-driven workflows and conversational experiences without needing to code, using a visual, drag-and-drop interface.\n\n**Key Aspects of** [**OneReach.ai**](http://onereach.ai/)**:**\n\n1. **Conversational AI Platform**:\n * [OneReach.ai](http://onereach.ai/) helps businesses design, build, and deploy conversational AI systems across various channels like messaging apps, voice assistants, and websites. This allows companies to automate customer interactions, support services, and other business processes.\n\n1. 1. **Low-Code/No-Code Development**:\n * The platform offers tools that allow non-developers to create conversational workflows without needing to write code. This makes it accessible for a wide range of users, from business analysts to product managers.\n2. 1. **Omnichannel Integration**:\n * [OneReach.ai](http://onereach.ai/) enables businesses to create seamless conversational experiences across multiple channels\u2014such as SMS, web chat, voice, and social media\u2014making it easy to manage interactions with customers regardless of the medium they use.\n3. 1. **AI and Automation**:\n * The platform incorporates artificial intelligence to power conversations, automate repetitive tasks, and enhance customer interactions through natural language understanding (NLU) and machine learning.\n * Its capabilities include AI for customer service, data collection, appointment scheduling, and task automation.\n4. 1. **Intelligent Digital Workspaces (IDW)**:\n * [OneReach.ai](http://onereach.ai/) offers solutions for creating **Intelligent Digital Workspaces**\u2014virtual environments where teams can collaborate using AI-driven tools to automate internal processes, share knowledge, and streamline communication. This concept is designed to improve productivity by enabling workers to interact with knowledge and systems in a more conversational, efficient way.\n5. 1. **Custom AI Skills**:\n * Users can create custom \"skills\" or automation modules that fit specific business needs, from simple task automation to more complex conversational AI-driven workflows.\n6. 1. **API and Integration**:\n * [OneReach.ai](http://onereach.ai/) provides APIs for integrating the platform with existing enterprise systems and other third-party applications. This allows businesses to incorporate AI and automation into their current tools and processes.\n\n**Common Use Cases:**\n\n* **Customer Support**: Automating FAQs, handling customer inquiries, and assisting support agents in resolving issues faster.\n* **Sales and Marketing**: Automating lead generation, nurturing customers, and facilitating customer interactions across channels.\n* **Internal Operations**: Streamlining internal workflows by automating repetitive tasks, managing knowledge, and simplifying communication.",
|
|
12
|
+
},
|
|
13
|
+
],
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=onereach_information.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"onereach_information.js","sourceRoot":"","sources":["../../../src/assets/default_knowledges/onereach_information.ts"],"names":[],"mappings":";;;AAAa,QAAA,oBAAoB,GAAG;IAClC,IAAI,EAAE,sBAAsB;IAC5B,WAAW,EAAE,sBAAsB;IACnC,gBAAgB,EAAE,IAAI;IACtB,QAAQ,EAAE,KAAK;IACf,QAAQ,EAAE;QACR;YACE,OAAO,EAAE,yjGAyBiI;SAC3I;KACF;CACF,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.skills_overview = void 0;
|
|
4
|
+
exports.skills_overview = {
|
|
5
|
+
name: 'skills_overview',
|
|
6
|
+
description: 'Skills overview',
|
|
7
|
+
defaultKnowledge: true,
|
|
8
|
+
authorId: 'IDW',
|
|
9
|
+
passages: [
|
|
10
|
+
{
|
|
11
|
+
content: "In IDW, skills are tools that automate tasks and make work more efficient. Each skill serves a specific purpose, like managing knowledge or reviewing reports. The set of skills you see depends on your role within the workspace\u2014whether you're a user or an admin, you'll have access to different skills.\n\n**Available skills overview:**\n\n* The Manage Knowledge skill empowers you to share and maintain valuable information within your organization, you can actively contribute to and manage the information that supports your team's success. It allows users to offer, create, and edit knowledge entries.\n* The Manage User skill provides administrators with comprehensive control over user roles and invitations. This skill enables role changes, from user to admin and vice versa, and allows admins to manage invitations from other users. Additionally, it offers the capability to invite teammates, ensuring efficient team collaboration and platform access management.\n* The Customize IDW skill is designed to give Admins the flexibility to personalize their IDW to better represent their team and goals. This skill enables you to modify the IDW's name, description, and avatar, as well as adjust its role.\n* The Manage Skills is designed to give Admins full control over the skills available in your IDW. With this feature, Admins can rename, delete, or add new skills, ensuring that your IDW remains relevant and useful for all team members.\n* The Manage Domains skill provides Admins with the ability to effectively organize and categorize skills within your IDW. By effectively managing domains and assigning skills to them, you can create a more streamlined and efficient workspace for your team.\n* The Reporting skill provides real-time insights into your IDW and its users, helping you track performance and behavior. With this data, you can continuously improve your product by making informed decisions based on how it's being used.",
|
|
12
|
+
},
|
|
13
|
+
],
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=skills_overview.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skills_overview.js","sourceRoot":"","sources":["../../../src/assets/default_knowledges/skills_overview.ts"],"names":[],"mappings":";;;AAAa,QAAA,eAAe,GAAG;IAC7B,IAAI,EAAE,iBAAiB;IACvB,WAAW,EAAE,iBAAiB;IAC9B,gBAAgB,EAAE,IAAI;IACtB,QAAQ,EAAE,KAAK;IACf,QAAQ,EAAE;QACR;YACE,OAAO,EAAE,66DASmO;SAC7O;KACF;CACF,CAAC"}
|
|
@@ -46,6 +46,13 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
46
46
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
47
47
|
}
|
|
48
48
|
};
|
|
49
|
+
var __asyncValues = (this && this.__asyncValues) || function (o) {
|
|
50
|
+
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
51
|
+
var m = o[Symbol.asyncIterator], i;
|
|
52
|
+
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
|
53
|
+
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
|
54
|
+
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
|
|
55
|
+
};
|
|
49
56
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
50
57
|
exports.InitLookupResources = void 0;
|
|
51
58
|
var lookup_1 = require("@or-sdk/lookup");
|
|
@@ -65,22 +72,65 @@ var InitLookupResources = (function () {
|
|
|
65
72
|
}
|
|
66
73
|
InitLookupResources.prototype.init = function () {
|
|
67
74
|
return __awaiter(this, void 0, void 0, function () {
|
|
68
|
-
var collections;
|
|
69
|
-
|
|
70
|
-
|
|
75
|
+
var collections, existingDocuments, _a, DEFAULT_KNOWLEDGE_DOCUMENTS_1, DEFAULT_KNOWLEDGE_DOCUMENTS_1_1, document_1, e_1_1, deprecatedKnowledge;
|
|
76
|
+
var _b, e_1, _c, _d;
|
|
77
|
+
return __generator(this, function (_e) {
|
|
78
|
+
switch (_e.label) {
|
|
71
79
|
case 0: return [4, this.upsertCollections()];
|
|
72
80
|
case 1:
|
|
73
|
-
collections =
|
|
81
|
+
collections = _e.sent();
|
|
74
82
|
return [4, this.upsertSkillsDocuments(collections.skills)];
|
|
75
83
|
case 2:
|
|
76
|
-
|
|
84
|
+
_e.sent();
|
|
77
85
|
return [4, this.removeDeletedSkillData(collections.skills)];
|
|
78
86
|
case 3:
|
|
79
|
-
|
|
80
|
-
return [4, this.
|
|
87
|
+
_e.sent();
|
|
88
|
+
return [4, this.listDocuments(collections.knowledge)];
|
|
81
89
|
case 4:
|
|
82
|
-
|
|
83
|
-
|
|
90
|
+
existingDocuments = _e.sent();
|
|
91
|
+
_e.label = 5;
|
|
92
|
+
case 5:
|
|
93
|
+
_e.trys.push([5, 11, 12, 17]);
|
|
94
|
+
_a = true, DEFAULT_KNOWLEDGE_DOCUMENTS_1 = __asyncValues(default_knowledges_1.DEFAULT_KNOWLEDGE_DOCUMENTS);
|
|
95
|
+
_e.label = 6;
|
|
96
|
+
case 6: return [4, DEFAULT_KNOWLEDGE_DOCUMENTS_1.next()];
|
|
97
|
+
case 7:
|
|
98
|
+
if (!(DEFAULT_KNOWLEDGE_DOCUMENTS_1_1 = _e.sent(), _b = DEFAULT_KNOWLEDGE_DOCUMENTS_1_1.done, !_b)) return [3, 10];
|
|
99
|
+
_d = DEFAULT_KNOWLEDGE_DOCUMENTS_1_1.value;
|
|
100
|
+
_a = false;
|
|
101
|
+
document_1 = _d;
|
|
102
|
+
return [4, this.upsertDefaultKnowledgeDocument(collections.knowledge, document_1, existingDocuments)];
|
|
103
|
+
case 8:
|
|
104
|
+
_e.sent();
|
|
105
|
+
_e.label = 9;
|
|
106
|
+
case 9:
|
|
107
|
+
_a = true;
|
|
108
|
+
return [3, 6];
|
|
109
|
+
case 10: return [3, 17];
|
|
110
|
+
case 11:
|
|
111
|
+
e_1_1 = _e.sent();
|
|
112
|
+
e_1 = { error: e_1_1 };
|
|
113
|
+
return [3, 17];
|
|
114
|
+
case 12:
|
|
115
|
+
_e.trys.push([12, , 15, 16]);
|
|
116
|
+
if (!(!_a && !_b && (_c = DEFAULT_KNOWLEDGE_DOCUMENTS_1.return))) return [3, 14];
|
|
117
|
+
return [4, _c.call(DEFAULT_KNOWLEDGE_DOCUMENTS_1)];
|
|
118
|
+
case 13:
|
|
119
|
+
_e.sent();
|
|
120
|
+
_e.label = 14;
|
|
121
|
+
case 14: return [3, 16];
|
|
122
|
+
case 15:
|
|
123
|
+
if (e_1) throw e_1.error;
|
|
124
|
+
return [7];
|
|
125
|
+
case 16: return [7];
|
|
126
|
+
case 17:
|
|
127
|
+
deprecatedKnowledge = existingDocuments.find(function (kn) { return kn.name === 'default_knowledge'; });
|
|
128
|
+
if (!deprecatedKnowledge) return [3, 19];
|
|
129
|
+
return [4, this.lookup.deleteDocument(collections.knowledge, deprecatedKnowledge.id)];
|
|
130
|
+
case 18:
|
|
131
|
+
_e.sent();
|
|
132
|
+
_e.label = 19;
|
|
133
|
+
case 19: return [2, collections];
|
|
84
134
|
}
|
|
85
135
|
});
|
|
86
136
|
});
|
|
@@ -104,30 +154,27 @@ var InitLookupResources = (function () {
|
|
|
104
154
|
});
|
|
105
155
|
});
|
|
106
156
|
};
|
|
107
|
-
InitLookupResources.prototype.upsertDefaultKnowledgeDocument = function (collectionId) {
|
|
157
|
+
InitLookupResources.prototype.upsertDefaultKnowledgeDocument = function (collectionId, documentData, existingDocuments) {
|
|
108
158
|
return __awaiter(this, void 0, void 0, function () {
|
|
109
|
-
var
|
|
159
|
+
var defaultKnowledgeDoc, passages, hasChanges;
|
|
110
160
|
return __generator(this, function (_a) {
|
|
111
161
|
switch (_a.label) {
|
|
112
|
-
case 0:
|
|
113
|
-
case 1:
|
|
114
|
-
existingDocuments = _a.sent();
|
|
115
|
-
documentData = default_knowledges_1.DEFAULT_KNOWLEDGE_DOCUMENT;
|
|
162
|
+
case 0:
|
|
116
163
|
defaultKnowledgeDoc = existingDocuments.find(function (document) { return document.name === documentData.name; });
|
|
117
|
-
if (!defaultKnowledgeDoc) return [3,
|
|
164
|
+
if (!defaultKnowledgeDoc) return [3, 3];
|
|
118
165
|
return [4, this.lookup.listPassagesInDocument(collectionId, defaultKnowledgeDoc.id)];
|
|
119
|
-
case
|
|
166
|
+
case 1:
|
|
120
167
|
passages = (_a.sent()).items;
|
|
121
168
|
hasChanges = (0, lookup_utils_1.isDefaultKnowledgeUpdated)(documentData, defaultKnowledgeDoc, passages);
|
|
122
169
|
if (!hasChanges) {
|
|
123
170
|
return [2, defaultKnowledgeDoc];
|
|
124
171
|
}
|
|
125
172
|
return [4, this.lookup.deleteDocument(collectionId, defaultKnowledgeDoc.id)];
|
|
126
|
-
case
|
|
173
|
+
case 2:
|
|
127
174
|
_a.sent();
|
|
128
|
-
_a.label =
|
|
129
|
-
case
|
|
130
|
-
case
|
|
175
|
+
_a.label = 3;
|
|
176
|
+
case 3: return [4, this._createDefaultKnowledgeDocument(collectionId, documentData)];
|
|
177
|
+
case 4: return [2, _a.sent()];
|
|
131
178
|
}
|
|
132
179
|
});
|
|
133
180
|
});
|
|
@@ -142,12 +189,13 @@ var InitLookupResources = (function () {
|
|
|
142
189
|
description: documentData.description,
|
|
143
190
|
defaultProperties: {
|
|
144
191
|
defaultKnowledge: documentData.defaultKnowledge,
|
|
192
|
+
authorId: documentData.authorId,
|
|
145
193
|
},
|
|
146
194
|
})];
|
|
147
195
|
case 1:
|
|
148
196
|
document = _a.sent();
|
|
149
197
|
if (!documentData.passages.length) return [3, 3];
|
|
150
|
-
passages = documentData.passages.map(function (passage) { return (__assign(__assign({}, passage), { documentId: document.id, defaultKnowledge: documentData.defaultKnowledge })); });
|
|
198
|
+
passages = documentData.passages.map(function (passage) { return (__assign(__assign({}, passage), { documentId: document.id, defaultKnowledge: documentData.defaultKnowledge, authorId: documentData.authorId })); });
|
|
151
199
|
return [4, this.lookup.createManyPassages(collectionId, passages)];
|
|
152
200
|
case 2:
|
|
153
201
|
_a.sent();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lookup.js","sourceRoot":"","sources":["../../../src/initializers/lookup/lookup.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"lookup.js","sourceRoot":"","sources":["../../../src/initializers/lookup/lookup.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAAwD;AAExD,wDAAyF;AACzF,8CAA6C;AAS7C,+CAOwB;AACxB,sEAA8E;AAE9E;IAKE,6BAAY,EAAkD;YAAhD,KAAK,WAAA,EAAE,YAAY,kBAAA;QAC/B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QAEjC,IAAI,CAAC,MAAM,GAAG,IAAI,eAAM,CAAC;YACvB,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,YAAY,EAAE,IAAI,CAAC,YAAY;SAChC,CAAC,CAAC;IACL,CAAC;IAEY,kCAAI,GAAjB;;;;;;4BACsB,WAAM,IAAI,CAAC,iBAAiB,EAAE,EAAA;;wBAA5C,WAAW,GAAG,SAA8B;wBAElD,WAAM,IAAI,CAAC,qBAAqB,CAAC,WAAW,CAAC,MAAM,CAAC,EAAA;;wBAApD,SAAoD,CAAC;wBACrD,WAAM,IAAI,CAAC,sBAAsB,CAAC,WAAW,CAAC,MAAM,CAAC,EAAA;;wBAArD,SAAqD,CAAC;wBAE5B,WAAM,IAAI,CAAC,aAAa,CAAC,WAAW,CAAC,SAAS,CAAC,EAAA;;wBAAnE,iBAAiB,GAAG,SAA+C;;;;mCAE5C,gCAAA,cAAA,gDAA2B,CAAA;;;;;wBAA3B,2CAA2B;wBAA3B,WAA2B;wBAAvC,eAAQ,CAAA;wBACvB,WAAM,IAAI,CAAC,8BAA8B,CAAC,WAAW,CAAC,SAAS,EAAE,UAAQ,EAAE,iBAAiB,CAAC,EAAA;;wBAA7F,SAA6F,CAAC;;;;;;;;;;;;;;;;;;;;;;;wBAI1F,mBAAm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C,aAAuB;;IACnD,IAAM,IAAI,GAAG,MAAA,aAAa,CAAC,UAAU,0CAAE,IAAI,CAAC,UAAC,CAAC,IAAK,OAAA,CAAC,CAAC,IAAI,KAAK,UAAU,EAArB,CAAqB,CAAC,CAAC;IAC1E,OAAO,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,KAAK,MAAK,IAAI,IAAI,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,KAAK,MAAK,MAAM,CAAC;AACxD,CAAC;AAHD,sCAGC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onereach/idw-init-account-resources",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.0",
|
|
4
4
|
"description": "Creation of required resources in OneReach account to enable IDW",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"contributors": [
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"@or-sdk/files": "3.4.36",
|
|
15
15
|
"@or-sdk/graph": "1.7.26",
|
|
16
16
|
"@or-sdk/hitl": "0.34.35",
|
|
17
|
-
"@or-sdk/idw": "7.
|
|
17
|
+
"@or-sdk/idw": "7.8.0",
|
|
18
18
|
"@or-sdk/lookup": "1.14.5",
|
|
19
19
|
"@or-sdk/pgsql": "1.1.8",
|
|
20
20
|
"pg": "8.11.5",
|
|
@@ -15,6 +15,12 @@ Passage content is knowledge pieces that`,
|
|
|
15
15
|
description: 'Domain of knowledge to filter data in QnA skill',
|
|
16
16
|
vectorize: false,
|
|
17
17
|
},
|
|
18
|
+
{
|
|
19
|
+
name: 'authorId',
|
|
20
|
+
dataType: 'text',
|
|
21
|
+
description: 'Author id',
|
|
22
|
+
vectorize: false,
|
|
23
|
+
},
|
|
18
24
|
{
|
|
19
25
|
name: 'defaultKnowledge',
|
|
20
26
|
dataType: 'boolean',
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
import { IdwApiV2 } from '@or-sdk/idw';
|
|
4
|
+
import { QueryInterface, Sequelize } from 'sequelize';
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
/** @type {import('sequelize-cli').Migration} */
|
|
8
|
+
module.exports = {
|
|
9
|
+
async up(queryInterface: QueryInterface & { context: { sequelize: Sequelize; _orToken: string; discoveryUrl: string;}; }) {
|
|
10
|
+
const idwApiV2 = new IdwApiV2({
|
|
11
|
+
idwApiUrl: queryInterface.context.discoveryUrl.replace('discovery', 'idw'),
|
|
12
|
+
token: queryInterface.context._orToken,
|
|
13
|
+
});
|
|
14
|
+
await idwApiV2.syncGraph();
|
|
15
|
+
/**
|
|
16
|
+
* Add altering commands here.
|
|
17
|
+
*
|
|
18
|
+
* Example:
|
|
19
|
+
* await queryInterface.createTable('users', { id: Sequelize.INTEGER });
|
|
20
|
+
*/
|
|
21
|
+
},
|
|
22
|
+
|
|
23
|
+
async down() {
|
|
24
|
+
/**
|
|
25
|
+
* Add reverting commands here.
|
|
26
|
+
*
|
|
27
|
+
* Example:
|
|
28
|
+
* await queryInterface.dropTable('users');
|
|
29
|
+
*/
|
|
30
|
+
},
|
|
31
|
+
};
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
export const gsx_information = {
|
|
2
|
+
name: 'gsx_information',
|
|
3
|
+
description: 'GSX information',
|
|
4
|
+
defaultKnowledge: true,
|
|
5
|
+
authorId: 'IDW',
|
|
6
|
+
passages: [
|
|
7
|
+
{
|
|
8
|
+
content: `**GSX Studio** by [OneReach.ai](http://OneReach.ai) is a part of conversational AI and automation platform, specifically designed to help users build, test, and deploy Generative AI and Conversational AI experiences across various channels.
|
|
6
9
|
|
|
7
10
|
**Key Features of GSX Studio by** [**OneReach.ai**](http://OneReach.ai)**:**
|
|
8
11
|
|
|
@@ -19,4 +22,6 @@ export const gsx_information: KnowledgeDocumentPassage<LoadDocument['defaultProp
|
|
|
19
22
|
* GSX Studio supports API integration, which allows businesses to connect their existing software systems and databases with the conversational AI workflows they build. This makes it possible to automate data-driven interactions and pull in real-time information.
|
|
20
23
|
5. 1. **Collaboration and Team Building**:
|
|
21
24
|
* GSX Studio allows multiple team members to collaborate on AI projects, whether building workflows or managing AI models. This collaborative approach helps teams work more efficiently and create solutions that meet the organization's goals.`,
|
|
25
|
+
},
|
|
26
|
+
],
|
|
22
27
|
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export const idw_general_overview = {
|
|
2
|
+
name: 'idw_general_overview',
|
|
3
|
+
description: 'IDW general overview',
|
|
4
|
+
defaultKnowledge: true,
|
|
5
|
+
authorId: 'IDW',
|
|
6
|
+
passages: [
|
|
7
|
+
{
|
|
8
|
+
content: 'The IDW stands for intelligent digital worker, starting as a basic tool that gradually learns about you and your organization, becoming more intelligent and capable over time. It provides a chat experience with strong capabilities for writing and answering questions across all major channels, delivers relevant news and updates through a feed, and allows users to create and share custom skills through the GSX platform. IDWs are not just another productivity tool; they represent a fundamental shift in how work gets done.',
|
|
9
|
+
},
|
|
10
|
+
],
|
|
11
|
+
};
|
|
@@ -1,12 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
export const idw_key_features = {
|
|
2
|
+
name: 'idw_key_features',
|
|
3
|
+
description: 'IDW key features',
|
|
4
|
+
defaultKnowledge: true,
|
|
5
|
+
authorId: 'IDW',
|
|
6
|
+
passages: [
|
|
7
|
+
{
|
|
8
|
+
content: `1. **AI-Driven Automation**: IDWs are designed to leverage AI and automation to streamline workflows, handle routine tasks, and improve efficiency, freeing up human workers for more creative and strategic work. For instance, instead of manually searching for information or scheduling meetings, the system can automatically handle these tasks.
|
|
6
9
|
2. **Knowledge Management**: IDWs integrate with existing knowledge systems, making information easily accessible to users in a conversational manner. It simplifies tasks like finding documents, or getting quick answers to questions, which is especially helpful when onboarding new employees or handling new tasks.
|
|
7
10
|
3. **Customizable AI Skills**: Users can create custom AI skills to handle specific workflows or tasks within the workspace. For example, an organization can build a skill to automate reporting, handle customer inquiries, or manage internal support requests. These skills can be tailored to fit the specific needs of the company.
|
|
8
11
|
4. **24/7 Operations**: IDWs are available around the clock, ensuring continuous support for business processes, employee needs, and customer interactions. This allows teams and businesses to operate without downtime, improving responsiveness and productivity.
|
|
9
12
|
5. **No-Code Skill Creation (GSX)**: Through GSX Studio, users can create and deploy custom AI skills without needing any coding knowledge. This makes it easy for non-technical team members to build solutions that automate tasks, answer queries, or handle workflows.
|
|
10
13
|
6. **Integrations**: IDWs seamlessly integrate with existing business tools such as CRM systems, document management, and task tracking tools, enabling organizations to connect their workflows and data into a unified, intelligent environment.
|
|
11
14
|
7. **Self-management:** IDW has the capability to manage itself, allowing users to set up, tune, and adjust the workspace through pre-built skills. Additionally, users can easily add new skills to automate processes or enhance functionality.`,
|
|
15
|
+
},
|
|
16
|
+
],
|
|
12
17
|
};
|
|
@@ -1,11 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
export const idw_use_case = {
|
|
2
|
+
name: 'idw_use_case',
|
|
3
|
+
description: 'IDW use case',
|
|
4
|
+
defaultKnowledge: true,
|
|
5
|
+
authorId: 'IDW',
|
|
6
|
+
passages: [
|
|
7
|
+
{
|
|
8
|
+
content: `Whether you're an individual, a small business, or an enterprise, IDW offers endless possibilities tailored to your needs. From automating customer interactions to streamlining internal processes, IDW adapts to your business. Below is just a glimpse of the countless use cases IDW can support—your imagination is the only limit to how you can put it to work.
|
|
6
9
|
|
|
7
10
|
* **Employee Onboarding**: IDWs can assist new employees by offering personalized onboarding experiences. The workspace can guide them through training materials, answer questions about the company, and help them become familiar with internal tools and processes quickly.
|
|
8
11
|
* **Customer Service and Support**: Internally, IDWs can be used to support teams like customer service by automating the retrieval of information, summarizing customer interactions, or automating repetitive queries. Externally, customer-facing teams can use these digital workspaces to interact with customers via AI chatbots.
|
|
9
12
|
* **Knowledge Sharing and Retrieval**: Employees can access a centralized repository of knowledge with AI assistance to help retrieve information in seconds. This is particularly useful for large organizations where finding the right information can be time-consuming.
|
|
10
13
|
* **Internal Process Automation**: Repetitive internal processes such as data entry, approval workflows, or document management can be automated within an IDW, freeing employees from manual tasks and improving operational efficiency.`,
|
|
14
|
+
},
|
|
15
|
+
],
|
|
11
16
|
};
|
|
@@ -1,10 +1,17 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { gsx_information } from './gsx_information';
|
|
2
|
+
import { idw_general_overview } from './idw_general_overview';
|
|
3
|
+
import { idw_key_features } from './idw_key_features';
|
|
4
|
+
import { idw_use_case } from './idw_use_case';
|
|
5
|
+
import { news_feed } from './news_feed';
|
|
6
|
+
import { onereach_information } from './onereach_information';
|
|
7
|
+
import { skills_overview } from './skills_overview';
|
|
2
8
|
|
|
3
|
-
export const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
export const DEFAULT_KNOWLEDGE_DOCUMENTS = [
|
|
10
|
+
gsx_information,
|
|
11
|
+
idw_general_overview,
|
|
12
|
+
idw_key_features,
|
|
13
|
+
idw_use_case,
|
|
14
|
+
news_feed,
|
|
15
|
+
onereach_information,
|
|
16
|
+
skills_overview,
|
|
17
|
+
];
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export const news_feed = {
|
|
2
|
+
name: 'news_feed',
|
|
3
|
+
description: 'News feed',
|
|
4
|
+
defaultKnowledge: true,
|
|
5
|
+
authorId: 'IDW',
|
|
6
|
+
passages: [
|
|
7
|
+
{
|
|
8
|
+
content: 'News Feed allows users to create and share posts that will be visible to all product users, including guests without an account, authorized users, and administrators. This feature enhances user engagement and community interaction by providing a platform for sharing updates, news, and important information. By allowing all users, including guests, to view posts, this feature fosters a sense of community and encourages engagement. Users can stay informed about the latest news and updates, making the platform more interactive and dynamic.',
|
|
9
|
+
},
|
|
10
|
+
],
|
|
11
|
+
};
|
package/src/assets/default_knowledges/{passages/onereach_information.ts → onereach_information.ts}
RENAMED
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
export const onereach_information = {
|
|
2
|
+
name: 'onereach_information',
|
|
3
|
+
description: 'OneReach information',
|
|
4
|
+
defaultKnowledge: true,
|
|
5
|
+
authorId: 'IDW',
|
|
6
|
+
passages: [
|
|
7
|
+
{
|
|
8
|
+
content: `[OneReach.ai](http://onereach.ai/) is a platform focused on creating conversational AI and automation solutions that enable organizations to build intelligent applications. It is designed to empower users to create powerful, AI-driven workflows and conversational experiences without needing to code, using a visual, drag-and-drop interface.
|
|
6
9
|
|
|
7
10
|
**Key Aspects of** [**OneReach.ai**](http://onereach.ai/)**:**
|
|
8
11
|
|
|
@@ -19,7 +22,7 @@ export const onereach_information: KnowledgeDocumentPassage<LoadDocument['defaul
|
|
|
19
22
|
4. 1. **Intelligent Digital Workspaces (IDW)**:
|
|
20
23
|
* [OneReach.ai](http://onereach.ai/) offers solutions for creating **Intelligent Digital Workspaces**—virtual environments where teams can collaborate using AI-driven tools to automate internal processes, share knowledge, and streamline communication. This concept is designed to improve productivity by enabling workers to interact with knowledge and systems in a more conversational, efficient way.
|
|
21
24
|
5. 1. **Custom AI Skills**:
|
|
22
|
-
* Users can create custom
|
|
25
|
+
* Users can create custom "skills" or automation modules that fit specific business needs, from simple task automation to more complex conversational AI-driven workflows.
|
|
23
26
|
6. 1. **API and Integration**:
|
|
24
27
|
* [OneReach.ai](http://onereach.ai/) provides APIs for integrating the platform with existing enterprise systems and other third-party applications. This allows businesses to incorporate AI and automation into their current tools and processes.
|
|
25
28
|
|
|
@@ -28,4 +31,6 @@ export const onereach_information: KnowledgeDocumentPassage<LoadDocument['defaul
|
|
|
28
31
|
* **Customer Support**: Automating FAQs, handling customer inquiries, and assisting support agents in resolving issues faster.
|
|
29
32
|
* **Sales and Marketing**: Automating lead generation, nurturing customers, and facilitating customer interactions across channels.
|
|
30
33
|
* **Internal Operations**: Streamlining internal workflows by automating repetitive tasks, managing knowledge, and simplifying communication.`,
|
|
34
|
+
},
|
|
35
|
+
],
|
|
31
36
|
};
|
|
@@ -1,15 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
export const skills_overview = {
|
|
2
|
+
name: 'skills_overview',
|
|
3
|
+
description: 'Skills overview',
|
|
4
|
+
defaultKnowledge: true,
|
|
5
|
+
authorId: 'IDW',
|
|
6
|
+
passages: [
|
|
7
|
+
{
|
|
8
|
+
content: `In IDW, skills are tools that automate tasks and make work more efficient. Each skill serves a specific purpose, like managing knowledge or reviewing reports. The set of skills you see depends on your role within the workspace—whether you're a user or an admin, you'll have access to different skills.
|
|
6
9
|
|
|
7
10
|
**Available skills overview:**
|
|
8
11
|
|
|
9
|
-
* The Manage Knowledge skill empowers you to share and maintain valuable information within your organization, you can actively contribute to and manage the information that supports your team
|
|
12
|
+
* The Manage Knowledge skill empowers you to share and maintain valuable information within your organization, you can actively contribute to and manage the information that supports your team's success. It allows users to offer, create, and edit knowledge entries.
|
|
10
13
|
* The Manage User skill provides administrators with comprehensive control over user roles and invitations. This skill enables role changes, from user to admin and vice versa, and allows admins to manage invitations from other users. Additionally, it offers the capability to invite teammates, ensuring efficient team collaboration and platform access management.
|
|
11
|
-
* The Customize IDW skill is designed to give Admins the flexibility to personalize their IDW to better represent their team and goals. This skill enables you to modify the IDW
|
|
14
|
+
* The Customize IDW skill is designed to give Admins the flexibility to personalize their IDW to better represent their team and goals. This skill enables you to modify the IDW's name, description, and avatar, as well as adjust its role.
|
|
12
15
|
* The Manage Skills is designed to give Admins full control over the skills available in your IDW. With this feature, Admins can rename, delete, or add new skills, ensuring that your IDW remains relevant and useful for all team members.
|
|
13
16
|
* The Manage Domains skill provides Admins with the ability to effectively organize and categorize skills within your IDW. By effectively managing domains and assigning skills to them, you can create a more streamlined and efficient workspace for your team.
|
|
14
17
|
* The Reporting skill provides real-time insights into your IDW and its users, helping you track performance and behavior. With this data, you can continuously improve your product by making informed decisions based on how it's being used.`,
|
|
18
|
+
},
|
|
19
|
+
],
|
|
15
20
|
};
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
isBoolean,
|
|
19
19
|
isDefaultKnowledgeUpdated,
|
|
20
20
|
} from './lookup_utils';
|
|
21
|
-
import {
|
|
21
|
+
import { DEFAULT_KNOWLEDGE_DOCUMENTS } from '../../assets/default_knowledges';
|
|
22
22
|
|
|
23
23
|
export class InitLookupResources {
|
|
24
24
|
private token: string;
|
|
@@ -41,7 +41,17 @@ export class InitLookupResources {
|
|
|
41
41
|
await this.upsertSkillsDocuments(collections.skills);
|
|
42
42
|
await this.removeDeletedSkillData(collections.skills);
|
|
43
43
|
|
|
44
|
-
await this.
|
|
44
|
+
const existingDocuments = await this.listDocuments(collections.knowledge);
|
|
45
|
+
|
|
46
|
+
for await (const document of DEFAULT_KNOWLEDGE_DOCUMENTS) {
|
|
47
|
+
await this.upsertDefaultKnowledgeDocument(collections.knowledge, document, existingDocuments);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
// remove old document with default knowledges
|
|
51
|
+
const deprecatedKnowledge = existingDocuments.find(kn => kn.name === 'default_knowledge');
|
|
52
|
+
if (deprecatedKnowledge) {
|
|
53
|
+
await this.lookup.deleteDocument(collections.knowledge, deprecatedKnowledge.id);
|
|
54
|
+
}
|
|
45
55
|
|
|
46
56
|
return collections;
|
|
47
57
|
}
|
|
@@ -58,10 +68,7 @@ export class InitLookupResources {
|
|
|
58
68
|
};
|
|
59
69
|
}
|
|
60
70
|
|
|
61
|
-
private async upsertDefaultKnowledgeDocument(collectionId: Collection['id']): Promise<Document> {
|
|
62
|
-
const existingDocuments = await this.listDocuments(collectionId);
|
|
63
|
-
|
|
64
|
-
const documentData = DEFAULT_KNOWLEDGE_DOCUMENT;
|
|
71
|
+
private async upsertDefaultKnowledgeDocument(collectionId: Collection['id'], documentData: KnowledgeDefinition, existingDocuments: Document[]): Promise<Document> {
|
|
65
72
|
const defaultKnowledgeDoc = existingDocuments.find((document) => document.name === documentData.name);
|
|
66
73
|
|
|
67
74
|
if (defaultKnowledgeDoc) {
|
|
@@ -87,6 +94,7 @@ export class InitLookupResources {
|
|
|
87
94
|
description: documentData.description,
|
|
88
95
|
defaultProperties: {
|
|
89
96
|
defaultKnowledge: documentData.defaultKnowledge,
|
|
97
|
+
authorId: documentData.authorId,
|
|
90
98
|
},
|
|
91
99
|
}
|
|
92
100
|
);
|
|
@@ -96,6 +104,7 @@ export class InitLookupResources {
|
|
|
96
104
|
...passage,
|
|
97
105
|
documentId: document.id,
|
|
98
106
|
defaultKnowledge: documentData.defaultKnowledge,
|
|
107
|
+
authorId: documentData.authorId,
|
|
99
108
|
}));
|
|
100
109
|
|
|
101
110
|
await this.lookup.createManyPassages(collectionId, passages);
|
package/src/types.ts
CHANGED
|
@@ -52,11 +52,11 @@ export type KnowledgeDocumentPassage<T extends LoadDocument['defaultProperties']
|
|
|
52
52
|
} & T;
|
|
53
53
|
|
|
54
54
|
export type KnowledgeDefinition = {
|
|
55
|
-
uid: string;
|
|
56
55
|
name: string;
|
|
57
56
|
description: string;
|
|
58
57
|
|
|
59
58
|
defaultKnowledge?: boolean;
|
|
59
|
+
authorId: string;
|
|
60
60
|
passages: KnowledgeDocumentPassage<LoadDocument['defaultProperties']>[];
|
|
61
61
|
};
|
|
62
62
|
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.gsx_information = void 0;
|
|
4
|
-
exports.gsx_information = {
|
|
5
|
-
content: "**GSX Studio** by [OneReach.ai](http://OneReach.ai) is a part of conversational AI and automation platform, specifically designed to help users build, test, and deploy Generative AI and Conversational AI experiences across various channels.\n\n**Key Features of GSX Studio by** [**OneReach.ai**](http://OneReach.ai)**:**\n\n1. **Generative AI Integration**:\n * GSX Studio incorporates Generative AI capabilities to create more sophisticated and dynamic conversational experiences. This allows businesses to use AI models to generate responses, content, and solutions tailored to specific user inputs.\n\n1. 1. **Low-Code/No-Code Development**:\n * Like the rest of the [OneReach.ai](http://OneReach.ai) platform, GSX Studio emphasizes low-code/no-code tools, enabling users with minimal technical expertise to build conversational workflows. Through an intuitive drag-and-drop interface, users can design and implement AI-driven workflows and solutions quickly.\n2. 1. **Multi-Channel Deployment**:\n * Conversations and AI-driven interactions created in GSX Studio can be deployed across multiple channels, such as SMS, email, voice, social media, and web chat. This omnichannel approach ensures that businesses can interact with customers wherever they are.\n3. 1. **Skill and Workflow Creation**:\n * GSX Studio allows businesses to create \"skills\" or automation workflows that integrate AI to handle specific tasks or processes. These skills can be as simple as responding to FAQs or as complex as managing customer interactions, support requests, or internal operations.\n4. 1. **APIs and Integrations**:\n * GSX Studio supports API integration, which allows businesses to connect their existing software systems and databases with the conversational AI workflows they build. This makes it possible to automate data-driven interactions and pull in real-time information.\n5. 1. **Collaboration and Team Building**:\n * GSX Studio allows multiple team members to collaborate on AI projects, whether building workflows or managing AI models. This collaborative approach helps teams work more efficiently and create solutions that meet the organization's goals.",
|
|
6
|
-
};
|
|
7
|
-
//# sourceMappingURL=gsx_information.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"gsx_information.js","sourceRoot":"","sources":["../../../../src/assets/default_knowledges/passages/gsx_information.ts"],"names":[],"mappings":";;;AAGa,QAAA,eAAe,GAAgE;IAC1F,OAAO,EAAE,8rEAgBiP;CAC3P,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.idw_general_overview = void 0;
|
|
4
|
-
exports.idw_general_overview = {
|
|
5
|
-
content: 'The IDW stands for intelligent digital worker, starting as a basic tool that gradually learns about you and your organization, becoming more intelligent and capable over time. It provides a chat experience with strong capabilities for writing and answering questions across all major channels, delivers relevant news and updates through a feed, and allows users to create and share custom skills through the GSX platform. IDWs are not just another productivity tool; they represent a fundamental shift in how work gets done.',
|
|
6
|
-
};
|
|
7
|
-
//# sourceMappingURL=idw_general_overview.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"idw_general_overview.js","sourceRoot":"","sources":["../../../../src/assets/default_knowledges/passages/idw_general_overview.ts"],"names":[],"mappings":";;;AAGa,QAAA,oBAAoB,GAAgE;IAC/F,OAAO,EAAE,8gBAA8gB;CACxhB,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.idw_key_features = void 0;
|
|
4
|
-
exports.idw_key_features = {
|
|
5
|
-
content: "1. **AI-Driven Automation**: IDWs are designed to leverage AI and automation to streamline workflows, handle routine tasks, and improve efficiency, freeing up human workers for more creative and strategic work. For instance, instead of manually searching for information or scheduling meetings, the system can automatically handle these tasks.\n 2. **Knowledge Management**: IDWs integrate with existing knowledge systems, making information easily accessible to users in a conversational manner. It simplifies tasks like finding documents, or getting quick answers to questions, which is especially helpful when onboarding new employees or handling new tasks.\n 3. **Customizable AI Skills**: Users can create custom AI skills to handle specific workflows or tasks within the workspace. For example, an organization can build a skill to automate reporting, handle customer inquiries, or manage internal support requests. These skills can be tailored to fit the specific needs of the company.\n 4. **24/7 Operations**: IDWs are available around the clock, ensuring continuous support for business processes, employee needs, and customer interactions. This allows teams and businesses to operate without downtime, improving responsiveness and productivity.\n 5. **No-Code Skill Creation (GSX)**: Through GSX Studio, users can create and deploy custom AI skills without needing any coding knowledge. This makes it easy for non-technical team members to build solutions that automate tasks, answer queries, or handle workflows.\n 6. **Integrations**: IDWs seamlessly integrate with existing business tools such as CRM systems, document management, and task tracking tools, enabling organizations to connect their workflows and data into a unified, intelligent environment.\n 7. **Self-management:** IDW has the capability to manage itself, allowing users to set up, tune, and adjust the workspace through pre-built skills. Additionally, users can easily add new skills to automate processes or enhance functionality.",
|
|
6
|
-
};
|
|
7
|
-
//# sourceMappingURL=idw_key_features.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"idw_key_features.js","sourceRoot":"","sources":["../../../../src/assets/default_knowledges/passages/idw_key_features.ts"],"names":[],"mappings":";;;AAGa,QAAA,gBAAgB,GAAgE;IAC3F,OAAO,EAAE,i/DAM2O;CACrP,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.idw_use_case = void 0;
|
|
4
|
-
exports.idw_use_case = {
|
|
5
|
-
content: "Whether you're an individual, a small business, or an enterprise, IDW offers endless possibilities tailored to your needs. From automating customer interactions to streamlining internal processes, IDW adapts to your business. Below is just a glimpse of the countless use cases IDW can support\u2014your imagination is the only limit to how you can put it to work.\n\n* **Employee Onboarding**: IDWs can assist new employees by offering personalized onboarding experiences. The workspace can guide them through training materials, answer questions about the company, and help them become familiar with internal tools and processes quickly.\n* **Customer Service and Support**: Internally, IDWs can be used to support teams like customer service by automating the retrieval of information, summarizing customer interactions, or automating repetitive queries. Externally, customer-facing teams can use these digital workspaces to interact with customers via AI chatbots.\n* **Knowledge Sharing and Retrieval**: Employees can access a centralized repository of knowledge with AI assistance to help retrieve information in seconds. This is particularly useful for large organizations where finding the right information can be time-consuming.\n* **Internal Process Automation**: Repetitive internal processes such as data entry, approval workflows, or document management can be automated within an IDW, freeing employees from manual tasks and improving operational efficiency.",
|
|
6
|
-
};
|
|
7
|
-
//# sourceMappingURL=idw_use_case.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"idw_use_case.js","sourceRoot":"","sources":["../../../../src/assets/default_knowledges/passages/idw_use_case.ts"],"names":[],"mappings":";;;AAGa,QAAA,YAAY,GAAgE;IACvF,OAAO,EAAE,08CAKiO;CAC3O,CAAC"}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.default_knowledges = void 0;
|
|
18
|
-
var news_feed_1 = require("./news_feed");
|
|
19
|
-
var idw_use_case_1 = require("./idw_use_case");
|
|
20
|
-
var gsx_information_1 = require("./gsx_information");
|
|
21
|
-
var skills_overview_1 = require("./skills_overview");
|
|
22
|
-
var idw_key_features_1 = require("./idw_key_features");
|
|
23
|
-
var onereach_information_1 = require("./onereach_information");
|
|
24
|
-
var idw_general_overview_1 = require("./idw_general_overview");
|
|
25
|
-
__exportStar(require("./news_feed"), exports);
|
|
26
|
-
__exportStar(require("./idw_use_case"), exports);
|
|
27
|
-
__exportStar(require("./gsx_information"), exports);
|
|
28
|
-
__exportStar(require("./skills_overview"), exports);
|
|
29
|
-
__exportStar(require("./idw_key_features"), exports);
|
|
30
|
-
__exportStar(require("./onereach_information"), exports);
|
|
31
|
-
__exportStar(require("./idw_general_overview"), exports);
|
|
32
|
-
exports.default_knowledges = [
|
|
33
|
-
news_feed_1.news_feed,
|
|
34
|
-
idw_use_case_1.idw_use_case,
|
|
35
|
-
gsx_information_1.gsx_information,
|
|
36
|
-
skills_overview_1.skills_overview,
|
|
37
|
-
idw_key_features_1.idw_key_features,
|
|
38
|
-
onereach_information_1.onereach_information,
|
|
39
|
-
idw_general_overview_1.idw_general_overview,
|
|
40
|
-
];
|
|
41
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/assets/default_knowledges/passages/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,yCAAwC;AACxC,+CAA8C;AAC9C,qDAAoD;AACpD,qDAAoD;AACpD,uDAAsD;AACtD,+DAA8D;AAC9D,+DAA8D;AAE9D,8CAA4B;AAC5B,iDAA+B;AAC/B,oDAAkC;AAClC,oDAAkC;AAClC,qDAAmC;AACnC,yDAAuC;AACvC,yDAAuC;AAE1B,QAAA,kBAAkB,GAAG;IAChC,qBAAS;IACT,2BAAY;IACZ,iCAAe;IACf,iCAAe;IACf,mCAAgB;IAChB,2CAAoB;IACpB,2CAAoB;CACrB,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.news_feed = void 0;
|
|
4
|
-
exports.news_feed = {
|
|
5
|
-
content: 'News Feed allows users to create and share posts that will be visible to all product users, including guests without an account, authorized users, and administrators. This feature enhances user engagement and community interaction by providing a platform for sharing updates, news, and important information. By allowing all users, including guests, to view posts, this feature fosters a sense of community and encourages engagement. Users can stay informed about the latest news and updates, making the platform more interactive and dynamic.',
|
|
6
|
-
};
|
|
7
|
-
//# sourceMappingURL=news_feed.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"news_feed.js","sourceRoot":"","sources":["../../../../src/assets/default_knowledges/passages/news_feed.ts"],"names":[],"mappings":";;;AAGa,QAAA,SAAS,GAAgE;IACpF,OAAO,EAAE,giBAAgiB;CAC1iB,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.onereach_information = void 0;
|
|
4
|
-
exports.onereach_information = {
|
|
5
|
-
content: "[OneReach.ai](http://onereach.ai/) is a platform focused on creating conversational AI and automation solutions that enable organizations to build intelligent applications. It is designed to empower users to create powerful, AI-driven workflows and conversational experiences without needing to code, using a visual, drag-and-drop interface.\n\n**Key Aspects of** [**OneReach.ai**](http://onereach.ai/)**:**\n\n1. **Conversational AI Platform**:\n * [OneReach.ai](http://onereach.ai/) helps businesses design, build, and deploy conversational AI systems across various channels like messaging apps, voice assistants, and websites. This allows companies to automate customer interactions, support services, and other business processes.\n\n1. 1. **Low-Code/No-Code Development**:\n * The platform offers tools that allow non-developers to create conversational workflows without needing to write code. This makes it accessible for a wide range of users, from business analysts to product managers.\n2. 1. **Omnichannel Integration**:\n * [OneReach.ai](http://onereach.ai/) enables businesses to create seamless conversational experiences across multiple channels\u2014such as SMS, web chat, voice, and social media\u2014making it easy to manage interactions with customers regardless of the medium they use.\n3. 1. **AI and Automation**:\n * The platform incorporates artificial intelligence to power conversations, automate repetitive tasks, and enhance customer interactions through natural language understanding (NLU) and machine learning.\n * Its capabilities include AI for customer service, data collection, appointment scheduling, and task automation.\n4. 1. **Intelligent Digital Workspaces (IDW)**:\n * [OneReach.ai](http://onereach.ai/) offers solutions for creating **Intelligent Digital Workspaces**\u2014virtual environments where teams can collaborate using AI-driven tools to automate internal processes, share knowledge, and streamline communication. This concept is designed to improve productivity by enabling workers to interact with knowledge and systems in a more conversational, efficient way.\n5. 1. **Custom AI Skills**:\n * Users can create custom \u201Cskills\u201D or automation modules that fit specific business needs, from simple task automation to more complex conversational AI-driven workflows.\n6. 1. **API and Integration**:\n * [OneReach.ai](http://onereach.ai/) provides APIs for integrating the platform with existing enterprise systems and other third-party applications. This allows businesses to incorporate AI and automation into their current tools and processes.\n\n**Common Use Cases:**\n\n* **Customer Support**: Automating FAQs, handling customer inquiries, and assisting support agents in resolving issues faster.\n* **Sales and Marketing**: Automating lead generation, nurturing customers, and facilitating customer interactions across channels.\n* **Internal Operations**: Streamlining internal workflows by automating repetitive tasks, managing knowledge, and simplifying communication.",
|
|
6
|
-
};
|
|
7
|
-
//# sourceMappingURL=onereach_information.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"onereach_information.js","sourceRoot":"","sources":["../../../../src/assets/default_knowledges/passages/onereach_information.ts"],"names":[],"mappings":";;;AAGa,QAAA,oBAAoB,GAAgE;IAC/F,OAAO,EAAE,ikGAyBqI;CAC/I,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.skills_overview = void 0;
|
|
4
|
-
exports.skills_overview = {
|
|
5
|
-
content: "In IDW, skills are tools that automate tasks and make work more efficient. Each skill serves a specific purpose, like managing knowledge or reviewing reports. The set of skills you see depends on your role within the workspace\u2014whether you\u2019re a user or an admin, you\u2019ll have access to different skills.\n\n**Available skills overview:**\n\n* The Manage Knowledge skill empowers you to share and maintain valuable information within your organization, you can actively contribute to and manage the information that supports your team\u2019s success. It allows users to offer, create, and edit knowledge entries.\n* The Manage User skill provides administrators with comprehensive control over user roles and invitations. This skill enables role changes, from user to admin and vice versa, and allows admins to manage invitations from other users. Additionally, it offers the capability to invite teammates, ensuring efficient team collaboration and platform access management.\n* The Customize IDW skill is designed to give Admins the flexibility to personalize their IDW to better represent their team and goals. This skill enables you to modify the IDW\u2019s name, description, and avatar, as well as adjust its role.\n* The Manage Skills is designed to give Admins full control over the skills available in your IDW. With this feature, Admins can rename, delete, or add new skills, ensuring that your IDW remains relevant and useful for all team members.\n* The Manage Domains skill provides Admins with the ability to effectively organize and categorize skills within your IDW. By effectively managing domains and assigning skills to them, you can create a more streamlined and efficient workspace for your team.\n* The Reporting skill provides real-time insights into your IDW and its users, helping you track performance and behavior. With this data, you can continuously improve your product by making informed decisions based on how it's being used.",
|
|
6
|
-
};
|
|
7
|
-
//# sourceMappingURL=skills_overview.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"skills_overview.js","sourceRoot":"","sources":["../../../../src/assets/default_knowledges/passages/skills_overview.ts"],"names":[],"mappings":";;;AAGa,QAAA,eAAe,GAAgE;IAC1F,OAAO,EAAE,i8DASuO;CACjP,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { KnowledgeDocumentPassage } from '../../../types';
|
|
2
|
-
import { LoadDocument } from '@or-sdk/lookup';
|
|
3
|
-
|
|
4
|
-
export const idw_general_overview: KnowledgeDocumentPassage<LoadDocument['defaultProperties']> = {
|
|
5
|
-
content: 'The IDW stands for intelligent digital worker, starting as a basic tool that gradually learns about you and your organization, becoming more intelligent and capable over time. It provides a chat experience with strong capabilities for writing and answering questions across all major channels, delivers relevant news and updates through a feed, and allows users to create and share custom skills through the GSX platform. IDWs are not just another productivity tool; they represent a fundamental shift in how work gets done.',
|
|
6
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { news_feed } from './news_feed';
|
|
2
|
-
import { idw_use_case } from './idw_use_case';
|
|
3
|
-
import { gsx_information } from './gsx_information';
|
|
4
|
-
import { skills_overview } from './skills_overview';
|
|
5
|
-
import { idw_key_features } from './idw_key_features';
|
|
6
|
-
import { onereach_information } from './onereach_information';
|
|
7
|
-
import { idw_general_overview } from './idw_general_overview';
|
|
8
|
-
|
|
9
|
-
export * from './news_feed';
|
|
10
|
-
export * from './idw_use_case';
|
|
11
|
-
export * from './gsx_information';
|
|
12
|
-
export * from './skills_overview';
|
|
13
|
-
export * from './idw_key_features';
|
|
14
|
-
export * from './onereach_information';
|
|
15
|
-
export * from './idw_general_overview';
|
|
16
|
-
|
|
17
|
-
export const default_knowledges = [
|
|
18
|
-
news_feed,
|
|
19
|
-
idw_use_case,
|
|
20
|
-
gsx_information,
|
|
21
|
-
skills_overview,
|
|
22
|
-
idw_key_features,
|
|
23
|
-
onereach_information,
|
|
24
|
-
idw_general_overview,
|
|
25
|
-
];
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { KnowledgeDocumentPassage } from '../../../types';
|
|
2
|
-
import { LoadDocument } from '@or-sdk/lookup';
|
|
3
|
-
|
|
4
|
-
export const news_feed: KnowledgeDocumentPassage<LoadDocument['defaultProperties']> = {
|
|
5
|
-
content: 'News Feed allows users to create and share posts that will be visible to all product users, including guests without an account, authorized users, and administrators. This feature enhances user engagement and community interaction by providing a platform for sharing updates, news, and important information. By allowing all users, including guests, to view posts, this feature fosters a sense of community and encourages engagement. Users can stay informed about the latest news and updates, making the platform more interactive and dynamic.',
|
|
6
|
-
};
|