← Back to docs
Setup Docs

Setting Up AI Grading & Gift Card Rewards

How the A.I. reads and grades answers is covered in Grading & AI-Assisted Feedback. This page is the settings walkthrough for the two connections on the Connections pane of Adventure Settings: a Claude API key for A.I. grading (every plan), and a Tremendous account for real gift cards (Enterprise only).

Connecting Your Claude API Key

Open Adventure Settings and go to Connections → Claude API key. One key powers every A.I. feature in the Adventure: validation on Open Text steps, A.I. grading, and Cooper. It's used server-side only, and usage bills to whoever owns the key.

  1. Go to console.anthropic.com and sign in, or create an account.
  2. Open Settings → API Keys, click "Create Key", give it a name and copy it. You won't be able to see it again, so copy it right away. It starts with sk-ant-.
  3. Paste it into the API key box. It's saved as soon as you leave the box.
  4. Press Test Key.

The key is stored encrypted. The page never shows it back: once a key is saved, the box only says so. Leaving the box blank keeps it, pasting a new key replaces the old one, and Remove Key deletes it.

Cooper is on every plan, Basic included, and works whenever a key is set. For teams BLUERABBIT sets up and runs directly, we add the key for you.

Which Key Pays

Every A.I. feature in an Adventure (Cooper, the Open Text check, the A.I. review, the Library's study notes and reminder drafts) looks for a key in this order, and the first it finds pays:

  1. the Adventure's own key (Connections);
  2. its template's key, for a cohort;
  3. the Adventure owner's account key (My Account → A.I. (Cooper));
  4. the platform's key, for Cooper and the drafts it writes (study notes, reminder emails) only.

So one key saved on your account covers every Adventure you own that has none of its own. The Connections pane says when the owner's account key is the one paying. The Open Text check and the A.I. review never use the platform's key: with none of the first three, they can't run, and the Adventure's staff are told (see Grading & AI-Assisted Feedback). Outside any Adventure, Cooper uses the person's own account key, then the platform's.

Which Model, and What It Costs

The Open Text check and the A.I. review run on the Claude model the platform's administrators choose: Claude Haiku 5.5 unless they pick another. On Connections, How to get a Claude API Key names the one your platform uses and about what one check costs: around $0.0003 on Haiku 5.5, $0.005 on Sonnet 5.5 or $0.01 on Opus 5.5. Checks are billed to the key found above, so the model decides what checking a cohort costs that key's owner. For bulk runs, Validate All shows you an estimate before it spends anything and a running total afterwards.

Cooper runs on Claude Sonnet 5.5 unless the platform chooses Opus 5.5 (the best answers) or Haiku 5.5 (the cheapest). It costs from under a cent to a few cents per player question, depending on its model and the size of the Adventure.

Test Key

Test Key makes one real round trip to Claude, on the same model the checks use. It reports which key it used (this Adventure's, its template's or its owner's account key) and either how quickly Claude answered or exactly what came back instead. A check that can't run lets the player's answer through, so a broken key otherwise only shows up as flagged answers and alerts after players have hit it. That's why testing after you save is worth the click. Each test is written to the activity log.

Cohorts Use Their Template's Key

A cohort with no key of its own uses its template's, and its Connections pane says so. Save a key on the template once and every cohort's checks, reviews and Cooper use it. Save a key on a cohort only when you want to override the template's.

Where the Key Is Used

Setting Up Gift Card Rewards (Tremendous)

Enterprise only. Gift-card rewards through Tremendous aren't offered on the self-serve platform, on any plan; on an Enterprise platform the Tremendous gift cards panel appears under Connections (see How Plan Tiers Actually Differ). It connects a Tremendous.com account, so buying a Gift Card item in the Item Shop sends a real gift card to the player's email:

  1. Paste your Tremendous API Key. It's stored encrypted, and leaving it blank on a later save keeps the saved one. Test Connection checks it and loads your account's real funding sources.
  2. Choose the Mode: Sandbox (test, no real money moves) or Production (real gift cards). Sandbox and production are separate Tremendous accounts.
  3. Pick the Currency: EUR, USD or GBP.
  4. Pick the Funding Source: which Tremendous account the cards are actually charged to (your balance by default).
  5. Optionally enter a Campaign ID. A campaign decides which brands players can choose from, and you curate it in your Tremendous dashboard. Set one here, or pick products on each gift-card item: Tremendous rejects an order that has neither.
  6. Add the Webhook URL shown on the panel as a webhook in your Tremendous dashboard, and paste the Webhook Signing Secret it gives you. Without it, delivery failures and redemptions stay invisible here. Events that arrive without a valid signature are logged but never applied.

Once connected, the panel shows your Tremendous balance, and warns you when it's below your largest gift card (purchases are then refused until it's topped up) or when the account is funded in a different currency from the cards.

Unlike the Claude key, the Tremendous connection belongs to each Adventure: a cohort doesn't use its template's. Set it up on every cohort that sells gift cards.

Choosing Which Card an Item Sends

A Gift Card item has a Card Value (in the Adventure's currency), an optional label, and a Card Source:

Checked Before Any BLOO Is Spent

A gift-card purchase is checked before anything is charged. If the Adventure isn't connected, the item has no card source, the balance is too low, or the player has no email on file, the purchase is refused with a message saying what's missing. A send that Tremendous rejects spends no BLOO and records no purchase. Each player can redeem a given gift-card item once.

The Order Log

Manage Content → Items has a Gift Card Orders button. It opens every gift-card order for the Adventure (date, player, item, amount, status, mode and the Tremendous reference) with a search box and filters for All, Sent, Pending, Failed and Duplicate Blocked. A failed order shows Tremendous's own reason, so you can fix the setting that caused it.

Related