Documentation

Brand of Crazy

The password-protected survey at /crazy, one question per screen, with a reading Claude writes from the answers.

On this page 5

When to use it

  • Only for /crazy. Like covers, the template is tied to its route, so there's no page to create in the control panel.

When not to use it

  • For any other form. This one is built around a single survey and a reading at the end; a plain contact form doesn't need either.

Password

The page sits behind Statamic's password protection, using the crazy scheme in config/statamic/protect.php. The password itself is CRAZY_PASSWORD in .env, so it never lands in git. With no password set, nobody gets in.

Visitors land on /crazy/password first. Once they're in, the password holds for their browser session.

Questions

The questions are the Brand of Crazy form in the control panel (resources/blueprints/forms/crazy.yaml). Each section in the Survey tab is one screen: the first field is the question, set large, and any field after it is the follow-up on the same screen. Edit the wording, help text or options there and the survey follows.

Claude reads the questions from App\Services\CrazyReader, not from the form. A copy edit in the control panel won't change what Claude is told was asked, so change both if the meaning of a question changes.

Readings

When someone sends the survey, the submission is saved and Claude starts on their reading. The page waits for about a minute and then shows it. The reading is stored on the submission, in the Reading tab, next to their answers.

A reading that doesn't come through is marked failed, and the page tells the person it's on its way. To write the missing ones:

bash
php artisan crazy:read

Pass a submission ID to rewrite one reading, whatever its status. The person sees it the next time they open /crazy in the same browser; otherwise their email is on the submission.

Readings need ANTHROPIC_API_KEY in production. Without a queue worker, each reading is written after the response goes out, holding a PHP worker for about a minute. For a room of people sending at once, run a queue worker in Forge with QUEUE_CONNECTION=database.

Submissions live in storage/forms/crazy, which is ignored by git.