{"id":"gUx6hY0bOoReluxE","meta":{"instanceId":"workflow-8082a6d6","versionId":"1.0.0","createdAt":"2025-09-29T07:07:50.195420","updatedAt":"2025-09-29T07:07:50.195427","owner":"n8n-user","license":"MIT","category":"automation","status":"active","priority":"high","environment":"production"},"name":"Supabase Setup Postgres","nodes":[{"id":"c2c95cc1-d10e-40c9-9663-625e8a2ab30b","name":"When clicking ‘Test workflow’","type":"n8n-nodes-base.manualTrigger","position":[340,-80],"parameters":{},"typeVersion":1,"notes":"This manualTrigger node performs automated tasks as part of the workflow."},{"id":"30a4ae0f-c7ae-4b00-b826-a0a2759f2dd5","name":"Set sample Input Variables","type":"n8n-nodes-base.set","position":[600,-80],"parameters":{"options":{},"assignments":{"assignments":[{"id":"ed7bc826-fd48-4c9e-8ba7-11e4e7bb73ac","name":"session_id","type":"string","value":"=491634502879"},{"id":"d381c930-a92f-404f-ac91-ad6437d6b0c9","name":"name","type":"string","value":"=Genn Sverster"},{"id":"4ead1fb5-098b-4cbc-bc78-d65b188ca5b0","name":"chatInput","type":"string","value":"=wie gehts dir?"}]}},"typeVersion":3.4,"notes":"This set node performs automated tasks as part of the workflow."},{"id":"f56b629c-5374-43ce-b55b-efd7f14f1231","name":"GeminiFlash2.0","type":"n8n-nodes-base.noOp","position":[840,140],"parameters":{"options":{},"modelName":"models/gemini-2.0-flash"},"credentials":{"googlePalmApi":{"id":"clmB8ZYJMHaHmnsu","name":"Stardawn#1"}},"typeVersion":1,"notes":"This lmChatGoogleGemini node performs automated tasks as part of the workflow."},{"id":"1da22e93-504e-4616-bac3-dabd9a4b145a","name":"Supabase Postgres Database","type":"n8n-nodes-base.noOp","position":[1100,140],"parameters":{"tableName":"whatsapp_messages3","sessionKey":"YOUR_CREDENTIAL_HERE","sessionIdType":"customKey","contextWindowLength":20},"credentials":{"postgres":{"id":"B2m18ScvYBKPNF9s","name":"Supabase SD - N8N Demo Chatbot"}},"typeVersion":1,"notes":"This memoryPostgresChat node performs automated tasks as part of the workflow."},{"id":"29a7eb84-2244-41e1-99c0-5daaeb80cf6e","name":"Update additonal Values e.g. Name, Address ...","type":"n8n-nodes-base.supabase","position":[1300,-80],"parameters":{"filters":{"conditions":[{"keyName":"YOUR_CREDENTIAL_HERE","keyValue":"YOUR_CREDENTIAL_HERE","condition":"eq"},{"keyName":"YOUR_CREDENTIAL_HERE","keyValue":"YOUR_CREDENTIAL_HERE","condition":"is"}]},"tableId":"whatsapp_messages3","fieldsUi":{"fieldValues":[{"fieldId":"name","fieldValue":"={{ $('Set sample Input Variables').item.json.name }}"}]},"matchType":"allFilters","operation":"update"},"credentials":{"supabaseApi":{"id":"GHuUG6pmPATBHgob","name":"N8N Chatbot"}},"typeVersion":1,"notes":"This supabase node performs automated tasks as part of the workflow."},{"id":"8094fdd7-f238-47dc-94f9-5e962d5f0c2f","name":"Sample Agent ","type":"n8n-nodes-base.noOp","position":[960,-80],"parameters":{"text":"={{ $json.chatInput }}","options":{"systemMessage":"You are a helpful assistant"},"promptType":"define"},"typeVersion":1,"notes":"This agent node performs automated tasks as part of the workflow."},{"id":"error-5909a4fb","name":"Error Handler","type":"n8n-nodes-base.stopAndError","typeVersion":1,"position":[1000,400],"parameters":{"message":"Workflow execution error","options":{}}}],"active":false,"settings":{"executionOrder":"v1","saveManualExecutions":true,"callerPolicy":"workflowsFromSameOwner","errorWorkflow":null,"timezone":"UTC","executionTimeout":3600,"maxExecutions":1000,"retryOnFail":true,"retryCount":3,"retryDelay":1000},"versionId":"49fd22da-2875-49be-a3c0-6c0fcf378a8e","connections":{"GeminiFlash2.0":{"main":[[]]}},"description":"Automated workflow: Supabase Setup Postgres. This workflow processes data and performs automated tasks.","notes":"Excellent quality workflow: Supabase Setup Postgres. This workflow has been optimized for production use with comprehensive error handling, security, and documentation."}