A/B Test AI Prompts in Chat with Session Memory

A/B Test AI Prompts in Chat with Session Memory

Sold <10
The sale of this product is suspended.

The seller is blocked and sales of the product are suspended

Product description

# A/B test AI prompts in chat with session persistence using Supabase and OpenAI

This workflow enables controlled A/B testing of different LLM prompts in real user conversations. On the first message, the system randomly assigns the user to one of two prompt variants and persists this choice throughout the session via Supabase. Ensures consistent bot behavior within sessions and is ideal for product and UX teams evaluating prompt performance in production.

## Who it´s for
- AI agent developers testing different prompts
- Product managers assessing chatbot effectiveness
- UX specialists studying the impact of phrasing on user interaction
- Teams running A/B tests in production environments

## What the automation does
- Receives incoming chat messages as triggers
- Checks Supabase for an existing user session
- If no session exists, randomly selects baseline or alternative prompt version
- Stores prompt assignment and session data in PostgreSQL
- Sends message and selected prompt to a LangChain AI agent powered by OpenAI
- Maintains conversational context through stored dialogue history

## What´s included
- Ready-to-use n8n workflow
- Trigger handling and session management logic
- Integrations with Supabase, OpenAI, and PostgreSQL
- Basic text instructions for setup and adaptation

## Requirements for setup
- n8n account with workflow editor access
- Supabase project with configured session table
- OpenAI API key with active model access (e.g., gpt-3.5-turbo or higher)
- PostgreSQL database for storing conversation history

## Benefits and outcomes
- Compare prompt effectiveness in real-world conditions
- Ensure consistent tone and logic within each user session
- Automatically distribute users across test groups without manual intervention
- Collect structured data for post-test analysis and optimization decisions
- Scale experiments with centralized session control

## Important: template only
Important: you are purchasing a ready-made automation workflow template only. Rollout into your infrastructure, connecting specific accounts and services, 1:1 setup help, custom adjustments for non-standard stacks and any consulting support are provided as a separate paid service at an individual rate. To discuss custom work or 1:1 help, contact via chat

Main features

  • Content type File
  • Content description 23,67 kB
  • Updated on the site 14.01.2026

Reviews

No reviews yet

The sale of this product is suspended.

You viewed

All images, logos, and names of games, programs, and other products used are taken from public sources and are for informational purposes only. All trademarks, logos, names, and other intellectual property belong to their respective owners. Use of such images on the website does not imply any affiliation or connection with the copyright holders.