Spaces:
Sleeping
Sleeping
| { | |
| "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" | |
| } | |
| ] | |
| } | |