Back to prompt library
Setup OpenAI Credit Risk Intervention Agent
Linked challenge: Credit Card Default Risk & Intervention Agent with OpenAI Agents SDK
Prompt source
implementation10 lines4 sectionsNo variables0 checklist items
from openai import OpenAI
client = OpenAI()
def get_borrower_metrics(account_id: str):
# Tool function returning credit telemetry
return {"utilization": 0.92, "delinquencies": 2}
agent_instructions = """
You are a credit risk intervention specialist for a UK retail bank.
Analyze borrower credit metrics, assess default risk under current UK economic pressures,
and recommend appropriate forbearance options complying with FCA guidelines.
"""