LancelotDocs
Fixes and autonomy

Let Lancelot act

Fixes and autonomy

You decide how far Lancelot goes on its own, one kind of fix at a time.

The fixes

FixWhat it does
ThrottleLimits a customer to a number of AI calls a minute (10 by default).
PauseStops AI features for a customer.
Switch modelSends a customer's calls on an expensive model to a cheaper one you approved, for example Sonnet to Haiku.
Cap spendHolds a customer's AI spend to a daily amount for the rest of the month.
Upgrade offerPrepares an upgrade offer through a Stripe Payment Link you send.
Top-up offerPrepares a top-up offer through a Stripe Payment Link you send.

Every fix records why it was made, and every fix can be undone.

Autonomy levels

Set a level for each kind of fix on the Autonomy tab of the Activity page.

LevelLancelot
OffIgnores it.
SuggestTells you.
AskPrepares it, you approve.
AutoDoes it, tells you after.

Everything starts at Suggest. Approve or undo from the dashboard, from Slack, email or Telegram, or from an AI assistant.

Guardrails on Auto

Even on Auto, Lancelot asks first when:

  • the fix is an upgrade or top-up offer;
  • the fix would pause a paying customer;
  • it has already acted on that customer today (one automatic fix per customer per day);
  • it has reached the daily limit on automatic fixes: 5 by default, adjustable from 0 to 50.

On the Founder plan, Auto works like Ask. Autopilot starts on Growth.

Fixes need the SDK

Throttle, pause, switch model and cap spend are applied inside your app by the SDK, so they need enableFlags:

const lc = lancelot({ enableFlags: true });

Until the SDK is checking flags, Lancelot only suggests these fixes. The SDK refreshes flags every 60 seconds, so an approved fix takes effect within a minute. A blocked call raises LancelotBlockedError; catch it to show your own message. See Node.js or Python.