Skip to content

Commit 07ddbb9

Browse files
authored
Merge pull request Zie619#87 from gama2219/main
Add files via upload
2 parents e9992c3 + 0f008fb commit 07ddbb9

File tree

1 file changed

+129
-0
lines changed

1 file changed

+129
-0
lines changed
Lines changed: 129 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,129 @@
1+
{
2+
"name": "Academic Assistant Chatbot (Telegram + OpenAI)",
3+
"nodes": [
4+
{
5+
"parameters": {
6+
"updates": [
7+
"message"
8+
],
9+
"additionalFields": {}
10+
},
11+
"id": "20a2d959-5412-447b-a2c4-7736b6b758b3",
12+
"name": "Telegram Trigger",
13+
"position": [
14+
256,
15+
208
16+
],
17+
"type": "n8n-nodes-base.telegramTrigger",
18+
"typeVersion": 1.1,
19+
"webhookId": "5757ba5b-b427-4af8-a23b-7527a0f01ae8"
20+
},
21+
{
22+
"parameters": {
23+
"options": {}
24+
},
25+
"id": "8b30f207-8204-4548-8f51-38c387d98ae9",
26+
"name": "OpenAI Chat Model",
27+
"position": [
28+
656,
29+
208
30+
],
31+
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
32+
"typeVersion": 1.1,
33+
"credentials": {
34+
"openAiApi": {
35+
"id": "YOUR_OPENAI_CREDENTIAL_ID_HERE",
36+
"name": "OpenAI Account"
37+
}
38+
}
39+
},
40+
{
41+
"parameters": {
42+
"promptType": "define",
43+
"text": "={{ $('Telegram Trigger').item.json.message.text }}",
44+
"options": {
45+
"systemMessage": "You are a helpful and knowledgeable AI academic assistant. Your goal is to assist students with their assignments, studies, and general academic inquiries. Provide explanations, study tips, help with research, clarify concepts, and offer guidance on academic tasks. Be encouraging, precise, and polite. Always ensure your responses are relevant to academic support."
46+
}
47+
},
48+
"id": "68303b67-2203-41e8-b370-220d884d2945",
49+
"name": "Academic Assistant AI Agent",
50+
"position": [
51+
912,
52+
208
53+
],
54+
"type": "@n8n/n8n-nodes-langchain.agent",
55+
"typeVersion": 1.7
56+
},
57+
{
58+
"parameters": {
59+
"chatId": "={{ $('Telegram Trigger').item.json.message.chat.id }}",
60+
"text": "={{ $('Academic Assistant AI Agent').item.json.output }}",
61+
"additionalFields": {
62+
"appendAttribution": false
63+
}
64+
},
65+
"id": "15bb5fd5-7dfe-4da9-830c-e1d905831640",
66+
"name": "Send Telegram Response",
67+
"position": [
68+
1152,
69+
208
70+
],
71+
"type": "n8n-nodes-base.telegram",
72+
"typeVersion": 1.2,
73+
"webhookId": "afcc418d-4723-4f60-a577-c5f3bd7a309e",
74+
"credentials": {
75+
"telegramApi": {
76+
"id": "YOUR_TELEGRAM_CREDENTIAL_ID_HERE",
77+
"name": "Telegram Account"
78+
}
79+
}
80+
}
81+
],
82+
"pinData": {},
83+
"connections": {
84+
"Telegram Trigger": {
85+
"main": [
86+
[
87+
{
88+
"index": 0,
89+
"node": "Academic Assistant AI Agent",
90+
"type": "main"
91+
}
92+
]
93+
]
94+
},
95+
"OpenAI Chat Model": {
96+
"ai_languageModel": [
97+
[
98+
{
99+
"index": 0,
100+
"node": "Academic Assistant AI Agent",
101+
"type": "ai_languageModel"
102+
}
103+
]
104+
]
105+
},
106+
"Academic Assistant AI Agent": {
107+
"main": [
108+
[
109+
{
110+
"index": 0,
111+
"node": "Send Telegram Response",
112+
"type": "main"
113+
}
114+
]
115+
]
116+
}
117+
},
118+
"active": false,
119+
"settings": {
120+
"executionOrder": "v1",
121+
"timezone": "America/New_York"
122+
},
123+
"versionId": "dd7c6e21-87a4-4e15-9662-72e4c63e9da3",
124+
"meta": {
125+
"instanceId": "4962941a77c4da44bac1703396b7ae8536094a036af2f87ba8600ee9720e2d9e"
126+
},
127+
"id": "K0TLA1k7P0hL2Ysg",
128+
"tags": []
129+
}

0 commit comments

Comments
 (0)