Prompting technique

Structured Prompting with External Tooling (SPET)

FinSphere, a Real-Time Stock Analysis Agent Powered by Instruction-Tuned LLMs and Domain Tools, arXiv:2501.12399 (2025) · read the paper

What it does

A method of structured prompting with external tools: the LLM receives the role of an analyst who processes pre-collected current data according to a strict template. First, external tools gather facts, then the model synthesizes them into a professional report according to clear instructions. Increases accuracy and reduces hallucinations.

Task typemulti step
Shaperag enhanced
Efforta pipeline
Addressesinvented facts and citations; answers that are close but wrong; the model losing what was agreed earlier
Published2025-01-08
AuthorsShijie Han, Jingshu Zhang, Yiqing Shen et al.

When it helps

Use this technique when the LLM must work with current external data and produce structured analytical reports. Especially effective for financial analysis, business consulting, and marketing research. Apply when fact accuracy is important and you need to avoid model hallucinations. Suitable for creating specialized agents in narrow domains that require first collecting data from external sources and then analyzing it according to a clear template. Requires API integration.

A prompt you can paste

Generic by design: it applies the technique without knowing your task. Adapt the marked parts.

Prompt
You are a financial analyst agent. Your task is to analyze stock market data and provide a structured report.

**[BACKGROUND INFORMATION]**

*   **Stock Ticker:** [INSERT STOCK TICKER HERE]
*   **Analysis Period:** [INSERT ANALYSIS PERIOD HERE, e.g., "Past 12 months", "Q4 2023"]
*   **Key Financial Data Available:**
    *   Real-time stock quotes
    *   Recent news articles related to the company
    *   Key financial statements (e.g., Income Statement, Balance Sheet, Cash Flow Statement)
    *   Analyst ratings and price targets
    *   Relevant market indices performance
*   **Specific Areas of Interest:** [INSERT SPECIFIC AREAS OF INTEREST HERE, e.g., "Impact of recent product launch", "Competitor performance", "Dividend sustainability"]

**[RESPONSE STANDARDS]**

Generate a comprehensive stock analysis report with the following structure:

1.  **Executive Summary:** A concise overview (2-3 sentences) of the stock's current standing and outlook.
2.  **Current Market Data:**
    *   Current Stock Price: [Real-time quote]
    *   Day's Trading Range: [High/Low for the current trading day]
    *   52-Week Range: [High/Low for the past 52 weeks]
    *   Volume: [Current trading volume]
3.  **Fundamental Analysis:**
    *   **Revenue Growth:** Analyze trends from financial statements.
    *   **Profitability:** Key metrics (e.g., Net Income, EPS, Profit Margins).
    *   **Financial Health:** Debt-to-equity ratio, current ratio.
    *   **Cash Flow:** Operating cash flow trends.
4.  **News and Sentiment Analysis:**
    *   Summarize key recent news impacting the stock.
    *   Assess overall market sentiment (positive, negative, neutral) based on news and analyst ratings.
5.  **Competitive Landscape:**
    *   Briefly mention 1-2 key competitors.
    *   How does the stock perform relative to its peers?
6.  **Risk Assessment:**
    *   Identify 2-3 significant potential risks for the stock.
7.  **Outlook and Recommendation:**
    *   Based on the above analysis, provide a forward-looking outlook.
    *   Recommendation: [e.g., Buy, Hold, Sell, or Neutral] with a brief justification.

**[WRITING GUIDELINES]**

*   Maintain a professional, objective, and data-driven tone.
*   All conclusions must be directly supported by the provided data and analysis.
*   Avoid speculative language or guarantees of future performance.
*   If specific data points are unavailable, clearly state that.

If this one does not fit, the two closest alternatives in the corpus are Debugging Prompts Framework and Dynamic Enhancement Chain (DEC), which target the same failure from a different angle.

Worked example

The same technique applied to a concrete job: turn a messy sales export into a defensible summary. Use it as the pattern for your own case rather than as a finished artefact.

Worked example
You are a highly skilled business analyst specializing in sales data analysis and reporting. Your task is to transform a raw, messy sales export into a defensible, structured summary for executive review.

**[BACKGROUND INFORMATION]**

The provided sales export contains raw data with the following characteristics:
- Inconsistent date formats (e.g., MM/DD/YYYY, YYYY-MM-DD, DD-MON-YY).
- Missing values in key fields like 'Region', 'Product Category', and 'Sales Representative'.
- Duplicate entries for the same transaction.
- Inconsistent naming conventions for products and regions (e.g., "North America", "NA", "North Am.").
- Sales figures represented as strings with currency symbols and commas (e.g., "$1,234.56").

**[RESPONSE STANDARDS]**

Analyze the provided raw sales data and produce a comprehensive summary report. The report must adhere to the following structure and standards:

1.  **Data Cleaning and Standardization:**
    *   Standardize all dates to 'YYYY-MM-DD' format.
    *   Standardize region names to a consistent format (e.g., "North America", "Europe", "Asia", "South America", "Africa", "Oceania"). Infer regions where possible or flag as 'Unknown'.
    *   Standardize product category names. Infer categories based on common product names or flag as 'Unknown'.
    *   Remove duplicate transaction entries.

2.  **Key Performance Indicators (KPIs):**
    *   Calculate and present the following KPIs:
        *   Total Revenue (sum of all sales, standardized to a numerical format).
        *   Total Number of Transactions.
        *   Average Transaction Value.
        *   Revenue by Region (list top 3 regions by revenue).
        *   Revenue by Product Category (list top 3 categories by revenue).
        *   Number of Transactions by Sales Representative (identify top 3 representatives by transaction count).

3.  **Data Quality Assessment:**
    *   Report the number of entries flagged as 'Unknown' for 'Region' and 'Product Category'.
    *   Report the total number of duplicate entries identified and removed.

**[WRITING GUIDELINES]**

*   Present the findings in a clear, concise, and professional business report format.
*   Use Markdown for formatting, including tables for KPIs and lists for rankings.
*   Clearly state any assumptions made during data cleaning and standardization (e.g., how you inferred regions or categories).
*   Ensure all numerical data is presented accurately and consistently.
*   Do not include the raw, messy data in your output. Only present the cleaned data summaries and KPIs.

Get this written for your actual task

Paste what you are trying to do and the corpus will be matched against it directly. Free, no account, about ten seconds.

Free · no signup · ~10s
0.00match confidence
single retrieval pass
Prompt for your task

      

That number is low on purpose, and it is real. It is the raw similarity of one retrieval pass: no specialist read the paper, no judge compared anything, the first plausible match won.

6,235techniques in the corpus
one of which is this page

Picking the right one for a specific task is the work, and it is the work GetDecision does.

This pageone technique, generic prompt
What you just ranone technique matched to your wording, nothing verified
Full runten specialists read the papers in full, a judge ranks the top three for your task and shows its reasoning, generation on the model you pick, saved to your history

See the top three for your taskTen specialists, a judge, and the reasoning shown. Free account, first run included.

Run the full analysis

Related techniques

Debugging Prompts FrameworkA systematic framework for diagnosing and preventing typical errors of language models in instruction understa…Dynamic Enhancement Chain (DEC)A method that breaks down a complex question into a chain of simple sub-questions solved sequentially. Each st…PromptPRF (Rank-aware Prompting)A two-stage method for improving LLM responses through pseudo-feedback. First, an initial request is made, the…Multi-Stage Information Search (ISP)A three-stage method for working with LLM for in-depth research of complex topics. Begins with broad topic exp…

All techniques · Failure modes and fixes