Turn quantitative credit model outputs into plain-language narratives that non-technical stakeholders can act on โ through iterative prompt refinement.
โฑ 35 minutes
Exercise Overview
AnyCompany's credit committees review PayLater and merchant financing applications daily. The quantitative risk models produce numbers โ probability of default, loss given default, exposure at default โ but committee members need plain-language narratives that explain what the numbers mean and whether to approve.
Currently, credit analysts spend 20-30 minutes per application writing these narratives manually. In this exercise, you'll build a prompt template that converts raw model outputs into consistent, balanced credit narratives in seconds.
โ๏ธ Setup: How to run this exercise
Use Kiro chat for this exercise. You'll paste prompts and observe how the output improves with each technique.
Session management:
Steps 1โ5: Start a New Session for each step
Step 6: Continue in the same session as Step 5
Step 7: Start a New Session to validate the template
๐ฏ Exercise Approach
You'll refine a prompt through 6 steps โ each applying a different technique from the Advanced Prompting curriculum. Then you'll validate the resulting template against a completely different applicant profile. The final deliverable is a reusable prompt template for credit risk narratives.
Techniques You'll Practice
Step
Prompting Technique
Curriculum Reference
Duration
Step 1
Zero-Shot Baseline
Module 1: Prompt Fundamentals
3 min
Step 2
Step-Back Prompting
Module 2: Chain-of-Thought (Step-Back variant)
4 min
Step 3
Audience Framing
Module 3: Role & Persona
4 min
Step 4
Multi-Perspective Analysis
Module 3: Multi-Agent Framing
5 min
Step 5
Structured Output + Length Control
Module 4: Structured Outputs
6 min
Step 6
Template Extraction (Meta-Prompting)
Module 5.2: Meta-Prompting
8 min
Step 7
Template Validation (New Data)
Production Testing
5 min
Sample Credit Application Data
You'll use this data throughout all steps. Copy it once โ you'll paste it into each prompt.
CREDIT APPLICATION DATA โ Copy this for use in all steps
APPLICANT: FreshBites Pte Ltd (Merchant ID: MRC-4412)
Application Type: PayLater Merchant Credit Line
Requested Amount: $150,000 SGD
Term: 12 months revolving
BUSINESS PROFILE:
- Registered: Singapore, 2021
- Category: Food & Beverage (cloud kitchen, 3 outlets)
- Annual revenue (2024): $1.8M SGD
- Annual revenue (2025 YTD, annualized): $2.4M SGD
- Employees: 28 full-time, 12 part-time
- Years on AnyCompany platform: 2.5 years
QUANTITATIVE MODEL OUTPUTS:
- Probability of Default (PD): 3.2%
- Loss Given Default (LGD): 45%
- Exposure at Default (EAD): $150,000 SGD
- Expected Loss (EL): $2,160 SGD (PD ร LGD ร EAD)
- Risk Rating: BB+ (internal scale: AAA to D)
- Debt Service Coverage Ratio (DSCR): 1.4x
- Current Ratio: 1.2
- Debt-to-Equity: 0.8
TRANSACTION HISTORY ON PLATFORM:
- Monthly GrabPay volume (last 6 months): $85K โ $92K โ $98K โ $105K โ $112K โ $120K
- PayLater transaction share: 32% of total volume
- Chargeback rate: 0.3% (within benchmark)
- Settlement reliability: 99.8% on-time
EXISTING OBLIGATIONS:
- Bank term loan: $80,000 SGD outstanding (monthly repayment $4,200)
- Equipment lease: $12,000 SGD remaining (monthly $1,000)
- No existing AnyCompany credit facility
COLLATERAL / SECURITY:
- Proposed: Personal guarantee from director (Lim Mei Hua)
- No physical collateral offered
- AnyCompany platform receivables can be used as informal security
INDUSTRY CONTEXT:
- Singapore F&B sector growth: 8% YoY (2024-2025)
- Cloud kitchen segment growing at 15% YoY
- Average PD for F&B merchants on platform: 4.5%
- Average PD for all merchants on platform: 3.8%
RED FLAGS / NOTES:
- Director Lim Mei Hua has a previous business (LMH Trading) that was dissolved in 2019 โ no outstanding liabilities found
- One late payment on bank term loan (7 days late, March 2025) โ subsequently resolved
- Rapid revenue growth (33% YoY) โ positive but requires sustainability assessment
Start with a minimal prompt to establish a baseline. This shows what the model produces with almost no guidance.
In the Kiro chat panel, start a New Session and paste:
PROMPT โ Step 1: Zero-Shot
Write a credit risk narrative for this application.
[PASTE CREDIT APPLICATION DATA HERE]
๐ Observe the output: The response likely dumps all the numbers back at you, uses jargon a committee member wouldn't understand, and doesn't clearly recommend APPROVE or DECLINE. Note what's missing.
Instead of diving straight into the narrative, ask the model to first identify the most important factors. This "step back" forces the model to prioritize before writing โ producing a more focused, insightful narrative.
Start a New Session in Kiro and paste:
PROMPT โ Step 2: Step-Back
Before writing anything, first identify the 3 most important risk factors and the 3 strongest mitigating factors from this credit application data. Rank them by significance.
Then, using those prioritized factors, write a credit risk narrative for the application.
[PASTE CREDIT APPLICATION DATA HERE]
๐ Compare with Step 1: The narrative should now lead with the most important points instead of listing everything equally. The step-back forces prioritization โ the same skill a senior analyst uses instinctively.
๐ฌ Why step-back works for credit narratives: Credit committees don't want to read every data point โ they want to know "what matters most?" Step-back prompting mirrors how experienced analysts think: assess the landscape first, then write the story.
Step 3: Add Audience Framing
๐ Technique: Audience Framing (Module 3: Role & Persona)
Instead of assigning a persona to the AI, you define the audience. This shapes the vocabulary, level of detail, and what gets explained vs. assumed.
Start a New Session in Kiro and paste:
PROMPT โ Step 3: Audience Framing
You are a Senior Credit Analyst at AnyCompany Financial Group preparing a credit narrative for the Credit Committee.
Your audience is the Credit Committee โ they understand business fundamentals and financial statements, but they are NOT statisticians. They need:
- Plain-language explanations of what the model outputs mean in practical terms
- Context: how does this applicant compare to peers?
- Clear "so what?" for each data point โ don't just state numbers, explain their implications
- No unexplained acronyms on first use (spell out PD, LGD, DSCR on first mention)
First, identify the 3 most important risk factors and 3 strongest mitigating factors. Then write the credit narrative.
[PASTE CREDIT APPLICATION DATA HERE]
๐ Compare with Step 2: The language should now be more accessible. Instead of "PD is 3.2%," you should see something like "The probability that this merchant defaults on the facility is 3.2% โ lower than the 4.5% average for F&B merchants on our platform, indicating above-average creditworthiness for this segment."
Ask the model to present both the optimistic and cautious view. This prevents one-sided narratives and gives the committee a balanced picture โ the same approach used in investment banking memos.
Start a New Session in Kiro and paste:
PROMPT โ Step 4: Multi-Perspective
You are a Senior Credit Analyst at AnyCompany Financial Group preparing a credit narrative for the Credit Committee. The committee understands business fundamentals but not statistical models โ explain implications in plain language.
First, identify the 3 most important risk factors and 3 strongest mitigating factors.
Then write the credit narrative with TWO clearly labeled perspectives:
**THE CASE FOR APPROVAL:**
Present the strongest arguments for why this credit facility should be approved. Reference specific data points that support creditworthiness, growth trajectory, and repayment capacity.
**THE CASE FOR CAUTION:**
Present the legitimate concerns and risks. What could go wrong? What assumptions are we making? What would make this application riskier than it appears?
After both perspectives, provide your balanced assessment โ weighing both sides.
[PASTE CREDIT APPLICATION DATA HERE]
๐ Compare with Step 3: The narrative now presents both sides explicitly. The committee can see the bull case AND the bear case, making their decision more informed. This is much more useful than a one-sided recommendation.
๐ฌ Why multi-perspective matters in credit: Regulators and auditors look for evidence that credit decisions considered both upside and downside scenarios. A narrative that only says "approve" without acknowledging risks is a red flag in an audit. Multi-perspective prompting builds this balance in automatically.
Step 5: Add Structured Output + Length Control
๐ Technique: Structured Output + Length Control (Module 4)
Define exact sections, add a decision recommendation with conditions, and control the output length. This ensures every credit narrative is comparable and scannable.
Start a New Session in Kiro and paste:
PROMPT โ Step 5: Structured + Length Control
You are a Senior Credit Analyst at AnyCompany Financial Group preparing a credit narrative for the Credit Committee. The committee understands business fundamentals but not statistical models.
GROUNDING RULES:
- Base your narrative ONLY on the data provided. Do not add external information.
- Every claim must reference a specific data point from the input.
- If data is insufficient for an assessment area, state: "[INSUFFICIENT DATA: need X]"
- Spell out all acronyms on first use.
Produce a Credit Risk Narrative with EXACTLY these sections:
1. EXECUTIVE SUMMARY (3-4 sentences max)
- Who is the applicant, what are they requesting, and what is your recommendation?
2. APPLICANT OVERVIEW (1 paragraph)
- Business profile, platform history, revenue trajectory
3. KEY RISK METRICS (table format)
| Metric | Value | Benchmark | Assessment |
Include: PD, LGD, EL, DSCR, Current Ratio, Debt-to-Equity, Chargeback Rate
4. THE CASE FOR APPROVAL (3-5 bullet points)
- Each bullet: data point โ plain-language implication
5. THE CASE FOR CAUTION (3-5 bullet points)
- Each bullet: concern โ specific data point โ potential impact
6. RISK MITIGANTS & CONDITIONS
- What conditions would reduce the identified risks?
- Suggested covenants or monitoring requirements
7. RECOMMENDATION
One of: APPROVE | APPROVE WITH CONDITIONS | DECLINE
- 2-3 sentence justification referencing the key evidence
- If APPROVE WITH CONDITIONS: list the specific conditions
8. MONITORING TRIGGERS
- What metrics should be watched post-approval?
- At what thresholds should the facility be reviewed?
TOTAL LENGTH: Keep the entire narrative under 800 words. Be concise โ every sentence must earn its place.
[PASTE CREDIT APPLICATION DATA HERE]
๐ Compare with Step 4: The output is now structured, scannable, and concise. The committee can jump to Section 7 for the recommendation, or read the full narrative for context. The 800-word limit forces the model to prioritize.
Step 6: Extract the Reusable Template
๐ Technique: Meta-Prompting (Module 5.2)
Ask the AI to analyze the prompt you've built and convert it into a reusable template with variables โ turning your iterative work into a production artifact.
In the same session from Step 5 (do not start a new one), paste this follow-up:
PROMPT โ Step 6: Template Extraction
Excellent. Now convert this into a reusable template that any credit analyst can use for ANY PayLater or merchant financing application.
Create a Markdown file called "credit-risk-narrative-prompt-template.md" and save it in a "prompt-templates" folder. Structure it as follows:
## HEADER
- Title: "Credit Risk Narrative โ Prompt Template"
- Version, date, purpose, usage instructions
## TEMPLATE USAGE GUIDE
A table listing ALL variables with: Variable name, Description, Expected Format, Example.
Variables should include:
{{applicant_name}}, {{merchant_id}}, {{application_type}}, {{requested_amount}}, {{term}}, {{currency}}, {{business_profile}}, {{model_outputs}}, {{transaction_history}}, {{existing_obligations}}, {{collateral}}, {{industry_context}}, {{red_flags}}, {{analysis_period}}
## DATA FORMAT EXAMPLES
Show the exact format expected for complex variables (model_outputs, transaction_history, existing_obligations) with realistic sample data.
## PREREQUISITES
What data to gather before using the template.
## ---START PROMPT--- / ---END PROMPT---
The full prompt containing:
- Persona and audience framing
- Grounding rules
- The 8-section output format with descriptions
- Length control instruction
- All {{variables}} in a clearly organized input block at the end
## CUSTOMIZATION NOTES (after ---END PROMPT---)
1. **Application Type Adjustments** โ How to modify for PayLater credit lines vs. merchant term loans vs. working capital facilities
2. **Risk Appetite Calibration** โ How to adjust recommendation thresholds for conservative vs. growth-oriented credit policies
3. **Regulatory Considerations** โ Table of SEA markets with relevant credit/lending regulations
4. **Modifiable Sections** โ What can/cannot be changed and why
The template must be self-contained โ a new analyst should be able to use it without additional training.
โ Final deliverable: Kiro will create a prompt-templates/credit-risk-narrative-prompt-template.md file. This is your production-ready, reusable template.
Step 7: Validate the Template with New Data
๐ Technique: Production Testing
Test your template against a completely different applicant โ different market, different product, different risk profile โ to confirm it generalizes.
Start a New Session in Kiro (this simulates a real user picking up your template for the first time). Paste your template from Step 6, then fill in the variables with this new data:
TEST DATA โ Different applicant for validation
APPLICANT: GoRide Motors Sdn Bhd (Merchant ID: MRC-7803)
Application Type: Working Capital Facility
Requested Amount: RM 500,000 (Malaysian Ringgit)
Term: 6 months revolving
BUSINESS PROFILE:
- Registered: Malaysia, 2019
- Category: Automotive Services (motorcycle rental & maintenance for ride-hailing drivers)
- Annual revenue (2024): RM 3.2M
- Annual revenue (2025 YTD, annualized): RM 2.8M (declining)
- Employees: 45 full-time
- Years on AnyCompany platform: 3 years
QUANTITATIVE MODEL OUTPUTS:
- Probability of Default (PD): 6.8%
- Loss Given Default (LGD): 55%
- Exposure at Default (EAD): RM 500,000
- Expected Loss (EL): RM 18,700
- Risk Rating: B (internal scale: AAA to D)
- Debt Service Coverage Ratio (DSCR): 1.1x
- Current Ratio: 0.9
- Debt-to-Equity: 1.6
TRANSACTION HISTORY ON PLATFORM:
- Monthly AnyCompany Pay volume (last 6 months): RM 280K โ RM 265K โ RM 250K โ RM 240K โ RM 235K โ RM 228K
- PayLater transaction share: 18% of total volume
- Chargeback rate: 0.6% (at upper benchmark)
- Settlement reliability: 97.2% on-time
EXISTING OBLIGATIONS:
- Bank term loan: RM 200,000 outstanding (monthly repayment RM 12,000)
- Vehicle fleet financing: RM 350,000 remaining (monthly RM 18,000)
- Existing AnyCompany credit line: RM 100,000 (85% utilized)
COLLATERAL / SECURITY:
- Proposed: Fleet of 120 motorcycles (estimated value RM 600,000)
- Personal guarantee from director (Ahmad Razak bin Ismail)
- AnyCompany platform receivables
INDUSTRY CONTEXT:
- Malaysia ride-hailing market growth: 3% YoY (slowing from 12% in 2023)
- Motorcycle rental segment facing pressure from e-bike alternatives
- Average PD for automotive services merchants: 5.2%
- Average PD for all merchants on platform (Malaysia): 4.0%
RED FLAGS / NOTES:
- Revenue declining 12.5% YoY โ director attributes to "seasonal adjustment" but trend is 6 months
- Current ratio below 1.0 indicates potential liquidity stress
- Existing AnyCompany credit line at 85% utilization โ high dependency
- Director Ahmad Razak has 2 other businesses (both active, no flags)
- Fleet maintenance costs increased 22% in last 6 months
Paste your template from Step 6 into a New Session, replace the {{variables}} with this data, and run it.
๐ Validate the output: This is a deliberately harder case โ declining revenue, weak liquidity, high existing debt. Check:
Does the template handle Malaysian Ringgit (not just SGD)?
Does it correctly identify this as a higher-risk application?
Does the multi-perspective section present a genuine "case for caution"?
Is the recommendation appropriate (likely DECLINE or APPROVE WITH CONDITIONS)?
Are the monitoring triggers relevant to the specific risks identified?
๐ฌ If the template doesn't handle this well: Common issues include: not adapting to a different currency, being too optimistic despite clear warning signs, or not adjusting the recommendation threshold. Iterate on the template โ this is how production templates get hardened.
Reflection & Discussion
What You Built
Through 7 iterative steps, you evolved a basic prompt into a production-grade credit narrative template that:
Translates quantitative model outputs into plain language for non-technical stakeholders
Presents both optimistic and cautious perspectives for balanced decision-making
Produces structured, scannable narratives under 800 words
Includes a clear recommendation with conditions and monitoring triggers
Works across different markets, currencies, and application types
Technique Recap
Step
Technique
What It Fixed
1. Zero-Shot
Baseline
Established what "bad" looks like
2. Step-Back
Prioritize before writing
Focused on what matters most
3. Audience
Audience framing
Plain language, no unexplained jargon
4. Multi-Perspective
Bull case + bear case
Balanced, audit-ready narrative
5. Structured
Sections + length control
Consistent, scannable, concise
6. Meta-Prompt
Template extraction
Reusable at scale
7. Validation
Test with new data
Confirmed template generalizes
๐ก Key takeaway: The multi-perspective technique is especially powerful for credit decisions. Regulators expect evidence that both upside and downside were considered. A prompt template that automatically generates balanced narratives doesn't just save time โ it improves the quality and auditability of every credit decision.
What You Accomplished
๐ Applied step-back prompting to prioritize risk factors before writing
๐ฅ Used audience framing to make quantitative data accessible to non-technical stakeholders
โ๏ธ Built multi-perspective analysis (bull case + bear case) into every narrative
๐ Created structured, length-controlled output that's consistent across applications
๐๏ธ Produced a reusable template for credit risk narratives across markets and products