n8n-nodes-trugen 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,69 @@
1
+ # n8n-nodes-trugen
2
+
3
+ This package provides an **n8n community node** for interacting with **Trugen** — allowing you to create AI video agents, list stock avatars, and fetch conversation details directly from n8n workflows.
4
+
5
+ ---
6
+
7
+ ## Supported Features
8
+
9
+ The **Trugen** node exposes the following actions:
10
+
11
+ - **Create Agent**
12
+ Create and deploy a Trugen video agent with full configuration support (LLM, TTS, STT, callbacks, recording, etc.)
13
+
14
+ - **Get Stock Avatars**
15
+ Retrieve the list of available Trugen stock avatars
16
+
17
+ - **Get Conversation**
18
+ Fetch conversation details by ID, with optional polling until completion
19
+
20
+ ---
21
+
22
+ ## Installation
23
+
24
+ n8n community guidelines provide complete overview of installation and usage steps.
25
+
26
+ ---
27
+
28
+ ## Supported Features
29
+
30
+ The **Trugen** node contains a single action selector with three actions.
31
+
32
+ #### 1. Create Agent
33
+
34
+ Create and deploy a Trugen agent.
35
+
36
+ Key configuration options include:
37
+
38
+ * Agent name and system prompt
39
+ * Stock or custom avatar selection
40
+ * LLM provider and model (OpenAI, Groq, Google)
41
+ * STT and TTS configuration
42
+ * Greeting message and session timeout
43
+ * Recording and webhook callbacks
44
+
45
+ #### 2. Get Stock Avatars
46
+
47
+ Returns a list of all available Trugen stock avatars.
48
+
49
+ No additional parameters are required.
50
+
51
+ #### 3. Get Conversation
52
+
53
+ Retrieve details for a conversation by its ID.
54
+
55
+ Optional:
56
+
57
+ * Wait until the conversation reaches a `Completed` status before returning
58
+
59
+ ---
60
+
61
+ ## Documentation and Resources
62
+
63
+ - n8n Community nodes installation [https://docs.n8n.io/integrations/community-nodes/installation][https://docs.n8n.io/integrations/community-nodes/installation]
64
+ - Official API Documentation [https://docs.trugen.ai](https://docs.trugen.ai)
65
+ - Webhook and callbacks integrations [https://docs.trugen.ai/docs/agents/callback](https://docs.trugen.ai/docs/agents/callback)
66
+
67
+
68
+
69
+ ---
@@ -0,0 +1,10 @@
1
+ import { IAuthenticateGeneric, ICredentialTestRequest, ICredentialType, INodeProperties } from 'n8n-workflow';
2
+ export declare class TrugenApi implements ICredentialType {
3
+ name: string;
4
+ displayName: string;
5
+ documentationUrl: string;
6
+ icon: "file:../icons/trugen.svg";
7
+ properties: INodeProperties[];
8
+ authenticate: IAuthenticateGeneric;
9
+ test: ICredentialTestRequest;
10
+ }
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TrugenApi = void 0;
4
+ class TrugenApi {
5
+ constructor() {
6
+ this.name = 'trugenApi';
7
+ this.displayName = 'TruGen.AI API';
8
+ this.documentationUrl = 'https://docs.trugen.ai';
9
+ this.icon = 'file:../icons/trugen.svg';
10
+ this.properties = [
11
+ {
12
+ displayName: 'API Key',
13
+ name: 'apiKey',
14
+ type: 'string',
15
+ typeOptions: { password: true },
16
+ default: '',
17
+ },
18
+ ];
19
+ this.authenticate = {
20
+ type: 'generic',
21
+ properties: {
22
+ headers: {
23
+ 'x-api-key': '={{$credentials.apiKey}}',
24
+ },
25
+ },
26
+ };
27
+ this.test = {
28
+ request: {
29
+ baseURL: 'https://api.trugen.ai/v1',
30
+ url: 'ext/avatars',
31
+ },
32
+ };
33
+ }
34
+ }
35
+ exports.TrugenApi = TrugenApi;
36
+ //# sourceMappingURL=TrugenApi.credentials.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TrugenApi.credentials.js","sourceRoot":"","sources":["../../credentials/TrugenApi.credentials.ts"],"names":[],"mappings":";;;AAOA,MAAa,SAAS;IAAtB;QACC,SAAI,GAAG,WAAW,CAAC;QACnB,gBAAW,GAAG,eAAe,CAAC;QAC9B,qBAAgB,GAAG,wBAAwB,CAAC;QAC5C,SAAI,GAAG,0BAAmC,CAAC;QAC3C,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,SAAS;gBACtB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;gBAC/B,OAAO,EAAE,EAAE;aACX;SACD,CAAC;QACF,iBAAY,GAAyB;YACpC,IAAI,EAAE,SAAS;YACf,UAAU,EAAE;gBACX,OAAO,EAAE;oBACR,WAAW,EAAE,0BAA0B;iBACvC;aACD;SACD,CAAC;QACF,SAAI,GAA2B;YAC9B,OAAO,EAAE;gBACR,OAAO,EAAE,0BAA0B;gBACnC,GAAG,EAAE,aAAa;aAClB;SACD,CAAC;IACH,CAAC;CAAA;AA5BD,8BA4BC"}
@@ -0,0 +1,12 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="31.875999999999998 44.188235294117646 210.87199999999999 220.94117647058826" style="max-height: 500px" width="210.87199999999999" height="220.94117647058826">
2
+ <path stroke-linejoin="round" stroke-linecap="round" stroke-width="12.2941" stroke="white" d="M117.425 58.8135C148.184 55.135 167.223 67.3093 178.893 80.5566C190.788 94.0603 195.094 108.78 195.559 110.107C195.97 111.284 196.222 112.647 196.499 114.668C196.759 116.565 197.048 119.112 197.601 121.871C198.76 127.66 201.075 134.526 206.832 143.133C211.372 149.921 213.931 154.949 215.243 158.594C216.577 162.298 216.448 164.082 216.31 164.674C216.24 164.97 216.233 164.897 216.19 164.919C215.918 165.062 215.343 165.207 214.588 165.207C210.992 165.207 206.935 166.176 203.922 168.83C202.348 170.216 201.052 172.087 200.46 174.411C199.868 176.734 200.084 179.093 200.854 181.294C202.598 186.286 200.401 190.368 198.66 191.416L198.493 191.508C196.642 192.43 195.058 194.209 194.671 196.682C194.38 198.536 194.904 200.086 195.127 200.706C195.396 201.456 195.757 202.201 195.996 202.695C196.28 203.283 196.522 203.769 196.776 204.336C197.701 206.394 198.539 208.952 197.941 212.524C197.567 214.761 196.568 216.116 195.054 217.145C193.331 218.314 190.696 219.196 187.069 219.63C179.766 220.504 170.628 219.343 162.683 218.024C156.692 217.031 151.486 218.52 147.533 222.14C143.862 225.501 141.835 230.185 140.673 234.651C139.224 240.217 138.847 246.524 138.99 252.26L81.5088 233.167C83.3634 223.9 85.8027 209.559 85.8027 200.357C85.8027 191.91 82.2997 185.359 77.9316 178.328C73.487 171.174 67.7869 162.996 61.3379 150.143C55.6255 138.757 54.0991 117.577 62.0732 98.2402C69.8378 79.4121 86.5447 62.5066 117.425 58.8135Z"/>
3
+ <path stroke-linejoin="round" stroke-linecap="round" stroke-width="12.2941" stroke="#11E59E" d="M98.3516 124.526H131.058M131.058 124.526H131.109M131.058 124.526L131.084 124.551M131.058 124.526L104.852 98.2989M131.109 124.526H163.867M131.109 124.526V91.7422M131.109 124.526V124.577M131.109 124.526L157.316 98.2989M131.109 124.526L131.084 124.551M131.109 124.577V157.309M131.109 124.577L157.265 150.752M131.109 124.577L131.084 124.551M131.084 124.551L104.903 150.752"/>
4
+ <path fill="white" d="M270.539 111.622V87.6389H383.536V111.622H341.414V225.224H312.661V111.622H270.539Z"/>
5
+ <path fill="white" d="M390.893 225.224V122.035H418.638V140.04H419.713C421.594 133.635 424.752 128.798 429.186 125.529C433.619 122.214 438.725 120.557 444.503 120.557C445.936 120.557 447.481 120.647 449.138 120.826C450.795 121.005 452.251 121.251 453.505 121.565V146.959C452.161 146.556 450.303 146.198 447.929 145.884C445.555 145.571 443.383 145.414 441.412 145.414C437.202 145.414 433.44 146.332 430.126 148.168C426.857 149.96 424.259 152.468 422.333 155.693C420.452 158.917 419.512 162.635 419.512 166.845V225.224H390.893Z"/>
6
+ <path fill="white" d="M534.474 181.288V122.035H563.093V225.224H535.616V206.481H534.541C532.212 212.527 528.338 217.387 522.919 221.059C517.545 224.732 510.983 226.568 503.235 226.568C496.338 226.568 490.269 225 485.029 221.865C479.789 218.73 475.691 214.274 472.735 208.496C469.824 202.719 468.346 195.799 468.301 187.738V122.035H496.92V182.632C496.965 188.723 498.6 193.538 501.824 197.076C505.049 200.614 509.371 202.383 514.79 202.383C518.239 202.383 521.463 201.599 524.464 200.032C527.465 198.419 529.883 196.046 531.72 192.911C533.601 189.775 534.519 185.901 534.474 181.288Z"/>
7
+ <path fill="white" d="M677.753 132.112C676.812 128.843 675.491 125.954 673.789 123.446C672.087 120.893 670.005 118.743 667.542 116.997C665.123 115.205 662.346 113.839 659.211 112.899C656.121 111.958 652.695 111.488 648.933 111.488C641.901 111.488 635.72 113.235 630.391 116.728C625.106 120.221 620.986 125.305 618.03 131.978C615.074 138.606 613.596 146.713 613.596 156.297C613.596 165.882 615.051 174.033 617.962 180.751C620.874 187.469 624.994 192.597 630.324 196.135C635.653 199.629 641.946 201.375 649.201 201.375C655.785 201.375 661.406 200.211 666.064 197.882C670.766 195.508 674.349 192.172 676.812 187.872C679.321 183.572 680.575 178.489 680.575 172.622L686.486 173.495H651.015V151.595H708.589V168.927C708.589 181.02 706.036 191.41 700.93 200.099C695.825 208.743 688.793 215.416 679.836 220.119C670.878 224.776 660.622 227.105 649.067 227.105C636.168 227.105 624.837 224.261 615.074 218.573C605.31 212.841 597.696 204.712 592.232 194.187C586.813 183.617 584.104 171.077 584.104 156.566C584.104 145.414 585.716 135.471 588.941 126.738C592.21 117.96 596.778 110.525 602.645 104.434C608.512 98.3429 615.342 93.7075 623.135 90.5276C630.928 87.3477 639.371 85.7578 648.462 85.7578C656.255 85.7578 663.511 86.8999 670.229 89.184C676.947 91.4234 682.904 94.6032 688.099 98.7236C693.339 102.844 697.616 107.748 700.93 113.436C704.245 119.079 706.372 125.305 707.312 132.112H677.753Z"/>
8
+ <path fill="white" d="M776.928 227.24C766.314 227.24 757.177 225.09 749.518 220.79C741.905 216.446 736.038 210.31 731.917 202.383C727.797 194.411 725.737 184.983 725.737 174.1C725.737 163.486 727.797 154.17 731.917 146.153C736.038 138.136 741.838 131.888 749.317 127.41C756.841 122.931 765.664 120.692 775.786 120.692C782.594 120.692 788.931 121.789 794.798 123.983C800.71 126.133 805.86 129.38 810.25 133.725C814.683 138.069 818.132 143.533 820.595 150.117C823.059 156.656 824.29 164.314 824.29 173.092V180.952H737.157V163.217H797.351C797.351 159.096 796.455 155.446 794.664 152.266C792.872 149.087 790.387 146.601 787.207 144.809C784.072 142.973 780.421 142.055 776.256 142.055C771.912 142.055 768.06 143.063 764.701 145.078C761.387 147.049 758.789 149.714 756.908 153.073C755.027 156.387 754.064 160.082 754.02 164.157V181.02C754.02 186.125 754.96 190.537 756.841 194.254C758.767 197.971 761.477 200.838 764.97 202.853C768.463 204.869 772.606 205.876 777.398 205.876C780.578 205.876 783.489 205.428 786.132 204.533C788.774 203.637 791.036 202.293 792.917 200.502C794.798 198.71 796.231 196.516 797.217 193.918L823.686 195.665C822.342 202.025 819.588 207.578 815.422 212.326C811.302 217.028 805.972 220.701 799.434 223.343C792.939 225.941 785.438 227.24 776.928 227.24Z"/>
9
+ <path fill="white" d="M871.585 165.568V225.224H842.966V122.035H870.242V140.241H871.451C873.735 134.24 877.564 129.492 882.939 125.999C888.313 122.461 894.83 120.692 902.488 120.692C909.654 120.692 915.902 122.259 921.232 125.394C926.561 128.529 930.704 133.008 933.66 138.83C936.616 144.608 938.094 151.505 938.094 159.522V225.224H909.475V164.628C909.52 158.313 907.907 153.386 904.638 149.848C901.369 146.265 896.867 144.473 891.135 144.473C887.283 144.473 883.879 145.302 880.923 146.959C878.012 148.616 875.728 151.035 874.071 154.215C872.459 157.35 871.63 161.134 871.585 165.568Z"/>
10
+ <path fill="white" d="M1028.69 225.224H997.515L1045.01 87.6389H1082.5L1129.93 225.224H1098.76L1064.29 119.079H1063.22L1028.69 225.224ZM1026.74 171.144H1100.37V193.851H1026.74V171.144Z"/>
11
+ <path fill="white" d="M1175.58 87.6389V225.224H1146.49V87.6389H1175.58Z"/>
12
+ </svg>
@@ -0,0 +1,12 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="31.875999999999998 44.188235294117646 210.87199999999999 220.94117647058826" style="max-height: 500px" width="210.87199999999999" height="220.94117647058826">
2
+ <path stroke-linejoin="round" stroke-linecap="round" stroke-width="12.2941" stroke="#0A0A0A" d="M117.425 58.8135C148.184 55.135 167.223 67.3093 178.893 80.5566C190.788 94.0603 195.094 108.78 195.559 110.107C195.97 111.284 196.222 112.647 196.499 114.668C196.759 116.565 197.048 119.112 197.601 121.871C198.76 127.66 201.075 134.526 206.832 143.133C211.372 149.921 213.931 154.949 215.243 158.594C216.577 162.298 216.448 164.082 216.31 164.674C216.24 164.97 216.233 164.897 216.19 164.919C215.918 165.062 215.343 165.207 214.588 165.207C210.992 165.207 206.935 166.176 203.922 168.83C202.348 170.216 201.052 172.087 200.46 174.411C199.868 176.734 200.084 179.093 200.854 181.294C202.598 186.286 200.401 190.368 198.66 191.416L198.493 191.508C196.642 192.43 195.058 194.209 194.671 196.682C194.38 198.536 194.904 200.086 195.127 200.706C195.396 201.456 195.757 202.201 195.996 202.695C196.28 203.283 196.522 203.769 196.776 204.336C197.701 206.394 198.539 208.952 197.941 212.524C197.567 214.761 196.568 216.116 195.054 217.145C193.331 218.314 190.696 219.196 187.069 219.63C179.766 220.504 170.628 219.343 162.683 218.024C156.692 217.031 151.486 218.52 147.533 222.14C143.862 225.501 141.835 230.185 140.673 234.651C139.224 240.217 138.847 246.524 138.99 252.26L81.5088 233.167C83.3634 223.9 85.8027 209.559 85.8027 200.357C85.8027 191.91 82.2997 185.359 77.9316 178.328C73.487 171.174 67.7869 162.996 61.3379 150.143C55.6255 138.757 54.0991 117.577 62.0732 98.2402C69.8378 79.4121 86.5447 62.5066 117.425 58.8135Z"/>
3
+ <path stroke-linejoin="round" stroke-linecap="round" stroke-width="12.2941" stroke="#11E59E" d="M98.3516 124.526H131.058M131.058 124.526H131.109M131.058 124.526L131.084 124.551M131.058 124.526L104.852 98.2989M131.109 124.526H163.867M131.109 124.526V91.7422M131.109 124.526V124.577M131.109 124.526L157.316 98.2989M131.109 124.526L131.084 124.551M131.109 124.577V157.309M131.109 124.577L157.265 150.752M131.109 124.577L131.084 124.551M131.084 124.551L104.903 150.752"/>
4
+ <path fill="#0A0A0A" d="M270.539 111.622V87.6389H383.536V111.622H341.414V225.224H312.661V111.622H270.539Z"/>
5
+ <path fill="#0A0A0A" d="M390.893 225.224V122.035H418.638V140.04H419.713C421.594 133.635 424.752 128.798 429.186 125.529C433.619 122.214 438.725 120.557 444.503 120.557C445.936 120.557 447.481 120.647 449.138 120.826C450.795 121.005 452.251 121.251 453.505 121.565V146.959C452.161 146.556 450.303 146.198 447.929 145.884C445.555 145.571 443.383 145.414 441.412 145.414C437.202 145.414 433.44 146.332 430.126 148.168C426.857 149.96 424.259 152.468 422.333 155.693C420.452 158.917 419.512 162.635 419.512 166.845V225.224H390.893Z"/>
6
+ <path fill="#0A0A0A" d="M534.474 181.288V122.035H563.093V225.224H535.616V206.481H534.541C532.212 212.527 528.338 217.387 522.919 221.059C517.545 224.732 510.983 226.568 503.235 226.568C496.338 226.568 490.269 225 485.029 221.865C479.789 218.73 475.691 214.274 472.735 208.496C469.824 202.719 468.346 195.799 468.301 187.738V122.035H496.92V182.632C496.965 188.723 498.6 193.538 501.824 197.076C505.049 200.614 509.371 202.383 514.79 202.383C518.239 202.383 521.463 201.599 524.464 200.032C527.465 198.419 529.883 196.046 531.72 192.911C533.601 189.775 534.519 185.901 534.474 181.288Z"/>
7
+ <path fill="#0A0A0A" d="M677.753 132.112C676.812 128.843 675.491 125.954 673.789 123.446C672.087 120.893 670.005 118.743 667.542 116.997C665.123 115.205 662.346 113.839 659.211 112.899C656.121 111.958 652.695 111.488 648.933 111.488C641.901 111.488 635.72 113.235 630.391 116.728C625.106 120.221 620.986 125.305 618.03 131.978C615.074 138.606 613.596 146.713 613.596 156.297C613.596 165.882 615.051 174.033 617.962 180.751C620.874 187.469 624.994 192.597 630.324 196.135C635.653 199.629 641.946 201.375 649.201 201.375C655.785 201.375 661.406 200.211 666.064 197.882C670.766 195.508 674.349 192.172 676.812 187.872C679.321 183.572 680.575 178.489 680.575 172.622L686.486 173.495H651.015V151.595H708.589V168.927C708.589 181.02 706.036 191.41 700.93 200.099C695.825 208.743 688.793 215.416 679.836 220.119C670.878 224.776 660.622 227.105 649.067 227.105C636.168 227.105 624.837 224.261 615.074 218.573C605.31 212.841 597.696 204.712 592.232 194.187C586.813 183.617 584.104 171.077 584.104 156.566C584.104 145.414 585.716 135.471 588.941 126.738C592.21 117.96 596.778 110.525 602.645 104.434C608.512 98.3429 615.342 93.7075 623.135 90.5276C630.928 87.3477 639.371 85.7578 648.462 85.7578C656.255 85.7578 663.511 86.8999 670.229 89.184C676.947 91.4234 682.904 94.6032 688.099 98.7236C693.339 102.844 697.616 107.748 700.93 113.436C704.245 119.079 706.372 125.305 707.312 132.112H677.753Z"/>
8
+ <path fill="#0A0A0A" d="M776.928 227.24C766.314 227.24 757.177 225.09 749.518 220.79C741.905 216.446 736.038 210.31 731.917 202.383C727.797 194.411 725.737 184.983 725.737 174.1C725.737 163.486 727.797 154.17 731.917 146.153C736.038 138.136 741.838 131.888 749.317 127.41C756.841 122.931 765.664 120.692 775.786 120.692C782.594 120.692 788.931 121.789 794.798 123.983C800.71 126.133 805.86 129.38 810.25 133.725C814.683 138.069 818.132 143.533 820.595 150.117C823.059 156.656 824.29 164.314 824.29 173.092V180.952H737.157V163.217H797.351C797.351 159.096 796.455 155.446 794.664 152.266C792.872 149.087 790.387 146.601 787.207 144.809C784.072 142.973 780.421 142.055 776.256 142.055C771.912 142.055 768.06 143.063 764.701 145.078C761.387 147.049 758.789 149.714 756.908 153.073C755.027 156.387 754.064 160.082 754.02 164.157V181.02C754.02 186.125 754.96 190.537 756.841 194.254C758.767 197.971 761.477 200.838 764.97 202.853C768.463 204.869 772.606 205.876 777.398 205.876C780.578 205.876 783.489 205.428 786.132 204.533C788.774 203.637 791.036 202.293 792.917 200.502C794.798 198.71 796.231 196.516 797.217 193.918L823.686 195.665C822.342 202.025 819.588 207.578 815.422 212.326C811.302 217.028 805.972 220.701 799.434 223.343C792.939 225.941 785.438 227.24 776.928 227.24Z"/>
9
+ <path fill="#0A0A0A" d="M871.585 165.568V225.224H842.966V122.035H870.242V140.241H871.451C873.735 134.24 877.564 129.492 882.939 125.999C888.313 122.461 894.83 120.692 902.488 120.692C909.654 120.692 915.902 122.259 921.232 125.394C926.561 128.529 930.704 133.008 933.66 138.83C936.616 144.608 938.094 151.505 938.094 159.522V225.224H909.475V164.628C909.52 158.313 907.907 153.386 904.638 149.848C901.369 146.265 896.867 144.473 891.135 144.473C887.283 144.473 883.879 145.302 880.923 146.959C878.012 148.616 875.728 151.035 874.071 154.215C872.459 157.35 871.63 161.134 871.585 165.568Z"/>
10
+ <path fill="#0A0A0A" d="M1028.69 225.224H997.515L1045.01 87.6389H1082.5L1129.93 225.224H1098.76L1064.29 119.079H1063.22L1028.69 225.224ZM1026.74 171.144H1100.37V193.851H1026.74V171.144Z"/>
11
+ <path fill="#0A0A0A" d="M1175.58 87.6389V225.224H1146.49V87.6389H1175.58Z"/>
12
+ </svg>
@@ -0,0 +1,5 @@
1
+ import { IExecuteFunctions, INodeExecutionData, INodeType, INodeTypeDescription } from 'n8n-workflow';
2
+ export declare class Trugen implements INodeType {
3
+ description: INodeTypeDescription;
4
+ execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]>;
5
+ }
@@ -0,0 +1,196 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Trugen = void 0;
4
+ const trugenHelpers = {
5
+ formatResponse(responseData) {
6
+ let formatted = responseData;
7
+ if (typeof formatted === 'string') {
8
+ try {
9
+ formatted = JSON.parse(formatted);
10
+ }
11
+ catch {
12
+ return { data: formatted };
13
+ }
14
+ }
15
+ if (Array.isArray(formatted)) {
16
+ return { data: formatted };
17
+ }
18
+ if (!formatted || typeof formatted !== 'object') {
19
+ return { data: String(formatted) };
20
+ }
21
+ if ('id' in formatted) {
22
+ const typed = formatted;
23
+ return {
24
+ ...formatted,
25
+ call_link: `https://app.trugen.ai/agent/${typed.id}`,
26
+ embed_code: `<iframe src="https://app.trugen.ai/embed?agentId=${typed.id}" width="100%" height="600" frameborder="0" allow="camera; microphone; autoplay"></iframe>`,
27
+ };
28
+ }
29
+ return formatted;
30
+ },
31
+ };
32
+ class Trugen {
33
+ constructor() {
34
+ this.description = {
35
+ displayName: 'Trugen',
36
+ name: 'trugen',
37
+ icon: { light: 'file:trugen.svg', dark: 'file:trugen.dark.svg' },
38
+ group: ['transform'],
39
+ version: 1,
40
+ usableAsTool: true,
41
+ description: 'Create agents, list avatars, and fetch conversations from Trugen',
42
+ defaults: {
43
+ name: 'Trugen',
44
+ },
45
+ inputs: ['main'],
46
+ outputs: ['main'],
47
+ credentials: [{ name: 'trugenApi', required: true }],
48
+ properties: [
49
+ {
50
+ displayName: 'Action',
51
+ name: 'operation',
52
+ type: 'options',
53
+ noDataExpression: true,
54
+ options: [
55
+ { name: 'Create Agent', value: 'createAgent' },
56
+ { name: 'Get Stock Avatars', value: 'getAvatars' },
57
+ { name: 'Get Conversation', value: 'getConversation' },
58
+ ],
59
+ default: 'createAgent',
60
+ },
61
+ {
62
+ displayName: 'Agent Name',
63
+ name: 'name',
64
+ type: 'string',
65
+ required: true,
66
+ default: '',
67
+ displayOptions: { show: { operation: ['createAgent'] } },
68
+ },
69
+ {
70
+ displayName: 'System Prompt',
71
+ name: 'system_prompt',
72
+ type: 'string',
73
+ required: true,
74
+ default: 'You are a helpful assistant.',
75
+ displayOptions: { show: { operation: ['createAgent'] } },
76
+ },
77
+ {
78
+ displayName: 'Avatar Source',
79
+ name: 'avatarSource',
80
+ type: 'options',
81
+ options: [
82
+ { name: 'Stock Avatar', value: 'stock' },
83
+ { name: 'Manual Avatar ID', value: 'manual' },
84
+ ],
85
+ default: 'stock',
86
+ displayOptions: { show: { operation: ['createAgent'] } },
87
+ },
88
+ {
89
+ displayName: 'Stock Avatar ID',
90
+ name: 'avatarStockId',
91
+ type: 'string',
92
+ default: '',
93
+ displayOptions: {
94
+ show: { operation: ['createAgent'], avatarSource: ['stock'] },
95
+ },
96
+ },
97
+ {
98
+ displayName: 'Avatar ID',
99
+ name: 'avatarId',
100
+ type: 'string',
101
+ default: '',
102
+ displayOptions: {
103
+ show: { operation: ['createAgent'], avatarSource: ['manual'] },
104
+ },
105
+ },
106
+ {
107
+ displayName: 'Greeting',
108
+ name: 'greeting',
109
+ type: 'string',
110
+ default: 'Hello! How can I help you today?',
111
+ displayOptions: { show: { operation: ['createAgent'] } },
112
+ },
113
+ {
114
+ displayName: 'Max Session Length (Minutes)',
115
+ name: 'maxSessionLengthMinutes',
116
+ type: 'number',
117
+ default: 30,
118
+ displayOptions: { show: { operation: ['createAgent'] } },
119
+ },
120
+ {
121
+ displayName: 'Conversation ID',
122
+ name: 'conversation_id',
123
+ type: 'string',
124
+ required: true,
125
+ default: '',
126
+ displayOptions: { show: { operation: ['getConversation'] } },
127
+ },
128
+ ],
129
+ };
130
+ }
131
+ async execute() {
132
+ const items = this.getInputData();
133
+ const operation = this.getNodeParameter('operation', 0);
134
+ const credentials = await this.getCredentials('trugenApi');
135
+ const results = [];
136
+ for (let i = 0; i < items.length; i++) {
137
+ let response;
138
+ if (operation === 'createAgent') {
139
+ const avatarSource = this.getNodeParameter('avatarSource', i);
140
+ const avatarId = avatarSource === 'stock'
141
+ ? this.getNodeParameter('avatarStockId', i)
142
+ : this.getNodeParameter('avatarId', i);
143
+ const maxSessionLengthMinutes = this.getNodeParameter('maxSessionLengthMinutes', i);
144
+ const body = {
145
+ agent_name: this.getNodeParameter('name', i),
146
+ agent_system_prompt: this.getNodeParameter('system_prompt', i),
147
+ avatars: [
148
+ {
149
+ avatar_key_id: avatarId,
150
+ persona_name: this.getNodeParameter('name', i),
151
+ persona_prompt: this.getNodeParameter('system_prompt', i),
152
+ welcome_message: {
153
+ wait_time: 2,
154
+ messages: [this.getNodeParameter('greeting', i)],
155
+ },
156
+ },
157
+ ],
158
+ config: {
159
+ timeout: maxSessionLengthMinutes * 60,
160
+ },
161
+ };
162
+ response = await this.helpers.httpRequest({
163
+ method: 'POST',
164
+ url: 'https://api.trugen.ai/v1/ext/agent',
165
+ headers: { 'x-api-key': credentials.apiKey },
166
+ body,
167
+ json: true,
168
+ });
169
+ }
170
+ if (operation === 'getAvatars') {
171
+ response = await this.helpers.httpRequest({
172
+ method: 'GET',
173
+ url: 'https://api.trugen.ai/v1/ext/avatars',
174
+ headers: { 'x-api-key': credentials.apiKey },
175
+ json: true,
176
+ });
177
+ }
178
+ if (operation === 'getConversation') {
179
+ const conversationId = this.getNodeParameter('conversation_id', i);
180
+ response = await this.helpers.httpRequest({
181
+ method: 'GET',
182
+ url: `https://api.trugen.ai/v1/ext/conversation/${conversationId}`,
183
+ headers: { 'x-api-key': credentials.apiKey },
184
+ json: true,
185
+ });
186
+ }
187
+ results.push({
188
+ json: trugenHelpers.formatResponse(response),
189
+ pairedItem: { item: i },
190
+ });
191
+ }
192
+ return this.prepareOutputData(results);
193
+ }
194
+ }
195
+ exports.Trugen = Trugen;
196
+ //# sourceMappingURL=Trugen.node.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Trugen.node.js","sourceRoot":"","sources":["../../../nodes/trugen/Trugen.node.ts"],"names":[],"mappings":";;;AAUA,MAAM,aAAa,GAAG;IACrB,cAAc,CAAC,YAAqB;QACnC,IAAI,SAAS,GAAY,YAAY,CAAC;QAEtC,IAAI,OAAO,SAAS,KAAK,QAAQ,EAAE,CAAC;YACnC,IAAI,CAAC;gBACJ,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;YACnC,CAAC;YAAC,MAAM,CAAC;gBACR,OAAO,EAAE,IAAI,EAAE,SAAmB,EAAE,CAAC;YACtC,CAAC;QACF,CAAC;QAED,IAAI,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,CAAC;YAC9B,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;QAC5B,CAAC;QAED,IAAI,CAAC,SAAS,IAAI,OAAO,SAAS,KAAK,QAAQ,EAAE,CAAC;YACjD,OAAO,EAAE,IAAI,EAAE,M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;oBAC3C,OAAO,EAAE,EAAE,WAAW,EAAE,WAAW,CAAC,MAAgB,EAAE;oBACtD,IAAI,EAAE,IAAI;iBACV,CAAC,CAAC;YACJ,CAAC;YAGD,IAAI,SAAS,KAAK,iBAAiB,EAAE,CAAC;gBACrC,MAAM,cAAc,GAAG,IAAI,CAAC,gBAAgB,CAAC,iBAAiB,EAAE,CAAC,CAAW,CAAC;gBAE7E,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC;oBACzC,MAAM,EAAE,KAAK;oBACb,GAAG,EAAE,6CAA6C,cAAc,EAAE;oBAClE,OAAO,EAAE,EAAE,WAAW,EAAE,WAAW,CAAC,MAAgB,EAAE;oBACtD,IAAI,EAAE,IAAI;iBACV,CAAC,CAAC;YACJ,CAAC;YAED,OAAO,CAAC,IAAI,CAAC;gBACZ,IAAI,EAAE,aAAa,CAAC,cAAc,CAAC,QAAQ,CAAC;gBAC5C,UAAU,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE;aACvB,CAAC,CAAC;QACJ,CAAC;QAED,OAAO,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC;IACxC,CAAC;CACD;AA1LD,wBA0LC"}
@@ -0,0 +1,18 @@
1
+ {
2
+ "node": "n8n-nodes-trugen",
3
+ "nodeVersion": "1.0",
4
+ "codexVersion": "1.0",
5
+ "categories": ["Development", "Developer Tools"],
6
+ "resources": {
7
+ "credentialDocumentation": [
8
+ {
9
+ "url": "https://docs.trugen.ai/api-key"
10
+ }
11
+ ],
12
+ "primaryDocumentation": [
13
+ {
14
+ "url": "https://docs.trugen.ai/"
15
+ }
16
+ ]
17
+ }
18
+ }
@@ -0,0 +1,26 @@
1
+ export interface BasePayload {
2
+ [key: string]: unknown;
3
+ }
4
+ export interface AgentSpeakingPayload extends BasePayload {
5
+ text: string;
6
+ }
7
+ export interface ParticipantLeftPayload extends BasePayload {
8
+ id: string;
9
+ }
10
+ export interface UtteranceCommittedPayload extends BasePayload {
11
+ text: string;
12
+ }
13
+ export interface MaxCallDurationPayload extends BasePayload {
14
+ call_duration: number;
15
+ max_call_duration: number;
16
+ }
17
+ export interface WebhookEvent {
18
+ name: string;
19
+ payload: AgentSpeakingPayload | ParticipantLeftPayload | UtteranceCommittedPayload | MaxCallDurationPayload | BasePayload;
20
+ }
21
+ export interface TrugenWebhookData {
22
+ timestamp: number;
23
+ conversation_id: string;
24
+ type: string;
25
+ event: WebhookEvent;
26
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=TrugenTypes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TrugenTypes.js","sourceRoot":"","sources":["../../../nodes/trugen/TrugenTypes.ts"],"names":[],"mappings":""}
@@ -0,0 +1,12 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="31.875999999999998 44.188235294117646 210.87199999999999 220.94117647058826" style="max-height: 500px" width="210.87199999999999" height="220.94117647058826">
2
+ <path stroke-linejoin="round" stroke-linecap="round" stroke-width="12.2941" stroke="white" d="M117.425 58.8135C148.184 55.135 167.223 67.3093 178.893 80.5566C190.788 94.0603 195.094 108.78 195.559 110.107C195.97 111.284 196.222 112.647 196.499 114.668C196.759 116.565 197.048 119.112 197.601 121.871C198.76 127.66 201.075 134.526 206.832 143.133C211.372 149.921 213.931 154.949 215.243 158.594C216.577 162.298 216.448 164.082 216.31 164.674C216.24 164.97 216.233 164.897 216.19 164.919C215.918 165.062 215.343 165.207 214.588 165.207C210.992 165.207 206.935 166.176 203.922 168.83C202.348 170.216 201.052 172.087 200.46 174.411C199.868 176.734 200.084 179.093 200.854 181.294C202.598 186.286 200.401 190.368 198.66 191.416L198.493 191.508C196.642 192.43 195.058 194.209 194.671 196.682C194.38 198.536 194.904 200.086 195.127 200.706C195.396 201.456 195.757 202.201 195.996 202.695C196.28 203.283 196.522 203.769 196.776 204.336C197.701 206.394 198.539 208.952 197.941 212.524C197.567 214.761 196.568 216.116 195.054 217.145C193.331 218.314 190.696 219.196 187.069 219.63C179.766 220.504 170.628 219.343 162.683 218.024C156.692 217.031 151.486 218.52 147.533 222.14C143.862 225.501 141.835 230.185 140.673 234.651C139.224 240.217 138.847 246.524 138.99 252.26L81.5088 233.167C83.3634 223.9 85.8027 209.559 85.8027 200.357C85.8027 191.91 82.2997 185.359 77.9316 178.328C73.487 171.174 67.7869 162.996 61.3379 150.143C55.6255 138.757 54.0991 117.577 62.0732 98.2402C69.8378 79.4121 86.5447 62.5066 117.425 58.8135Z"/>
3
+ <path stroke-linejoin="round" stroke-linecap="round" stroke-width="12.2941" stroke="#11E59E" d="M98.3516 124.526H131.058M131.058 124.526H131.109M131.058 124.526L131.084 124.551M131.058 124.526L104.852 98.2989M131.109 124.526H163.867M131.109 124.526V91.7422M131.109 124.526V124.577M131.109 124.526L157.316 98.2989M131.109 124.526L131.084 124.551M131.109 124.577V157.309M131.109 124.577L157.265 150.752M131.109 124.577L131.084 124.551M131.084 124.551L104.903 150.752"/>
4
+ <path fill="white" d="M270.539 111.622V87.6389H383.536V111.622H341.414V225.224H312.661V111.622H270.539Z"/>
5
+ <path fill="white" d="M390.893 225.224V122.035H418.638V140.04H419.713C421.594 133.635 424.752 128.798 429.186 125.529C433.619 122.214 438.725 120.557 444.503 120.557C445.936 120.557 447.481 120.647 449.138 120.826C450.795 121.005 452.251 121.251 453.505 121.565V146.959C452.161 146.556 450.303 146.198 447.929 145.884C445.555 145.571 443.383 145.414 441.412 145.414C437.202 145.414 433.44 146.332 430.126 148.168C426.857 149.96 424.259 152.468 422.333 155.693C420.452 158.917 419.512 162.635 419.512 166.845V225.224H390.893Z"/>
6
+ <path fill="white" d="M534.474 181.288V122.035H563.093V225.224H535.616V206.481H534.541C532.212 212.527 528.338 217.387 522.919 221.059C517.545 224.732 510.983 226.568 503.235 226.568C496.338 226.568 490.269 225 485.029 221.865C479.789 218.73 475.691 214.274 472.735 208.496C469.824 202.719 468.346 195.799 468.301 187.738V122.035H496.92V182.632C496.965 188.723 498.6 193.538 501.824 197.076C505.049 200.614 509.371 202.383 514.79 202.383C518.239 202.383 521.463 201.599 524.464 200.032C527.465 198.419 529.883 196.046 531.72 192.911C533.601 189.775 534.519 185.901 534.474 181.288Z"/>
7
+ <path fill="white" d="M677.753 132.112C676.812 128.843 675.491 125.954 673.789 123.446C672.087 120.893 670.005 118.743 667.542 116.997C665.123 115.205 662.346 113.839 659.211 112.899C656.121 111.958 652.695 111.488 648.933 111.488C641.901 111.488 635.72 113.235 630.391 116.728C625.106 120.221 620.986 125.305 618.03 131.978C615.074 138.606 613.596 146.713 613.596 156.297C613.596 165.882 615.051 174.033 617.962 180.751C620.874 187.469 624.994 192.597 630.324 196.135C635.653 199.629 641.946 201.375 649.201 201.375C655.785 201.375 661.406 200.211 666.064 197.882C670.766 195.508 674.349 192.172 676.812 187.872C679.321 183.572 680.575 178.489 680.575 172.622L686.486 173.495H651.015V151.595H708.589V168.927C708.589 181.02 706.036 191.41 700.93 200.099C695.825 208.743 688.793 215.416 679.836 220.119C670.878 224.776 660.622 227.105 649.067 227.105C636.168 227.105 624.837 224.261 615.074 218.573C605.31 212.841 597.696 204.712 592.232 194.187C586.813 183.617 584.104 171.077 584.104 156.566C584.104 145.414 585.716 135.471 588.941 126.738C592.21 117.96 596.778 110.525 602.645 104.434C608.512 98.3429 615.342 93.7075 623.135 90.5276C630.928 87.3477 639.371 85.7578 648.462 85.7578C656.255 85.7578 663.511 86.8999 670.229 89.184C676.947 91.4234 682.904 94.6032 688.099 98.7236C693.339 102.844 697.616 107.748 700.93 113.436C704.245 119.079 706.372 125.305 707.312 132.112H677.753Z"/>
8
+ <path fill="white" d="M776.928 227.24C766.314 227.24 757.177 225.09 749.518 220.79C741.905 216.446 736.038 210.31 731.917 202.383C727.797 194.411 725.737 184.983 725.737 174.1C725.737 163.486 727.797 154.17 731.917 146.153C736.038 138.136 741.838 131.888 749.317 127.41C756.841 122.931 765.664 120.692 775.786 120.692C782.594 120.692 788.931 121.789 794.798 123.983C800.71 126.133 805.86 129.38 810.25 133.725C814.683 138.069 818.132 143.533 820.595 150.117C823.059 156.656 824.29 164.314 824.29 173.092V180.952H737.157V163.217H797.351C797.351 159.096 796.455 155.446 794.664 152.266C792.872 149.087 790.387 146.601 787.207 144.809C784.072 142.973 780.421 142.055 776.256 142.055C771.912 142.055 768.06 143.063 764.701 145.078C761.387 147.049 758.789 149.714 756.908 153.073C755.027 156.387 754.064 160.082 754.02 164.157V181.02C754.02 186.125 754.96 190.537 756.841 194.254C758.767 197.971 761.477 200.838 764.97 202.853C768.463 204.869 772.606 205.876 777.398 205.876C780.578 205.876 783.489 205.428 786.132 204.533C788.774 203.637 791.036 202.293 792.917 200.502C794.798 198.71 796.231 196.516 797.217 193.918L823.686 195.665C822.342 202.025 819.588 207.578 815.422 212.326C811.302 217.028 805.972 220.701 799.434 223.343C792.939 225.941 785.438 227.24 776.928 227.24Z"/>
9
+ <path fill="white" d="M871.585 165.568V225.224H842.966V122.035H870.242V140.241H871.451C873.735 134.24 877.564 129.492 882.939 125.999C888.313 122.461 894.83 120.692 902.488 120.692C909.654 120.692 915.902 122.259 921.232 125.394C926.561 128.529 930.704 133.008 933.66 138.83C936.616 144.608 938.094 151.505 938.094 159.522V225.224H909.475V164.628C909.52 158.313 907.907 153.386 904.638 149.848C901.369 146.265 896.867 144.473 891.135 144.473C887.283 144.473 883.879 145.302 880.923 146.959C878.012 148.616 875.728 151.035 874.071 154.215C872.459 157.35 871.63 161.134 871.585 165.568Z"/>
10
+ <path fill="white" d="M1028.69 225.224H997.515L1045.01 87.6389H1082.5L1129.93 225.224H1098.76L1064.29 119.079H1063.22L1028.69 225.224ZM1026.74 171.144H1100.37V193.851H1026.74V171.144Z"/>
11
+ <path fill="white" d="M1175.58 87.6389V225.224H1146.49V87.6389H1175.58Z"/>
12
+ </svg>
@@ -0,0 +1,12 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="31.875999999999998 44.188235294117646 210.87199999999999 220.94117647058826" style="max-height: 500px" width="210.87199999999999" height="220.94117647058826">
2
+ <path stroke-linejoin="round" stroke-linecap="round" stroke-width="12.2941" stroke="#0A0A0A" d="M117.425 58.8135C148.184 55.135 167.223 67.3093 178.893 80.5566C190.788 94.0603 195.094 108.78 195.559 110.107C195.97 111.284 196.222 112.647 196.499 114.668C196.759 116.565 197.048 119.112 197.601 121.871C198.76 127.66 201.075 134.526 206.832 143.133C211.372 149.921 213.931 154.949 215.243 158.594C216.577 162.298 216.448 164.082 216.31 164.674C216.24 164.97 216.233 164.897 216.19 164.919C215.918 165.062 215.343 165.207 214.588 165.207C210.992 165.207 206.935 166.176 203.922 168.83C202.348 170.216 201.052 172.087 200.46 174.411C199.868 176.734 200.084 179.093 200.854 181.294C202.598 186.286 200.401 190.368 198.66 191.416L198.493 191.508C196.642 192.43 195.058 194.209 194.671 196.682C194.38 198.536 194.904 200.086 195.127 200.706C195.396 201.456 195.757 202.201 195.996 202.695C196.28 203.283 196.522 203.769 196.776 204.336C197.701 206.394 198.539 208.952 197.941 212.524C197.567 214.761 196.568 216.116 195.054 217.145C193.331 218.314 190.696 219.196 187.069 219.63C179.766 220.504 170.628 219.343 162.683 218.024C156.692 217.031 151.486 218.52 147.533 222.14C143.862 225.501 141.835 230.185 140.673 234.651C139.224 240.217 138.847 246.524 138.99 252.26L81.5088 233.167C83.3634 223.9 85.8027 209.559 85.8027 200.357C85.8027 191.91 82.2997 185.359 77.9316 178.328C73.487 171.174 67.7869 162.996 61.3379 150.143C55.6255 138.757 54.0991 117.577 62.0732 98.2402C69.8378 79.4121 86.5447 62.5066 117.425 58.8135Z"/>
3
+ <path stroke-linejoin="round" stroke-linecap="round" stroke-width="12.2941" stroke="#11E59E" d="M98.3516 124.526H131.058M131.058 124.526H131.109M131.058 124.526L131.084 124.551M131.058 124.526L104.852 98.2989M131.109 124.526H163.867M131.109 124.526V91.7422M131.109 124.526V124.577M131.109 124.526L157.316 98.2989M131.109 124.526L131.084 124.551M131.109 124.577V157.309M131.109 124.577L157.265 150.752M131.109 124.577L131.084 124.551M131.084 124.551L104.903 150.752"/>
4
+ <path fill="#0A0A0A" d="M270.539 111.622V87.6389H383.536V111.622H341.414V225.224H312.661V111.622H270.539Z"/>
5
+ <path fill="#0A0A0A" d="M390.893 225.224V122.035H418.638V140.04H419.713C421.594 133.635 424.752 128.798 429.186 125.529C433.619 122.214 438.725 120.557 444.503 120.557C445.936 120.557 447.481 120.647 449.138 120.826C450.795 121.005 452.251 121.251 453.505 121.565V146.959C452.161 146.556 450.303 146.198 447.929 145.884C445.555 145.571 443.383 145.414 441.412 145.414C437.202 145.414 433.44 146.332 430.126 148.168C426.857 149.96 424.259 152.468 422.333 155.693C420.452 158.917 419.512 162.635 419.512 166.845V225.224H390.893Z"/>
6
+ <path fill="#0A0A0A" d="M534.474 181.288V122.035H563.093V225.224H535.616V206.481H534.541C532.212 212.527 528.338 217.387 522.919 221.059C517.545 224.732 510.983 226.568 503.235 226.568C496.338 226.568 490.269 225 485.029 221.865C479.789 218.73 475.691 214.274 472.735 208.496C469.824 202.719 468.346 195.799 468.301 187.738V122.035H496.92V182.632C496.965 188.723 498.6 193.538 501.824 197.076C505.049 200.614 509.371 202.383 514.79 202.383C518.239 202.383 521.463 201.599 524.464 200.032C527.465 198.419 529.883 196.046 531.72 192.911C533.601 189.775 534.519 185.901 534.474 181.288Z"/>
7
+ <path fill="#0A0A0A" d="M677.753 132.112C676.812 128.843 675.491 125.954 673.789 123.446C672.087 120.893 670.005 118.743 667.542 116.997C665.123 115.205 662.346 113.839 659.211 112.899C656.121 111.958 652.695 111.488 648.933 111.488C641.901 111.488 635.72 113.235 630.391 116.728C625.106 120.221 620.986 125.305 618.03 131.978C615.074 138.606 613.596 146.713 613.596 156.297C613.596 165.882 615.051 174.033 617.962 180.751C620.874 187.469 624.994 192.597 630.324 196.135C635.653 199.629 641.946 201.375 649.201 201.375C655.785 201.375 661.406 200.211 666.064 197.882C670.766 195.508 674.349 192.172 676.812 187.872C679.321 183.572 680.575 178.489 680.575 172.622L686.486 173.495H651.015V151.595H708.589V168.927C708.589 181.02 706.036 191.41 700.93 200.099C695.825 208.743 688.793 215.416 679.836 220.119C670.878 224.776 660.622 227.105 649.067 227.105C636.168 227.105 624.837 224.261 615.074 218.573C605.31 212.841 597.696 204.712 592.232 194.187C586.813 183.617 584.104 171.077 584.104 156.566C584.104 145.414 585.716 135.471 588.941 126.738C592.21 117.96 596.778 110.525 602.645 104.434C608.512 98.3429 615.342 93.7075 623.135 90.5276C630.928 87.3477 639.371 85.7578 648.462 85.7578C656.255 85.7578 663.511 86.8999 670.229 89.184C676.947 91.4234 682.904 94.6032 688.099 98.7236C693.339 102.844 697.616 107.748 700.93 113.436C704.245 119.079 706.372 125.305 707.312 132.112H677.753Z"/>
8
+ <path fill="#0A0A0A" d="M776.928 227.24C766.314 227.24 757.177 225.09 749.518 220.79C741.905 216.446 736.038 210.31 731.917 202.383C727.797 194.411 725.737 184.983 725.737 174.1C725.737 163.486 727.797 154.17 731.917 146.153C736.038 138.136 741.838 131.888 749.317 127.41C756.841 122.931 765.664 120.692 775.786 120.692C782.594 120.692 788.931 121.789 794.798 123.983C800.71 126.133 805.86 129.38 810.25 133.725C814.683 138.069 818.132 143.533 820.595 150.117C823.059 156.656 824.29 164.314 824.29 173.092V180.952H737.157V163.217H797.351C797.351 159.096 796.455 155.446 794.664 152.266C792.872 149.087 790.387 146.601 787.207 144.809C784.072 142.973 780.421 142.055 776.256 142.055C771.912 142.055 768.06 143.063 764.701 145.078C761.387 147.049 758.789 149.714 756.908 153.073C755.027 156.387 754.064 160.082 754.02 164.157V181.02C754.02 186.125 754.96 190.537 756.841 194.254C758.767 197.971 761.477 200.838 764.97 202.853C768.463 204.869 772.606 205.876 777.398 205.876C780.578 205.876 783.489 205.428 786.132 204.533C788.774 203.637 791.036 202.293 792.917 200.502C794.798 198.71 796.231 196.516 797.217 193.918L823.686 195.665C822.342 202.025 819.588 207.578 815.422 212.326C811.302 217.028 805.972 220.701 799.434 223.343C792.939 225.941 785.438 227.24 776.928 227.24Z"/>
9
+ <path fill="#0A0A0A" d="M871.585 165.568V225.224H842.966V122.035H870.242V140.241H871.451C873.735 134.24 877.564 129.492 882.939 125.999C888.313 122.461 894.83 120.692 902.488 120.692C909.654 120.692 915.902 122.259 921.232 125.394C926.561 128.529 930.704 133.008 933.66 138.83C936.616 144.608 938.094 151.505 938.094 159.522V225.224H909.475V164.628C909.52 158.313 907.907 153.386 904.638 149.848C901.369 146.265 896.867 144.473 891.135 144.473C887.283 144.473 883.879 145.302 880.923 146.959C878.012 148.616 875.728 151.035 874.071 154.215C872.459 157.35 871.63 161.134 871.585 165.568Z"/>
10
+ <path fill="#0A0A0A" d="M1028.69 225.224H997.515L1045.01 87.6389H1082.5L1129.93 225.224H1098.76L1064.29 119.079H1063.22L1028.69 225.224ZM1026.74 171.144H1100.37V193.851H1026.74V171.144Z"/>
11
+ <path fill="#0A0A0A" d="M1175.58 87.6389V225.224H1146.49V87.6389H1175.58Z"/>
12
+ </svg>
@@ -0,0 +1,56 @@
1
+ {
2
+ "name": "n8n-nodes-trugen",
3
+ "version": "0.1.4",
4
+ "description": "n8n community node to interact with TruGen.AI Agentic Playform.",
5
+ "license": "MIT",
6
+ "homepage": "",
7
+ "keywords": [
8
+ "n8n-community-node-package"
9
+ ],
10
+ "author": {
11
+ "name": "hari-trugen",
12
+ "email": "hari@trugen.ai"
13
+ },
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "https://github.com/trugenai/n8n-nodes-trugen.git"
17
+ },
18
+ "scripts": {
19
+ "build": "n8n-node build",
20
+ "build:icons": "gulp build:icons",
21
+ "build:all": "n8n-node build && gulp build:icons",
22
+ "build:watch": "tsc --watch",
23
+ "dev": "n8n-node dev",
24
+ "lint": "n8n-node lint",
25
+ "lint:fix": "n8n-node lint --fix",
26
+ "release": "n8n-node release",
27
+ "prepublishOnly": "npm run build:all"
28
+ },
29
+ "files": [
30
+ "dist"
31
+ ],
32
+ "n8n": {
33
+ "n8nNodesApiVersion": 1,
34
+ "strict": true,
35
+ "credentials": [
36
+ "dist/credentials/TrugenApi.credentials.js"
37
+ ],
38
+ "nodes": [
39
+ "dist/nodes/Trugen/Trugen.node.js"
40
+ ]
41
+ },
42
+ "devDependencies": {
43
+ "@n8n/node-cli": "*",
44
+ "eslint": "9.32.0",
45
+ "gulp": "^5.0.1",
46
+ "merge-stream": "^2.0.0",
47
+ "n8n-core": "^1.122.10",
48
+ "n8n-workflow": "^1.120.6",
49
+ "prettier": "3.6.2",
50
+ "release-it": "^19.0.4",
51
+ "typescript": "5.9.2"
52
+ },
53
+ "peerDependencies": {
54
+ "n8n-workflow": "*"
55
+ }
56
+ }