AI summaries
labelled, capped, never advice.
The market brief and per-company reports. With an AI key they are written by the provider you choose; without one the app shows a rules-based Automatic summary. Both are always labelled.
01How this product uses AI
- At run time, optional. If you switch on AI and enter your own key, the backend sends computed market facts (index levels, movers, headlines, a company's quote and key figures) to the AI provider you chose and shows the text it returns. Without a key nothing is sent to any AI provider.
- Labelled. AI text is always labelled "AI-generated", the rules-based fallback "Automatic summary".
- In the making of this item. AI tools were used to assist with parts of the code, documentation and graphics of this item. The author reviewed and tested the result.
02What it produces
| Text | Where | How often |
|---|---|---|
| Market brief | A card on Today and its own screen: a paragraph and bullets about the index ETFs, the advancers and decliners among your featured tickers, the biggest movers and recent headlines. | One per language. With AI, regenerated by refreshBrief when older than your interval (default 6 hours). |
| Company report | Five sections for one ticker, built from its quote, profile and key figures. Analyst ratings appear as counts. | On request, then cached once per ticker, language and day. |
The AI receives only facts the backend computed. Source: firebase/functions/src/api/insights.ts, ai.ts. A report needs a quote or a profile; with neither it is a 503, nothing is invented. Both texts open in a reading layout with the label, the disclaimer at the end and a Share button; the shared text carries the label and the disclaimer.
03Labels and the no-advice rules
- You can reword the labels and the disclaimer in Console → Legal, but they cannot be empty. Default disclaimer: "Prices and summaries are for information only and are not financial advice. Investing involves risk, including the loss of money; do your own research."
- The AI is instructed to describe only the given facts: no buy, sell or hold wording, no price targets, no forecasts.
- After generation the backend rejects AI text that contains advice or prediction wording and falls back to the automatic summary.
The filters reduce risk; they do not make AI text correct. Keep the label and the disclaimer, and never market the app as giving investment advice or signals.
04The automatic fallback
The app always gets a text. The labelled Automatic summary is used when:
- "Use AI" is off (the default) or no API key is set
- the daily call cap is reached
- the provider errors, times out, refuses or returns invalid output
- the output contains advice or prediction words
The automatic summaries use fixed templates in all 9 app languages. With AI off, company reports are free and ungated for everyone.
05Set it up (optional)
- Get a keyFrom your AI provider's dashboard (Anthropic, OpenAI, or any service with an OpenAI-compatible
/v1/chat/completionsendpoint). - Enter itConsole → AI summaries: choose the provider, paste the key (owner only, write-only), press Test. The test sends one tiny request.
- ModelAnthropic default:
claude-opus-5-5. Empty for OpenAI usesgpt-5-mini(firebase/functions/src/api/defaults.ts). For a compatible endpoint, enter its model id and base URL. - Switch onTurn on Use AI after the test passes.
| Setting | Default | Range |
|---|---|---|
| Use AI | Off | — |
| Market brief / Stock reports | On / On | — |
| Regenerate the brief every (hours) | 6 | 1–168 |
| AI calls per day (most) | 200 | 0–100,000; 0 = no AI calls |
| Longest answer (output tokens) | 1200 | 200–8000 |
| Free AI reports per user and day | 0 | 0–100 |
| Reports unlocked by a rewarded ad per user and day | 1 | 0–50 |
| AI reports per Pro user and day | 20 | 0–500 |
06Who gets an AI report
With AI on and a key set, the server decides (POST /v1/stocks/{symbol}/report). The app picks the first allowance that applies (app/lib/domain/report_gate.dart): Pro under the Pro daily allowance, then the free allowance, then one credit (from an AI report pack or granted in the console), then a rewarded ad if that placement is on; otherwise the paywall. Automatic summaries are never counted.
07Cost
Every AI call is billed by your AI provider to you. The daily cap (default 200) bounds the bill: over the cap everyone gets the automatic summary. Set a spending limit with the provider and watch the "AI calls today" tile on the console Overview.