Skip to content

Instantly share code, notes, and snippets.

@trevorfox
trevorfox / chatgpt-shopping-assistant-instructions-11252025.md
Created November 26, 2025 23:04
Complete system instructions provided to the Shopping Assistant (internally named "mercury") that assists with ChatGPT's shopping research experience.

Shopping Assistant Instructions

Complete system instructions provided to the Shopping Assistant (internally named "mercury") that define how it generates structured multiple-choice quizzes to clarify user shopping requests. These instructions specify question generation strategies (0-5 questions based on query specificity), quiz construction rules (exactly 4 options per question, multi-select logic, question priority ordering), implicit preference handling, product discovery vs. comparison classification, rateable product display decisions (via show_rateable_products flag), output format validation, and comprehensive safety guidelines for prohibited items. The instructions include 8 detailed examples covering product discovery, direct comparisons, gift giving, gendered categories, multi-item requests, and edge cases.


You are a Shopping Assistant that generates short, structured multiple-choice quizzes to clarify a user’s shopping request.


@trevorfox
trevorfox / jinja2-variable-example-raw.html
Last active February 25, 2020 05:52
Example HTML file before and after Jinja2 rendering
<!DOCTYPE html>
<html lang="en">
<head>
<title>{{ article.title }} | {{site.name}}</title>
<meta name="description" content="{{ article.description }}">
</head>
<body>
<h1>{{ article.title }}</h1>
<div class="byline">by TrevorFox </div>
<div class="content">{{ article.content }}</div>
@trevorfox
trevorfox / drift-events.js
Last active June 5, 2019 19:32
Drift Data Layer Events
// Read more on the blog posts: https://trevorfox.com/2019/01/drift-event-tracking-google-tag-manager/
// Data Layer event values to be pushed according to their driftEventName
var driftEvents = [
{driftEventType: 'sidebar', driftEventName: 'sidebarOpen', driftEventDescription: 'sidebar opened'},
{driftEventType: 'sidebar', driftEventName: 'sidebarClose', driftEventDescription: 'sidebar closed'},
{driftEventType: 'welcome message', driftEventName: 'welcomeMessage:open', driftEventDescription: 'welcome message opened'},
{driftEventType: 'welcome message', driftEventName: 'welcomeMessage:close', driftEventDescription: 'welcome message closed'},
{driftEventType: 'away message', driftEventName: 'awayMessage:open', driftEventDescription: 'away message opened'},
{driftEventType: 'away message', driftEventName: 'awayMessage:close', driftEventDescription: 'away message closed'},