A/B Split Testing
Triggered manually or by an app event. Connects Condition, Stop And Error, Supabase. 1. Receive Message 2. Determine Prompt for LLM 3. AI Agent Modification Set the values of the baseline and alternative prompts Modification Replace this sub-node to use a different language model Setup 1. Create a table in Supabase called splittestsessions. It needs to have the following columns: sessionid (text)
Front matter
name: A/B Split Testing
description: Triggered manually or by an app event. Connects Condition, Stop And Error, Supabase. ## 1. Receive Message ## 2. Determine Prompt for LLM ## 3. AI Agent ### Modification Set the values of the baseline and alternative prompts ### Modification Replace this sub-node to use a different language model ### Setup 1. Create a table in Supabase called **split_test_sessions**. It needs to have the following columns: **session_id** (`text`) and **show_alternative** (`bool`) 2. Add your **Supabase**, **OpenAI**, and **PostgreSQL** credentials 3. Modify the **Define Path Values** node
category: Automation
kind: Workflow
software: Condition|Stop And Error|SupabaseA/B Split Testing
Triggered manually or by an app event. Connects Condition, Stop And Error, Supabase. ## 1. Receive Message
## 2. Determine Prompt for LLM ## 3. AI Agent ### Modification Set the values of the baseline and alternative prompts ### Modification Replace this sub-node to use a different language model ### Setup
- Create a table in Supabase called split_test_sessions. It needs to have the following columns: session_id (
text) and show_alternative (bool) - Add your Supabase, OpenAI, and PostgreSQL credentials
- Modify the Define Path Values node
Steps
- Manual Trigger (manualTrigger)
- When chat message received (noOp)
- AI Agent (noOp)
- Check If Session Exists (supabase)
- If Session Does Exist (if)
- Assign Path To Session (supabase)
- Define Path Values (set)
- OpenAI Chat Model (noOp)
- Postgres Chat Memory (noOp)
- Sticky Note1 (stickyNote)
- Sticky Note (stickyNote)
- Sticky Note2 (stickyNote)
- Get Correct Prompt (set)
- Sticky Note6 (stickyNote)
- Sticky Note8 (stickyNote)
- Sticky Note5 (stickyNote)
- Sticky Note3 (stickyNote)
- Error Handler (stopAndError)
Import
Download the JSON from the GitHub source and import it in n8n (Workflows, Import from file).
Author: Zie619, n8n workflow collection. License: MIT.
Shown here with formatting for the web. Keep the author and license notice when you reuse it.
Related entries
- MCP_SUPABASE_AGENT
- ✨📊Multi-AI Agent Chatbot for Postgres/Supabase DB and QuickCharts + Tool Router
- AI Document Assistant via Telegram + Supabase
- Executeworkflowtrigger Workflow: Aggregate and Execute Workflow
- Multi-Agent Conversation
- Stickynote Workflow: ChatGPT, PostgreSQL and n8n (n8n workflow collection) (Postgrestool) (1811)
There are more like this in the members library
The n8n workflow library holds 1,814 entries. Members can search all of them by meaning and read every one in full.