PROMPT ENGINEERING

Prompt Engineering for Financial Analysis and Investment Research

A good model can read a 10-K in seconds, but only a good prompt turns that reading into an investment decision you can defend. This guide shows how to structure prompts for earnings summaries, ratio analysis, and risk checks — so the output is accurate, sourced, and easy to audit.

FreeLast tested: 2026-10-30Audience: Finance analysts and investors

Why generic prompts fail on financial data

Ask a chatbot to "analyze this company" and you will usually get a confident paragraph that mixes last quarter with last year, quotes a margin without saying which margin, and never tells you where a number came from. That is not analysis. It is a summary wearing a suit. Financial work punishes exactly this kind of vagueness, because a single misplaced decimal or a confused fiscal year can flip a recommendation.

The fix is not a smarter model. It is a stricter prompt. In finance, a prompt is a small contract: it states the source documents, the exact metrics to compute, the format of the answer, and the checks the model must run before it reports anything. When any of those four parts is missing, the model fills the gap with a guess, and guesses are the one thing an investment memo cannot contain.

There is a second reason to be strict. Investment research is reviewed. A colleague, a compliance officer, or an auditor should be able to rerun your prompt on the same documents and get the same structure back. Prompts that live only in a chat window, improvised each time, cannot be reviewed. Prompts saved as a versioned library can.

The five-part prompt structure for finance work

Every reliable finance prompt we use at YesAI follows the same five parts. Memorize them once, and most of your prompt problems disappear.

  1. Role and audience: "You are an equity research analyst writing for a portfolio manager." The role sets the level of detail; the audience sets the tone.
  2. Sources and scope: name the documents and the period. "Use only the Q3 2026 earnings release and 10-Q attached. Do not use news articles or prior-year figures unless labeled as such."
  3. Task and metrics: list the exact outputs. Revenue growth, gross margin, operating margin, free cash flow, and net debt — each defined, so the model cannot quietly swap one definition for another.
  4. Format: demand a table, one row per metric, with columns for value, prior period, change, and source page. Structured output is far easier to check than prose, and it connects directly to structured-output techniques for pulling clean numbers out of messy filings.
  5. Checks: require the model to flag anything it could not verify, show its arithmetic, and state what would change its conclusion. A model that must show its work is a model you can trust a little further.

Notice what this structure does: it moves judgment out of the model and back to you. The model computes and organizes. You decide what counts as evidence and what the numbers mean.

Earnings summaries that stay accurate

Earnings season is where sloppy prompts do the most damage, because speed matters and the temptation is to paste a release and ask for "the key takeaways." Instead, ask for a fixed skeleton every time: headline results versus consensus, the three drivers management cited, segment performance, guidance changes, and open questions for the call. A fixed skeleton makes quarters comparable — you can lay Q2 next to Q3 and see what actually moved.

Three rules keep earnings prompts honest. First, always attach the source or paste the exact text; never let the model summarize a quarter from memory, because training data ends and numbers drift. Second, ask for quotes or page references for every claim about guidance, since guidance is where misreading is most expensive. Third, separate facts from interpretation with two labeled sections, so a reader can see where the filing ends and your analyst's judgment begins.

For teams that produce these summaries weekly, the same skeleton doubles as a quality checklist. If a summary is missing the guidance section, it is not finished. That discipline is what turns prompting from a party trick into a repeatable reporting workflow, much like the reporting prompts covered in our guide to prompt engineering for business reporting.

Ratio analysis and comparison prompts

Ratios are where prompts usually go wrong in a quiet way. Ask for "profitability" and you may get return on equity when you wanted gross margin, or a trailing-twelve-months figure when you wanted the quarter. Name the ratio, its formula, and its period in the prompt, every time.

Prompt elementWeak versionStrong version
MetricCheck profitabilityCompute gross margin, operating margin, and net margin for Q3 2026
Formula(implied)Gross margin = (revenue - cost of goods sold) / revenue
ComparisonCompare with peersCompare with the same quarter last year and with two named peers, same period
Verification(none)Show each input value and its source; flag any missing input as "not disclosed"

Peer comparison deserves one extra instruction: force identical periods and identical definitions across companies. Companies report segments differently, and a model left to itself will compare one firm's adjusted operating income with another firm's GAAP figure and call it a comparison. Naming the definition in the prompt is the cheapest audit control you own.

Risk, red flags, and what AI must never decide

The most valuable finance prompt may be the one that looks for trouble. Ask the model to read a filing specifically for risk: rising receivables relative to revenue, shrinking cash conversion, new debt covenants, customer concentration, related-party transactions, and any change in accounting language from the prior filing. Framing the task as "find what changed and what weakened" produces far sharper output than "summarize the risks," because it gives the model a checklist instead of an invitation to be generic.

But there is a hard boundary. A prompt can gather evidence, compute ratios, and draft a memo. It must never make the investment decision. Position sizing, buy or sell calls, and client recommendations stay with a licensed human who can be held accountable. If your prompt asks the model "should I buy this stock," rewrite it to ask "what are the three strongest arguments for and against, with evidence for each." That version is both more useful and professionally defensible.

Two more guardrails belong in every finance prompt library. Never paste non-public or client-confidential data into a public model unless your firm has explicitly approved that tool for that data class. And never let an AI-generated number reach a client report without a human re-checking it against the source document. The model is a junior analyst with infinite stamina and no accountability — supervise it accordingly.

A reusable prompt library you can copy

Stop rewriting prompts from scratch. Keep a small library — five to ten prompts that cover your recurring jobs — and improve them each quarter. Here are two starter templates.

EARNINGS BRIEF Role: equity research analyst. Sources: only the attached Q3 2026 earnings release and 10-Q. Output: (1) headline results vs. consensus in a table, (2) three drivers management cited, each with a quote, (3) segment revenue and margin changes, (4) guidance changes, old vs. new, (5) three questions for the earnings call. Flag anything you could not verify as UNVERIFIED. Do not use data from other quarters unless labeled as prior-period comparison. RED-FLAG SCAN Read the attached 10-Q and list: receivables growing faster than revenue, cash conversion weakening, new or changed debt terms, customer concentration above 10%, and any accounting-policy language that changed since the prior filing. For each finding give the number, the prior-period number, and the page reference.

Test each prompt the same way you would test a spreadsheet: run it on a filing you already know well, and check every number by hand. If a prompt survives three known filings without an error, it earns a place in the library. If it fails, fix the prompt, not the output — editing model output by hand while leaving a broken prompt in place guarantees the same error next quarter.

Finance teams choosing tooling for this workflow should also weigh cost and data controls, not just model quality. Our framework for AI tool recommendations for finance and accounting teams covers how small teams pick tools that fit their compliance needs.

Limits and notes

Prompt engineering improves the reliability of AI-assisted research, but it does not remove its limits. Models can still misread tables, confuse fiscal calendars, and present an estimate as a reported figure. Treat every AI output as a draft that needs a human check against the primary document, especially before it reaches a client or an investment committee.

Start small: pick one recurring job, such as the weekly earnings brief, build its prompt with the five-part structure, and test it on three past filings. Once that prompt is trustworthy, add the next one. A library of five reliable prompts beats fifty clever ones nobody has verified.

Related reading