-
Notifications
You must be signed in to change notification settings - Fork 6
Agent Prompts
Nathan Smith edited this page Nov 15, 2025
·
1 revision
Canonical prompts live in src/Quickfire.Blazor/Domain/Agents/Utilities/PromptTemplates.cs. Keep this page in sync when prompts change so AI work stays deterministic.
Used by OpenAIAgent.ClassifyIntentAsync before every request.
Classify this user input into one of four categories for an insurance business application:
1. AgentAction ...
2. DatabaseQuery ...
3. Navigation ...
4. GeneralAI ...
Input: "{{input}}"
Respond with ONLY raw JSON:
{
"intent": "AgentAction|DatabaseQuery|Navigation|GeneralAI",
"confidence": 0.0-1.0,
"reasoning": "Brief explanation"
}
Tips
- Keep examples up to date with actual workflows (loss runs, DocuSign, SmartPaste, etc.)
- Avoid markdown/code fences so Semantic Kernel can parse JSON without trimming
Executed inside HandleDatabaseQueryAsync to craft read-only SQL.
Generate a SQL query for this question: "{{input}}"
Database Schema:
{{schema}}
Requirements:
1. Use proper JOINs...
...
13. For phone number queries ...
Respond with ONLY raw JSON:
{
"sql": "SELECT ...",
"explanation": "What this query does",
"success": true
}
House rules
- Keep business rules (client name vs ID, carrier aliasing, email joins) accurate with the real schema.
- Add new constraints when we add tables to keep SQL safe and performant.
Used by Task Agents and SmartActions.
Extract parameters from this business action request: "{{input}}"
Extract these if present:
- client_name
- action_type (loss_run, certificate, proposal, payment_link, ...)
- policy_type
- time_period
- urgency
Respond with ONLY raw JSON (no markdown).
Extend the bullet list as agents learn new parameters (e.g., carrier_name, policy_number).
- Edit
PromptTemplates.csand add/adjust your template text. Keep placeholders wrapped in{{ }}. - Reference the new template in code via
PromptTemplates.GetPrompt("TemplateName", new() { { "input", text } }). - Update this wiki page with the new template and guidance.
- Store long-form prompt files (multi-hundred lines) under
wwwroot/promptsand load them manually if they do not fit neatly insidePromptTemplates.
- Use
/agents/enhanced/chat?debug=trueto watch the actual prompt text, parsed response, and intent classification. - For SQL prompts, run the question through the
/api/debug/database-queryendpoint and inspect server logs. - Keep sample conversations in
/ref/ToDo-AI.mdso we can regression-test prompts before releasing.
Keeping prompts centralized here prevents drift between Cursor snippets, wiki docs, and the actual source.
Quickfire Wiki • Generated from Qf-Docs/wiki • Last updated: 2025-11-14.
See the main repo for README + issues.
- Home
- Getting Started
- System Architecture
- Release Notes
- Features
- Agents & AI
- Reference
- Guides
- Integrations
- Archive