AI

AI cost tracking, monthly budget, and 80% / 100% alerts

Every AI call is logged and counted against a monthly budget. Workspaces get email alerts at 80% and 100%.

Last updated May 3, 2026

AI features (persona, stage, insights, actions, document import) consume Anthropic API credits. Journey Builder tracks every call so you can see who's spending what and stay within a monthly cap.

Where to see usage

Open the AI usage tab in the workspace top bar. You'll see this month's spend, broken down by user and by AI feature (persona, stage, etc.), plus a progress bar against the monthly budget.

How the budget is configured

The budget is set with the MONTHLY_AI_BUDGET_USD environment variable. Unset or zero disables the cap entirely. Set per deployment, not per workspace — the same value applies to every workspace on the instance for now (per-workspace caps are on the roadmap).

Alerts

When workspace spend crosses 80% of the monthly budget, an email goes to all owners and admins. A second alert fires at 100%. Alerts are idempotent — only sent once per threshold per month.

Above 100%, AI requests return a friendly "monthly_budget_exceeded" error in the UI. The cap resets on the 1st of each month.

Test mode

If NEXT_PUBLIC_AI_TEST_MODE is set on the deployment, AI calls return mock data and don't hit the Anthropic API at all. Use it for staging or demo workspaces where you want the UI but no real spend.

More in AI