This is step 1 only: confirm the two-agent conversation actually works and feels real, before building any UI. Run this in your terminal via Claude Code or plain Node.
npm init -y
npm install @anthropic-ai/sdk
export ANTHROPIC_API_KEY="your-key-here"
node test.jsGet an API key at https://console.anthropic.com if you don't have one yet. New accounts often get a small free credit — check the console before loading your card, might cover this whole hackathon.
Read the printed conversation and ask yourself:
-
Does the customer ever say "As an AI..." or explain its reasoning? If yes, the character-break rules in the system prompt need to be stronger/repeated. This is the #1 risk from our conversation.
-
Does the customer cave too easily / agree by turn 2? If yes, add more explicit "you are allowed to stay unconvinced" language, maybe even tell it directly it's allowed to say "I need to think about it" as a real ending.
-
Does it feel like two people talking, or two chatbots being polite to each other? If it feels polite/agreeable, that's the sycophancy problem — push the customer persona's skepticism harder in the prompt.
At Haiku 4.5 pricing (~$1/$5 per million tokens) with 6 turns and short responses (~150-200 tokens each), one full run + analysis is a fraction of a cent. You could run this 50+ times testing prompts and still be well under $1 CAD. Don't stress about re-running it to tune the prompts.
Once a run through this script actually reads like a real, slightly messy human conversation — not scripted, not overly agreeable — THAT'S when you wrap it in a simple HTML page with a text input for product description and persona fields, swapping the hardcoded PRODUCT_DESCRIPTION and CUSTOMER_PERSONA at the top for user input. Don't build UI before this script convinces you.