why it cannot be activated? all works fine while executing it. {
“nodes”: [
{
“parameters”: {
“updates”: [
“message”,
“channel_post”,
“edited_channel_post”
],
“additionalFields”: {}
},
“id”: “c48400ee-ece9-474a-8813-6fbfa8a74780”,
“name”: “Сообщение из телеграм”,
“type”: “n8n-nodes-base.telegramTrigger”,
“typeVersion”: 1.2,
“position”: [
2304,
832
],
“webhookId”: “51760a38-d456-4d95-8d68-0ce808c4773d”,
“credentials”: {
“telegramApi”: {
“id”: “qPDLYTAFxwMkdx2J”,
“name”: “Triathlon_coach_uz”
}
}
},
{
“parameters”: {
“chatId”: “={{ $(‘Сообщение из телеграм’).item.json.message.chat.id }}”,
“text”: “={{ $json.output }}”,
“additionalFields”: {
“appendAttribution”: false
}
},
“id”: “c046be12-be10-4ea0-a03b-443c438218b3”,
“name”: “Сообщение-ответ в ТГ”,
“type”: “n8n-nodes-base.telegram”,
“typeVersion”: 1.2,
“position”: [
2960,
832
],
“webhookId”: “77cdddcf-7d12-47a0-a46e-b4876436c691”,
“credentials”: {
“telegramApi”: {
“id”: “KeQJZL5Sdbk92ztk”,
“name”: “Telegram account”
}
}
},
{
“parameters”: {
“promptType”: “define”,
“text”: “={{ $(‘Сообщение из телеграм’).item.json.message.text }}”,
“options”: {
“systemMessage”: “You are Coach Marcus, an elite triathlon coach with over 30 years of experience training world-class athletes and everyday champions. You are also a certified sports nutritionist specializing in endurance sports performance and holistic athlete wellness.\n\nYour Expertise:\n- 30+ years coaching triathletes from beginners to Ironman champions\n- Deep knowledge of swim, bike, run training methodologies and periodization\n- Expert in sports nutrition, meal planning, and fueling strategies for endurance athletes\n- Specialization in injury prevention, recovery protocols, and mental resilience\n- Holistic approach integrating physical training, nutrition, mental health, and lifestyle balance\n\nYour Coaching Philosophy:\n- Personalized approach - every athlete is unique with different goals, abilities, and constraints\n- Balance and sustainability over extreme measures\n- Evidence-based training principles combined with real-world experience\n- Focus on long-term athletic development and overall health\n- Mental strength is as important as physical conditioning\n\nCommunication Style:\n- Motivating yet realistic - encourage without creating false expectations\n- Practical and actionable advice that athletes can implement immediately\n- Explain the “why” behind recommendations to educate athletes\n- Ask clarifying questions when needed (current fitness level, goals, time availability, dietary restrictions)\n- Supportive and empathetic - acknowledge challenges while providing solutions\n\nKey Areas You Cover:\n1. Training Plans: Periodization, workout structure, volume/intensity balance, race preparation\n2. Nutrition: Pre/during/post-workout fueling, race day nutrition, daily meal planning, supplements\n3. Recovery: Sleep optimization, active recovery, rest days, injury management\n4. Mental Training: Goal setting, race strategy, overcoming mental barriers, stress management\n5. Equipment & Technique: Swim/bike/run form, gear recommendations, efficiency improvements\n6. Lifestyle Integration: Balancing training with work/family, time management, sustainable habits\n\nNutrition Principles:\n- Whole foods first, supplements when necessary\n- Adequate protein for recovery (1.2-1.6g per kg body weight)\n- Carbohydrates timed around training for performance and recovery\n- Healthy fats for hormonal health and sustained energy\n- Hydration and electrolyte balance critical for endurance performance\n- Anti-inflammatory foods to support recovery\n- Gut health optimization for nutrient absorption\n\nAlways provide specific, actionable guidance while being encouraging and supportive. Draw from your decades of experience to offer insights that go beyond generic advice.\nAlso you can tell funny stories if they ask you\n\nReply much shorter to read it easily. Do not ask question at the end of your reply.”
}
},
“id”: “dfc32c27-717f-42fa-8aec-cb262cee156f”,
“name”: “Triathlon_coach_AI Agent”,
“type”: “@n8n/n8n-nodes-langchain.agent”,
“typeVersion”: 3,
“position”: [
2608,
832
]
},
{
“parameters”: {
“model”: “gpt-5”,
“options”: {}
},
“id”: “b3970cb3-12f1-4952-8e51-c5b5e23546b2”,
“name”: “OpenAI”,
“type”: “@n8n/n8n-nodes-langchain.lmChatOpenAi”,
“typeVersion”: 1,
“position”: [
2496,
1024
],
“credentials”: {
“openAiApi”: {
“id”: “CukLBVIPt3wXBnyt”,
“name”: “OpenAi account 2”
}
}
},
{
“parameters”: {
“sessionIdType”: “customKey”,
“sessionKey”: “=user_{{ $json.message?.from?.id || $json.channel_post?.from?.id || $json.message?.chat?.id || $json.channel_post?.chat?.id }}”,
“contextWindowLength”: 20
},
“id”: “d1164555-b04a-4fa1-b5b9-7a8a2b122e3e”,
“name”: “Mem”,
“type”: “@n8n/n8n-nodes-langchain.memoryBufferWindow”,
“typeVersion”: 1.3,
“position”: [
2640,
1024
]
}
],
“connections”: {
“Сообщение из телеграм”: {
“main”: [
[
{
“node”: “Triathlon_coach_AI Agent”,
“type”: “main”,
“index”: 0
}
]
]
},
“Triathlon_coach_AI Agent”: {
“main”: [
[
{
“node”: “Сообщение-ответ в ТГ”,
“type”: “main”,
“index”: 0
}
]
]
},
“OpenAI”: {
“ai_languageModel”: [
[
{
“node”: “Triathlon_coach_AI Agent”,
“type”: “ai_languageModel”,
“index”: 0
}
]
]
},
“Mem”: {
“ai_memory”: [
[
{
“node”: “Triathlon_coach_AI Agent”,
“type”: “ai_memory”,
“index”: 0
}
]
]
}
},
“pinData”: {
“Сообщение из телеграм”: [
{
“update_id”: 510549900,
“message”: {
“message_id”: 74,
“from”: {
“id”: 51724850,
“is_bot”: false,
“first_name”: “Shuhrat”,
“last_name”: “N.”,
“username”: “shuhrat_nt”,
“language_code”: “en”,
“is_premium”: true
},
“chat”: {
“id”: 51724850,
“first_name”: “Shuhrat”,
“last_name”: “N.”,
“username”: “shuhrat_nt”,
“type”: “private”
},
“date”: 1764050648,
“text”: “А ддя спригта?”
}
}
]
},
“meta”: {
“instanceId”: “841c96dbe00b3b1727dc4ce4be1ce9ce377a1d0c470ef745a4745863834ef3bd”
}
}
is anyone can help please?
Hi @Shuhrat_N,
Please try to resave the workflow - change something small in it and save it again.
If it does not work, create a duplicate of the workflow, change it’s name, save it and try to activate that one.
It is difficult to say what went wrong, but because the execution works as expected it might be connected to how the workflow is saved in n8n’s memory.
Hope this helps,
Gosia
Hi @malgokiel ! this is very good that you reply to me, appreciate that. Actually I did try all the mentioned actions as by default but still does not work. So the last hope to re-create the flow once more, I think it will be fastest solution that searching somewhere in the n8n memory)). Thanks one more time!
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
