@qontext/n8n-nodes-qontext 0.1.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.
Files changed (41) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +123 -0
  3. package/dist/credentials/QontextApi.credentials.d.ts +13 -0
  4. package/dist/credentials/QontextApi.credentials.js +54 -0
  5. package/dist/credentials/QontextApi.credentials.js.map +1 -0
  6. package/dist/credentials/qontext_dark.svg +17 -0
  7. package/dist/credentials/qontext_light.svg +21 -0
  8. package/dist/node_modules/@n8n/node-cli/dist/template/templates/declarative/custom/template/nodes/Example/example.dark.svg +13 -0
  9. package/dist/node_modules/@n8n/node-cli/dist/template/templates/declarative/custom/template/nodes/Example/example.svg +13 -0
  10. package/dist/node_modules/@n8n/node-cli/dist/template/templates/declarative/github-issues/template/icons/github.dark.svg +3 -0
  11. package/dist/node_modules/@n8n/node-cli/dist/template/templates/declarative/github-issues/template/icons/github.svg +3 -0
  12. package/dist/node_modules/@n8n/node-cli/dist/template/templates/programmatic/example/template/nodes/Example/example.dark.svg +13 -0
  13. package/dist/node_modules/@n8n/node-cli/dist/template/templates/programmatic/example/template/nodes/Example/example.svg +13 -0
  14. package/dist/nodes/Qontext/Qontext.node.d.ts +4 -0
  15. package/dist/nodes/Qontext/Qontext.node.js +54 -0
  16. package/dist/nodes/Qontext/Qontext.node.js.map +1 -0
  17. package/dist/nodes/Qontext/Qontext.node.json +18 -0
  18. package/dist/nodes/Qontext/actions/ingestion/ingestDataWithMetadata.operation.d.ts +2 -0
  19. package/dist/nodes/Qontext/actions/ingestion/ingestDataWithMetadata.operation.js +217 -0
  20. package/dist/nodes/Qontext/actions/ingestion/ingestDataWithMetadata.operation.js.map +1 -0
  21. package/dist/nodes/Qontext/actions/ingestion/ingestUnstructuredText.operation.d.ts +2 -0
  22. package/dist/nodes/Qontext/actions/ingestion/ingestUnstructuredText.operation.js +37 -0
  23. package/dist/nodes/Qontext/actions/ingestion/ingestUnstructuredText.operation.js.map +1 -0
  24. package/dist/nodes/Qontext/actions/ingestion/ingestWebsite.operation.d.ts +2 -0
  25. package/dist/nodes/Qontext/actions/ingestion/ingestWebsite.operation.js +61 -0
  26. package/dist/nodes/Qontext/actions/ingestion/ingestWebsite.operation.js.map +1 -0
  27. package/dist/nodes/Qontext/actions/ingestion/ingestion.resource.d.ts +2 -0
  28. package/dist/nodes/Qontext/actions/ingestion/ingestion.resource.js +80 -0
  29. package/dist/nodes/Qontext/actions/ingestion/ingestion.resource.js.map +1 -0
  30. package/dist/nodes/Qontext/actions/retrieval/retrieval.resource.d.ts +2 -0
  31. package/dist/nodes/Qontext/actions/retrieval/retrieval.resource.js +41 -0
  32. package/dist/nodes/Qontext/actions/retrieval/retrieval.resource.js.map +1 -0
  33. package/dist/nodes/Qontext/actions/retrieval/retrieveContext.operation.d.ts +2 -0
  34. package/dist/nodes/Qontext/actions/retrieval/retrieveContext.operation.js +69 -0
  35. package/dist/nodes/Qontext/actions/retrieval/retrieveContext.operation.js.map +1 -0
  36. package/dist/nodes/Qontext/qontext_dark.svg +17 -0
  37. package/dist/nodes/Qontext/qontext_light.svg +21 -0
  38. package/dist/package.json +58 -0
  39. package/dist/tsconfig.tsbuildinfo +1 -0
  40. package/index.js +0 -0
  41. package/package.json +58 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Qontext
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,123 @@
1
+ # @qontext/n8n-nodes-qontext
2
+
3
+ This is an n8n community node. It lets you interact with the Qontext API in your n8n workflows.
4
+
5
+ Qontext allows you to ingest, store, and retrieve contextual information from various data sources. This node enables you to integrate Qontext's context retrieval and ingestion capabilities into your n8n automation workflows.
6
+
7
+ [n8n](https://n8n.io/) is a [fair-code licensed](https://docs.n8n.io/sustainable-use-license/) workflow automation platform.
8
+
9
+ ## Table of Contents
10
+
11
+ - [Installation](#installation)
12
+ - [Operations](#operations)
13
+ - [Retrieval Operations](#retrieval-operations)
14
+ - [Ingestion Operations](#ingestion-operations)
15
+ - [Credentials](#credentials)
16
+ - [Compatibility](#compatibility)
17
+ - [Usage](#usage)
18
+ - [Resources](#resources)
19
+
20
+ ## Installation
21
+
22
+ Follow the [installation guide](https://docs.n8n.io/integrations/community-nodes/installation/) in the n8n community nodes documentation.
23
+
24
+ ## Operations
25
+
26
+ The Qontext node supports two main resources: **Retrieval** and **Ingestion**.
27
+
28
+ ### Retrieval Operations
29
+
30
+ #### Retrieve Context
31
+ Retrieves relevant context from a specified vault based on a prompt.
32
+
33
+ Example: retrieve information from older support tickets, documentation, and discussions to draft replies to new customer requests.
34
+
35
+ **Parameters:**
36
+ - **Vault ID** (required): The ID of the vault that should be used to retrieve context
37
+ - **Prompt** (required): The prompt to retrieve context for
38
+ - **Additional Fields:**
39
+ - **Limit** (required, default: 5): Number of nodes on first level to consider (minimum: 1)
40
+ - **Depth** (required, default: 1): Depth of nodes to retrieve from the graph
41
+
42
+ ### Ingestion Operations
43
+
44
+ #### Ingest Data with Metadata
45
+ Ingests structured or unstructured data with metadata into a specified vault. This operation allows you to add data with source tracking information.
46
+
47
+ **Parameters:**
48
+ - **Vault ID** (required): The ID of the vault that the data should be ingested into
49
+ - **Text** (required): The unstructured data (plain or markdown text) to ingest
50
+ - **Data Source Name** (required): The system or platform where the data originates
51
+ - Options: HubSpot, Web, Gmail, GoogleDrive, API, Notion, Gong, Slack
52
+ - **Data Source Type** (required): The specific type of data being ingested from the source
53
+ - Options: Contact, Company, Deal, Lead, Note, Task, Meeting, Email, Website, Page, File, None, Call, Message
54
+ - **Data Source ID** (required): The unique identifier of the data item in the source system
55
+
56
+ #### Ingest Unstructured Text
57
+ Ingests plain unstructured text into a specified vault without metadata requirements.
58
+
59
+ **Parameters:**
60
+ - **Vault ID** (required): The ID of the vault that the data should be ingested into
61
+ - **Text** (required): The text data to ingest
62
+
63
+ #### Ingest Website
64
+ Ingests content from a website URL into a specified vault. Supports both single page and deep crawl options.
65
+
66
+ **Parameters:**
67
+ - **Vault ID** (required): The ID of the vault that the data should be ingested into
68
+ - **URL** (required): The website URL to ingest
69
+ - **Type** (required): The type of ingestion to perform
70
+ - **Single Page**: Ingests only the given URL. Use for one-off pages or articles.
71
+ - **Deep Crawl**: Crawls the whole site from that URL and follows links, scrapes multiple pages as markdown, and ingests them in one go.
72
+
73
+ ## Credentials
74
+
75
+ To use the Qontext node, you need to set up Qontext API credentials.
76
+
77
+ ### Prerequisites
78
+
79
+ 1. Sign up for a Qontext account at [https://qontext.ai](https://qontext.ai)
80
+ 2. Create an API key in your Qontext account (e.g. in **Access Keys** section in the respective Qontext vault)
81
+
82
+ ### Setting Up Credentials
83
+
84
+ 1. In n8n, go to **Credentials** → **Add Credential**
85
+ 2. Search for **Qontext API**
86
+ 3. Enter the API key you created in the Qontext UI:
87
+ - **X-API-Key**: Your Qontext API key (this field is masked for security)
88
+ - **Domain**: The API domain (default: `https://api.qontext.ai`)
89
+
90
+ The credentials will be automatically validated when you save them.
91
+
92
+ ## Compatibility
93
+
94
+ - **Minimum n8n version**: Compatible with n8n versions that support community nodes
95
+ - **API Version**: Uses Qontext API v1
96
+ - **Node API Version**: 1
97
+
98
+ ## Usage
99
+
100
+ ### Basic Workflow Example
101
+
102
+ 1. **Set up credentials**: Create an API key in your [Qontext account](https://qontext.ai), then in n8n add the **Qontext API** credential and paste the key.
103
+ 2. **Add the Qontext node** to your workflow and choose **Retrieval** or **Ingestion**.
104
+ 3. **Pick an operation** (e.g. Retrieve Context, Ingest Website) and fill in the required fields (Vault ID, Prompt or URL, etc.).
105
+ 4. **Run the workflow** to retrieve context or ingest data into your vault.
106
+
107
+ For general n8n workflow basics, see the [n8n documentation](https://docs.n8n.io/try-it-out/).
108
+
109
+ ### Common Use Cases
110
+
111
+ - **Data ingestion**: Ingest data from Slack, Gmail, HubSpot, and other sources into your vaults so it can be queried later.
112
+ - **Personalized emails**: Pull in relevant context (e.g. customer history, product info) when drafting personalized marketing emails.
113
+ - **Lost deal reactivation**: Retrieve context on why a deal was lost, then draft personalized reactivation messages.
114
+ - **Sales call prep**: Before a call, get context for the lead to surface notes, deals, and past interactions.
115
+ - **Support and answer drafts**: Retrieve information related to a new support tickets in older tickets, documentations, discussions etc. and generate answer drafts for customer requests.
116
+
117
+ For new n8n users, check out the [Try it out](https://docs.n8n.io/try-it-out/) documentation to get started with n8n basics.
118
+
119
+ ## Resources
120
+
121
+ * [n8n community nodes documentation](https://docs.n8n.io/integrations/#community-nodes)
122
+ * [Qontext Documentation](https://docs.qontext.ai/get-started)
123
+ * [GitHub Repository](https://github.com/qontext-ai/n8n-nodes-qontext)
@@ -0,0 +1,13 @@
1
+ import type { IAuthenticateGeneric, ICredentialTestRequest, ICredentialType, INodeProperties } from 'n8n-workflow';
2
+ export declare class QontextApi implements ICredentialType {
3
+ name: string;
4
+ displayName: string;
5
+ documentationUrl: string;
6
+ icon: {
7
+ readonly light: "file:qontext_light.svg";
8
+ readonly dark: "file:qontext_dark.svg";
9
+ };
10
+ properties: INodeProperties[];
11
+ authenticate: IAuthenticateGeneric;
12
+ test: ICredentialTestRequest;
13
+ }
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.QontextApi = void 0;
4
+ class QontextApi {
5
+ constructor() {
6
+ this.name = 'qontextApi';
7
+ this.displayName = 'Qontext API';
8
+ this.documentationUrl = 'https://docs.qontext.ai/get-started';
9
+ this.icon = {
10
+ light: 'file:qontext_light.svg',
11
+ dark: 'file:qontext_dark.svg',
12
+ };
13
+ this.properties = [
14
+ {
15
+ displayName: 'Domain',
16
+ name: 'domain',
17
+ type: 'string',
18
+ default: 'https://api.qontext.ai',
19
+ },
20
+ {
21
+ displayName: 'X-API-Key',
22
+ name: 'xApiKey',
23
+ type: 'string',
24
+ default: '',
25
+ typeOptions: {
26
+ password: true,
27
+ }
28
+ },
29
+ ];
30
+ this.authenticate = {
31
+ type: 'generic',
32
+ properties: {
33
+ headers: {
34
+ 'X-API-Key': '={{$credentials.xApiKey}}',
35
+ },
36
+ },
37
+ };
38
+ this.test = {
39
+ request: {
40
+ method: 'POST',
41
+ baseURL: '={{$credentials?.domain}}',
42
+ url: '/auth/validate-key',
43
+ headers: {
44
+ 'X-API-Key': '={{$credentials?.xApiKey}}',
45
+ 'accept': '*/*',
46
+ },
47
+ body: {},
48
+ },
49
+ };
50
+ }
51
+ }
52
+ exports.QontextApi = QontextApi;
53
+ ;
54
+ //# sourceMappingURL=QontextApi.credentials.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QontextApi.credentials.js","sourceRoot":"","sources":["../../credentials/QontextApi.credentials.ts"],"names":[],"mappings":";;;AAOA,MAAa,UAAU;IAAvB;QACC,SAAI,GAAG,YAAY,CAAC;QAEpB,gBAAW,GAAG,aAAa,CAAC;QAE5B,qBAAgB,GAAG,qCAAqC,CAAC;QACzD,SAAI,GAAG;YACN,KAAK,EAAE,wBAAwB;YAC/B,IAAI,EAAE,uBAAuB;SACpB,CAAC;QACX,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,QAAQ;gBACrB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,wBAAwB;aACjC;YACD;gBACC,WAAW,EAAE,WAAW;gBACxB,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE;oBACZ,QAAQ,EAAE,IAAI;iBACd;aACD;SACD,CAAC;QAEF,iBAAY,GAAyB;YACpC,IAAI,EAAE,SAAS;YACf,UAAU,EAAE;gBACX,OAAO,EAAE;oBACR,WAAW,EAAE,2BAA2B;iBACxC;aACD;SACD,CAAC;QAEF,SAAI,GAA2B;YAC9B,OAAO,EAAE;gBACR,MAAM,EAAE,MAAM;gBACd,OAAO,EAAE,2BAA2B;gBACpC,GAAG,EAAE,oBAAoB;gBACzB,OAAO,EAAE;oBACR,WAAW,EAAE,4BAA4B;oBACzC,QAAQ,EAAE,KAAK;iBACf;gBACD,IAAI,EAAE,EAAE;aACR;SACD,CAAA;IACF,CAAC;CAAA;AAjDD,gCAiDC;AAAA,CAAC"}
@@ -0,0 +1,17 @@
1
+ <svg width="168" height="168" viewBox="0 0 168 168" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <g filter="url(#filter0_i_2611_5575)">
3
+ <path d="M57.3095 10.971C71.9338 -3.65699 95.6451 -3.65699 110.27 10.971L156.611 57.3218C171.235 71.9498 171.235 95.6662 156.611 110.294L150.319 116.587C150.314 116.57 150.308 116.552 150.303 116.535C138.373 125.33 120.608 117.021 120.594 101.366L120.592 100.142C120.577 100.146 120.562 100.15 120.546 100.154C120.654 99.2462 120.709 98.3229 120.709 97.3864V70.6982C120.709 57.769 110.23 47.2875 97.3032 47.2875H70.6208C57.6943 47.2875 47.2151 57.769 47.2151 70.6982V97.3864C47.2151 110.316 57.6943 120.797 70.6208 120.797H97.3032C97.7736 120.797 98.2403 120.782 98.7038 120.755C98.6995 120.769 98.6949 120.783 98.6902 120.797H100.896C117.348 120.797 125.703 140.42 114.606 152.281C114.613 152.283 114.62 152.285 114.627 152.287L110.27 156.645C95.6451 171.273 71.9338 171.273 57.3095 156.645L10.9682 110.294C-3.65608 95.6662 -3.65608 71.9498 10.9682 57.3218L57.3095 10.971Z" fill="white"/>
4
+ </g>
5
+ <defs>
6
+ <filter id="filter0_i_2611_5575" x="0" y="0" width="167.579" height="167.616" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
7
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
8
+ <feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/>
9
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
10
+ <feOffset/>
11
+ <feGaussianBlur stdDeviation="5"/>
12
+ <feComposite in2="hardAlpha" operator="arithmetic" k2="-1" k3="1"/>
13
+ <feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.4 0"/>
14
+ <feBlend mode="normal" in2="shape" result="effect1_innerShadow_2611_5575"/>
15
+ </filter>
16
+ </defs>
17
+ </svg>
@@ -0,0 +1,21 @@
1
+ <svg width="168" height="168" viewBox="0 0 168 168" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <g filter="url(#filter0_i_2611_5571)">
3
+ <path d="M57.3095 10.971C71.9338 -3.65699 95.6451 -3.65699 110.27 10.971L156.611 57.3218C171.235 71.9498 171.235 95.6662 156.611 110.294L150.319 116.587C150.314 116.57 150.308 116.552 150.303 116.535C138.373 125.33 120.608 117.021 120.594 101.366L120.592 100.142C120.577 100.146 120.562 100.15 120.546 100.154C120.654 99.2462 120.709 98.3229 120.709 97.3864V70.6982C120.709 57.769 110.23 47.2875 97.3032 47.2875H70.6208C57.6943 47.2875 47.2151 57.769 47.2151 70.6982V97.3864C47.2151 110.316 57.6943 120.797 70.6208 120.797H97.3032C97.7736 120.797 98.2403 120.782 98.7038 120.755C98.6995 120.769 98.6949 120.783 98.6902 120.797H100.896C117.348 120.797 125.703 140.42 114.606 152.281C114.613 152.283 114.62 152.285 114.627 152.287L110.27 156.645C95.6451 171.273 71.9338 171.273 57.3095 156.645L10.9682 110.294C-3.65608 95.6662 -3.65608 71.9498 10.9682 57.3218L57.3095 10.971Z" fill="url(#paint0_linear_2611_5571)"/>
4
+ </g>
5
+ <defs>
6
+ <filter id="filter0_i_2611_5571" x="0" y="0" width="167.579" height="167.616" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
7
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
8
+ <feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/>
9
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
10
+ <feOffset/>
11
+ <feGaussianBlur stdDeviation="5"/>
12
+ <feComposite in2="hardAlpha" operator="arithmetic" k2="-1" k3="1"/>
13
+ <feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0"/>
14
+ <feBlend mode="normal" in2="shape" result="effect1_innerShadow_2611_5571"/>
15
+ </filter>
16
+ <linearGradient id="paint0_linear_2611_5571" x1="34.5" y1="-1" x2="83.7896" y2="167.616" gradientUnits="userSpaceOnUse">
17
+ <stop stop-color="#29282B"/>
18
+ <stop offset="1"/>
19
+ </linearGradient>
20
+ </defs>
21
+ </svg>
@@ -0,0 +1,13 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="aquamarine"
2
+ stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-cpu">
3
+ <rect x="4" y="4" width="16" height="16" rx="2" ry="2"></rect>
4
+ <rect x="9" y="9" width="6" height="6"></rect>
5
+ <line x1="9" y1="1" x2="9" y2="4"></line>
6
+ <line x1="15" y1="1" x2="15" y2="4"></line>
7
+ <line x1="9" y1="20" x2="9" y2="23"></line>
8
+ <line x1="15" y1="20" x2="15" y2="23"></line>
9
+ <line x1="20" y1="9" x2="23" y2="9"></line>
10
+ <line x1="20" y1="14" x2="23" y2="14"></line>
11
+ <line x1="1" y1="9" x2="4" y2="9"></line>
12
+ <line x1="1" y1="14" x2="4" y2="14"></line>
13
+ </svg>
@@ -0,0 +1,13 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="darkblue"
2
+ stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-cpu">
3
+ <rect x="4" y="4" width="16" height="16" rx="2" ry="2"></rect>
4
+ <rect x="9" y="9" width="6" height="6"></rect>
5
+ <line x1="9" y1="1" x2="9" y2="4"></line>
6
+ <line x1="15" y1="1" x2="15" y2="4"></line>
7
+ <line x1="9" y1="20" x2="9" y2="23"></line>
8
+ <line x1="15" y1="20" x2="15" y2="23"></line>
9
+ <line x1="20" y1="9" x2="23" y2="9"></line>
10
+ <line x1="20" y1="14" x2="23" y2="14"></line>
11
+ <line x1="1" y1="9" x2="4" y2="9"></line>
12
+ <line x1="1" y1="14" x2="4" y2="14"></line>
13
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M20.0165 0C8.94791 0 0 9.01388 0 20.1653C0 29.0792 5.73324 36.6246 13.6868 39.2952C14.6812 39.496 15.0454 38.8613 15.0454 38.3274C15.0454 37.8599 15.0126 36.2575 15.0126 34.5879C9.4445 35.79 8.28498 32.1841 8.28498 32.1841C7.39015 29.847 6.06429 29.2463 6.06429 29.2463C4.24185 28.011 6.19704 28.011 6.19704 28.011C8.21861 28.1446 9.27938 30.081 9.27938 30.081C11.0686 33.1522 13.9518 32.2844 15.1118 31.7502C15.2773 30.4481 15.8079 29.5467 16.3713 29.046C11.9303 28.5785 7.25781 26.8425 7.25781 19.0967C7.25781 16.8932 8.05267 15.0905 9.31216 13.6884C9.11344 13.1877 8.41732 11.1174 9.51128 8.34644C9.51128 8.34644 11.2014 7.81217 15.0122 10.4164C16.6438 9.97495 18.3263 9.7504 20.0165 9.74851C21.7067 9.74851 23.4295 9.98246 25.0205 10.4164C28.8317 7.81217 30.5218 8.34644 30.5218 8.34644C31.6158 11.1174 30.9192 13.1877 30.7205 13.6884C32.0132 15.0905 32.7753 16.8932 32.7753 19.0967C32.7753 26.8425 28.1028 28.5449 23.6287 29.046C24.358 29.6802 24.9873 30.882 24.9873 32.7851C24.9873 35.4893 24.9545 37.6596 24.9545 38.327C24.9545 38.8613 25.3192 39.496 26.3132 39.2956C34.2667 36.6242 39.9999 29.0792 39.9999 20.1653C40.0327 9.01388 31.052 0 20.0165 0Z" fill="white"/>
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M20.0165 0C8.94791 0 0 9.01388 0 20.1653C0 29.0792 5.73324 36.6246 13.6868 39.2952C14.6812 39.496 15.0454 38.8613 15.0454 38.3274C15.0454 37.8599 15.0126 36.2575 15.0126 34.5879C9.4445 35.79 8.28498 32.1841 8.28498 32.1841C7.39015 29.847 6.06429 29.2463 6.06429 29.2463C4.24185 28.011 6.19704 28.011 6.19704 28.011C8.21861 28.1446 9.27938 30.081 9.27938 30.081C11.0686 33.1522 13.9518 32.2844 15.1118 31.7502C15.2773 30.4481 15.8079 29.5467 16.3713 29.046C11.9303 28.5785 7.25781 26.8425 7.25781 19.0967C7.25781 16.8932 8.05267 15.0905 9.31216 13.6884C9.11344 13.1877 8.41732 11.1174 9.51128 8.34644C9.51128 8.34644 11.2014 7.81217 15.0122 10.4164C16.6438 9.97495 18.3263 9.7504 20.0165 9.74851C21.7067 9.74851 23.4295 9.98246 25.0205 10.4164C28.8317 7.81217 30.5218 8.34644 30.5218 8.34644C31.6158 11.1174 30.9192 13.1877 30.7205 13.6884C32.0132 15.0905 32.7753 16.8932 32.7753 19.0967C32.7753 26.8425 28.1028 28.5449 23.6287 29.046C24.358 29.6802 24.9873 30.882 24.9873 32.7851C24.9873 35.4893 24.9545 37.6596 24.9545 38.327C24.9545 38.8613 25.3192 39.496 26.3132 39.2956C34.2667 36.6242 39.9999 29.0792 39.9999 20.1653C40.0327 9.01388 31.052 0 20.0165 0Z" fill="#24292F"/>
3
+ </svg>
@@ -0,0 +1,13 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="aquamarine"
2
+ stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-cpu">
3
+ <rect x="4" y="4" width="16" height="16" rx="2" ry="2"></rect>
4
+ <rect x="9" y="9" width="6" height="6"></rect>
5
+ <line x1="9" y1="1" x2="9" y2="4"></line>
6
+ <line x1="15" y1="1" x2="15" y2="4"></line>
7
+ <line x1="9" y1="20" x2="9" y2="23"></line>
8
+ <line x1="15" y1="20" x2="15" y2="23"></line>
9
+ <line x1="20" y1="9" x2="23" y2="9"></line>
10
+ <line x1="20" y1="14" x2="23" y2="14"></line>
11
+ <line x1="1" y1="9" x2="4" y2="9"></line>
12
+ <line x1="1" y1="14" x2="4" y2="14"></line>
13
+ </svg>
@@ -0,0 +1,13 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="darkblue"
2
+ stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-cpu">
3
+ <rect x="4" y="4" width="16" height="16" rx="2" ry="2"></rect>
4
+ <rect x="9" y="9" width="6" height="6"></rect>
5
+ <line x1="9" y1="1" x2="9" y2="4"></line>
6
+ <line x1="15" y1="1" x2="15" y2="4"></line>
7
+ <line x1="9" y1="20" x2="9" y2="23"></line>
8
+ <line x1="15" y1="20" x2="15" y2="23"></line>
9
+ <line x1="20" y1="9" x2="23" y2="9"></line>
10
+ <line x1="20" y1="14" x2="23" y2="14"></line>
11
+ <line x1="1" y1="9" x2="4" y2="9"></line>
12
+ <line x1="1" y1="14" x2="4" y2="14"></line>
13
+ </svg>
@@ -0,0 +1,4 @@
1
+ import { type INodeType, type INodeTypeDescription } from 'n8n-workflow';
2
+ export declare class Qontext implements INodeType {
3
+ description: INodeTypeDescription;
4
+ }
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Qontext = void 0;
4
+ const n8n_workflow_1 = require("n8n-workflow");
5
+ const ingestion_resource_1 = require("./actions/ingestion/ingestion.resource");
6
+ const retrieval_resource_1 = require("./actions/retrieval/retrieval.resource");
7
+ class Qontext {
8
+ constructor() {
9
+ this.description = {
10
+ displayName: 'Qontext',
11
+ name: 'qontext',
12
+ icon: {
13
+ light: 'file:qontext_light.svg',
14
+ dark: 'file:qontext_dark.svg'
15
+ },
16
+ group: ['transform'],
17
+ version: 1,
18
+ subtitle: '={{$parameter["operation"] || "Select operation"}}: {{$parameter["resource"] || "Select resource"}}',
19
+ description: 'Interact with the Qontext API',
20
+ defaults: {
21
+ name: 'Qontext',
22
+ },
23
+ usableAsTool: true,
24
+ inputs: [n8n_workflow_1.NodeConnectionTypes.Main],
25
+ outputs: [n8n_workflow_1.NodeConnectionTypes.Main],
26
+ credentials: [{ name: 'qontextApi', required: true }],
27
+ requestDefaults: {
28
+ baseURL: 'https://api.qontext.ai',
29
+ headers: {
30
+ Accept: 'application/json',
31
+ 'Content-Type': 'application/json',
32
+ 'X-API-Key': '={{$credentials?.xApiKey}}'
33
+ },
34
+ },
35
+ properties: [
36
+ {
37
+ displayName: 'Resource',
38
+ name: 'resource',
39
+ type: 'options',
40
+ noDataExpression: true,
41
+ options: [
42
+ { name: 'Retrieval', value: 'retrieval' },
43
+ { name: 'Ingestion', value: 'ingestion' },
44
+ ],
45
+ default: 'retrieval',
46
+ },
47
+ ...ingestion_resource_1.ingestionOperations,
48
+ ...retrieval_resource_1.retrievalOperations,
49
+ ],
50
+ };
51
+ }
52
+ }
53
+ exports.Qontext = Qontext;
54
+ //# sourceMappingURL=Qontext.node.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Qontext.node.js","sourceRoot":"","sources":["../../../nodes/Qontext/Qontext.node.ts"],"names":[],"mappings":";;;AAAA,+CAA8F;AAC9F,+EAA6E;AAC7E,+EAA6E;AAE7E,MAAa,OAAO;IAApB;QACC,gBAAW,GAAyB;YACnC,WAAW,EAAE,SAAS;YACtB,IAAI,EAAE,SAAS;YACf,IAAI,EAAE;gBACL,KAAK,EAAE,wBAAwB;gBAC/B,IAAI,EAAE,uBAAuB;aAAE;YAChC,KAAK,EAAE,CAAC,WAAW,CAAC;YACpB,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE,qGAAqG;YAC/G,WAAW,EAAE,gCAAgC;YAC7C,QAAQ,EAAE;gBACT,IAAI,EAAE,SAAS;aACf;YACD,YAAY,EAAE,IAAI;YAClB,MAAM,EAAE,CAAC,kCAAmB,CAAC,IAAI,CAAC;YAClC,OAAO,EAAE,CAAC,kCAAmB,CAAC,IAAI,CAAC;YACnC,WAAW,EAAE,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;YACrD,eAAe,EAAE;gBAChB,OAAO,EAAE,wBAAwB;gBACjC,OAAO,EAAE;oBACR,MAAM,EAAE,kBAAkB;oBAC1B,cAAc,EAAE,kBAAkB;oBAClC,WAAW,EAAE,4BAA4B;iBACzC;aACD;YACD,UAAU,EAAE;gBAEX;oBACC,WAAW,EAAE,UAAU;oBACvB,IAAI,EAAE,UAAU;oBAChB,IAAI,EAAE,SAAS;oBACf,gBAAgB,EAAE,IAAI;oBACtB,OAAO,EAAE;wBACR,EAAE,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,WAAW,EAAE;wBACzC,EAAE,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,WAAW,EAAE;qBACzC;oBACD,OAAO,EAAE,WAAW;iBACpB;gBACD,GAAG,wCAAmB;gBACtB,GAAG,wCAAmB;aACtB;SACD,CAAC;IACH,CAAC;CAAA;AA3CD,0BA2CC"}
@@ -0,0 +1,18 @@
1
+ {
2
+ "node": "n8n-nodes-base.Qontext",
3
+ "nodeVersion": "1.0",
4
+ "codexVersion": "1.0",
5
+ "categories": ["Development", "Data & Storage", "Productivity"],
6
+ "resources": {
7
+ "credentialDocumentation": [
8
+ {
9
+ "url": "https://docs.qontext.ai/get_started"
10
+ }
11
+ ],
12
+ "primaryDocumentation": [
13
+ {
14
+ "url": "https://docs.qontext.ai/get_started"
15
+ }
16
+ ]
17
+ }
18
+ }
@@ -0,0 +1,2 @@
1
+ import { INodeProperties } from "n8n-workflow/dist/esm/interfaces";
2
+ export declare const ingestDataWithMetadata: INodeProperties[];
@@ -0,0 +1,217 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ingestDataWithMetadata = void 0;
4
+ exports.ingestDataWithMetadata = [
5
+ {
6
+ displayName: 'Vault ID',
7
+ name: 'knowledgeGraphId',
8
+ type: 'string',
9
+ default: '',
10
+ description: 'The ID of the vault that the data should be ingested into',
11
+ displayOptions: {
12
+ show: {
13
+ resource: ['ingestion'],
14
+ operation: ['ingestDataWithMetadata'],
15
+ },
16
+ },
17
+ required: true,
18
+ },
19
+ {
20
+ displayName: 'Text',
21
+ name: 'string_data',
22
+ type: 'string',
23
+ typeOptions: {
24
+ rows: 5,
25
+ },
26
+ default: '',
27
+ description: 'The unstructured data (plain or markdown text) to ingest',
28
+ displayOptions: {
29
+ show: {
30
+ resource: ['ingestion'],
31
+ operation: ['ingestDataWithMetadata'],
32
+ },
33
+ },
34
+ required: true,
35
+ },
36
+ {
37
+ displayName: 'Source',
38
+ name: 'source',
39
+ type: 'fixedCollection',
40
+ default: {},
41
+ displayOptions: {
42
+ show: {
43
+ resource: ['ingestion'],
44
+ operation: ['ingestDataWithMetadata'],
45
+ },
46
+ },
47
+ typeOptions: {
48
+ multipleValues: false,
49
+ },
50
+ required: true,
51
+ options: [
52
+ {
53
+ displayName: 'Source',
54
+ name: 'source',
55
+ values: [
56
+ {
57
+ displayName: 'Data Source Name',
58
+ name: 'source_integration',
59
+ type: 'options',
60
+ default: 'HubSpot',
61
+ description: 'The system or platform where the data originates',
62
+ options: [
63
+ { name: 'API', value: 'API' },
64
+ { name: 'Gmail', value: 'Gmail' },
65
+ { name: 'Gong', value: 'Gong' },
66
+ { name: 'GoogleDrive', value: 'GoogleDrive' },
67
+ { name: 'HubSpot', value: 'HubSpot' },
68
+ { name: 'Notion', value: 'Notion' },
69
+ { name: 'Slack', value: 'Slack' },
70
+ { name: 'Web', value: 'Web' },
71
+ ],
72
+ },
73
+ {
74
+ displayName: 'Data Type',
75
+ name: 'source_data_type',
76
+ type: 'options',
77
+ default: 'None',
78
+ description: 'The specific type of data being ingested from the source',
79
+ options: [
80
+ { name: 'None', value: 'None' },
81
+ ],
82
+ displayOptions: {
83
+ show: {
84
+ source_integration: ['API'],
85
+ },
86
+ },
87
+ },
88
+ {
89
+ displayName: 'Data Type',
90
+ name: 'source_data_type',
91
+ type: 'options',
92
+ default: 'Email',
93
+ description: 'The specific type of data being ingested from the source',
94
+ displayOptions: {
95
+ show: {
96
+ source_integration: ['Gmail'],
97
+ },
98
+ },
99
+ options: [
100
+ { name: 'Email', value: 'Email' },
101
+ ],
102
+ },
103
+ {
104
+ displayName: 'Data Type',
105
+ name: 'source_data_type',
106
+ type: 'options',
107
+ default: 'Call',
108
+ description: 'The specific type of data being ingested from the source',
109
+ displayOptions: {
110
+ show: {
111
+ source_integration: ['Gong'],
112
+ },
113
+ },
114
+ options: [
115
+ { name: 'Call', value: 'Call' },
116
+ ],
117
+ },
118
+ {
119
+ displayName: 'Data Type',
120
+ name: 'source_data_type',
121
+ type: 'options',
122
+ default: 'File',
123
+ description: 'The specific type of data being ingested from the source',
124
+ displayOptions: {
125
+ show: {
126
+ source_integration: ['GoogleDrive'],
127
+ },
128
+ },
129
+ options: [
130
+ { name: 'Doc', value: 'Doc' },
131
+ { name: 'File', value: 'File' },
132
+ { name: 'PDF', value: 'PDF' },
133
+ { name: 'Sheet', value: 'Sheet' },
134
+ { name: 'Slide', value: 'Slide' },
135
+ ],
136
+ },
137
+ {
138
+ displayName: 'Data Type',
139
+ name: 'source_data_type',
140
+ type: 'options',
141
+ default: 'Contact',
142
+ description: 'The specific type of data being ingested from the source',
143
+ displayOptions: {
144
+ show: {
145
+ source_integration: ['HubSpot'],
146
+ },
147
+ },
148
+ options: [
149
+ { name: 'Call', value: 'Call' },
150
+ { name: 'Company', value: 'Company' },
151
+ { name: 'Contact', value: 'Contact' },
152
+ { name: 'Deal', value: 'Deal' },
153
+ { name: 'Email', value: 'Email' },
154
+ { name: 'Lead', value: 'Lead' },
155
+ { name: 'Meeting', value: 'Meeting' },
156
+ { name: 'Note', value: 'Note' },
157
+ { name: 'Task', value: 'Task' },
158
+ ],
159
+ },
160
+ {
161
+ displayName: 'Data Type',
162
+ name: 'source_data_type',
163
+ type: 'options',
164
+ default: 'Page',
165
+ description: 'The specific type of data being ingested from the source',
166
+ displayOptions: {
167
+ show: {
168
+ source_integration: ['Notion'],
169
+ },
170
+ },
171
+ options: [
172
+ { name: 'Page', value: 'Page' },
173
+ ],
174
+ },
175
+ {
176
+ displayName: 'Data Type',
177
+ name: 'source_data_type',
178
+ type: 'options',
179
+ default: 'Message',
180
+ description: 'The specific type of data being ingested from the source',
181
+ displayOptions: {
182
+ show: {
183
+ source_integration: ['Slack'],
184
+ },
185
+ },
186
+ options: [
187
+ { name: 'Message', value: 'Message' },
188
+ ],
189
+ },
190
+ {
191
+ displayName: 'Data Type',
192
+ name: 'source_data_type',
193
+ type: 'options',
194
+ default: 'Website',
195
+ description: 'The specific type of data being ingested from the source',
196
+ displayOptions: {
197
+ show: {
198
+ source_integration: ['Web'],
199
+ },
200
+ },
201
+ options: [
202
+ { name: 'Website', value: 'Website' },
203
+ ],
204
+ },
205
+ {
206
+ displayName: 'Source ID',
207
+ name: 'source_id',
208
+ type: 'string',
209
+ default: '',
210
+ description: 'The unique identifier of the data item in the source system',
211
+ },
212
+ ],
213
+ },
214
+ ],
215
+ },
216
+ ];
217
+ //# sourceMappingURL=ingestDataWithMetadata.operation.js.map