Spaces:
Running
Running
File size: 5,088 Bytes
ea9f139 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 | {
"name": "WF-16: Personality Evolution — Weekly",
"nodes": [
{
"parameters": {
"rule": {
"interval": [
{
"field": "weeks",
"weekday": 0,
"hours": 22,
"minutes": 0
}
]
}
},
"id": "schedule-sunday",
"name": "Sunday 22:00 IST",
"type": "n8n-nodes-base.scheduleTrigger",
"typeVersion": 1,
"position": [200, 400]
},
{
"parameters": {
"url": "https://tillu-ai-tillu-backend.hf.space/internal/memory/weekly-summary",
"method": "GET",
"sendQuery": true,
"queryParameters": {
"parameters": [
{
"name": "weeks_back",
"value": "1"
}
]
},
"authentication": "generic",
"genericAuthType": "httpHeaderAuth",
"httpHeaderAuth": {
"name": "Authorization",
"value": "Bearer sk-tillu-internal-token-weekly-summary"
}
},
"id": "fetch-weekly-data",
"name": "Fetch Weekly Interaction Data",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.1,
"position": [400, 400]
},
{
"parameters": {
"url": "https://tillu-ai-tillu-backend.hf.space/internal/chains/personality-evolution",
"method": "POST",
"contentType": "application/json",
"body": {
"weekly_data": "={{ $json }}",
"current_params": "={{ $json.current_personality }}",
"llm_provider": "groq",
"model": "llama-3.1-70b-versatile"
},
"authentication": "generic",
"genericAuthType": "httpHeaderAuth",
"httpHeaderAuth": {
"name": "Authorization",
"value": "Bearer sk-tillu-internal-token-personality-evolution"
},
"options": {
"timeout": 90000
}
},
"id": "run-evolution-chain",
"name": "Run Personality Evolution Chain (Groq LLM)",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.1,
"position": [600, 400]
},
{
"parameters": {
"url": "https://tillu-ai-tillu-backend.hf.space/internal/memory/update-personality",
"method": "POST",
"contentType": "application/json",
"body": {
"new_params": "={{ $json.evolved_params }}",
"evolution_notes": "={{ $json.notes }}",
"week": "={{ $json.week }}",
"timestamp": "={{ new Date().toISOString() }}"
},
"authentication": "generic",
"genericAuthType": "httpHeaderAuth",
"httpHeaderAuth": {
"name": "Authorization",
"value": "Bearer sk-tillu-internal-token-update-personality"
}
},
"id": "save-evolved-personality",
"name": "Save Evolved Personality to Supabase",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.1,
"position": [800, 400]
},
{
"parameters": {
"url": "https://tillu-ai-tillu-backend.hf.space/internal/events/publish",
"method": "POST",
"contentType": "application/json",
"body": {
"channel": "tillu:personality_evolved",
"event": {
"type": "personality_evolution_complete",
"timestamp": "={{ new Date().toISOString() }}",
"evolved_params": "={{ $json.new_params }}"
}
},
"authentication": "generic",
"genericAuthType": "httpHeaderAuth",
"httpHeaderAuth": {
"name": "Authorization",
"value": "Bearer sk-tillu-internal-token-events"
}
},
"id": "publish-event",
"name": "Publish Event to Redis",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.1,
"position": [1000, 400]
}
],
"connections": {
"Sunday 22:00 IST": {
"main": [
[
{
"node": "Fetch Weekly Interaction Data",
"type": "main",
"index": 0
}
]
]
},
"Fetch Weekly Interaction Data": {
"main": [
[
{
"node": "Run Personality Evolution Chain (Groq LLM)",
"type": "main",
"index": 0
}
]
]
},
"Run Personality Evolution Chain (Groq LLM)": {
"main": [
[
{
"node": "Save Evolved Personality to Supabase",
"type": "main",
"index": 0
}
]
]
},
"Save Evolved Personality to Supabase": {
"main": [
[
{
"node": "Publish Event to Redis",
"type": "main",
"index": 0
}
]
]
}
},
"pinData": {},
"settings": {
"executionOrder": "v1",
"timezone": "Asia/Kolkata"
},
"tags": [
{
"name": "personality",
"id": "personality-tag"
},
{
"name": "memory",
"id": "memory-tag"
},
{
"name": "groq-llm",
"id": "groq-tag"
}
]
}
|