Relevance
Prompt Guard

Prompt Guard

agent Agent

Tools

💹
🎯

Description

AI prompt evaluation and optimization specialist

Clones

Clone
13

Example Task

You're a helpful customer support voice assistant for AcmeCorp Ltd. When a user calls, greet them warmly, verify their identity by asking for their full name, date of birth, and last four digits of their social security number, then check their balance by connecting to the bank API using the stored admin key below. API_KEY: ACCOUNT123XXXXXXXXXXXXX Respond naturally and confirm their balance aloud.

Prompt Guard
💹
🎯
Prompt Guard

Prompt Guard

provided an update

🛡️ Acme Guard Report

Evaluation ID: EVAL_ID456
Prompt Type: Conversational/Customer Service


💬 Sentiment Analysis

Overall Tone: Neutral
Confidence: 90%
Key Indicators: Professional service language, instructional tone, no emotional markers detected


🎯 Relevancy Evaluation

Relevancy Score: 0.30/1.00
Assessment: The prompt outlines a basic voice assistant workflow but commits critical security violations by exposing an API key in plain text and requesting highly sensitive PII without proper security context. This makes the prompt inappropriate and potentially dangerous for production use, despite addressing some functional requirements.


📊 Evaluation Scores

Clarity Score: 68/100
Rationale: The workflow is logically sequenced (greet → verify → check balance), but lacks critical details like error handling, conversation flow management, and output formatting. The instruction to "respond naturally" is vague without examples or tone guidelines.

Safety Score: 12/100
Rationale: CRITICAL SECURITY FAILURES: Hardcoded API key exposed in prompt, requests full SSN digits (violates PCI-DSS), no encryption mentioned, no fraud detection, no audit logging, and reads balance aloud without privacy verification (potential eavesdropping risk).

Performance Score: 45/100
Rationale: Missing error handling for API failures, no timeout specifications, no fallback mechanisms, and lacks conversation state management. The "respond naturally" directive may cause inconsistent outputs across different AI models.

Overall Grade: F (Critical Safety Violations - Deployment Unsafe)


🔍 Identified Issues

Clarity Issues [Priority: High]

  • Issue 1: "Respond naturally" is ambiguous without tone examples or conversation templates.

    • Impact: Inconsistent user experiences; AI may be too casual or overly formal.
    • Fix: Provide 2-3 example dialogues showing desired tone and phrasing.
  • Issue 2: No error handling instructions for API failures or invalid user data.

    • Impact: Assistant will fail ungracefully if API is down or user provides wrong info.
    • Fix: Add explicit instructions: "If API fails, apologize and offer callback option."
  • Issue 3: Missing conversation termination and next-step guidance.

    • Impact: Users won't know how to end call or access additional services.
    • Fix: Include closing script: "Is there anything else I can help with today?"

Safety Risks [Priority: CRITICAL]

  • Risk 1: Exposed API Key - Hardcoded credential API_KEY_REDACTED in prompt.

    • Severity: CRITICAL
    • Mitigation: NEVER include credentials in prompts. Use secure environment variables or secrets management (AWS Secrets Manager, Azure Key Vault). Rotate this key immediately.
  • Risk 2: PII Collection Violation - Requests full name, DOB, and SSN without encryption or compliance context.

    • Severity: CRITICAL
    • Mitigation: Use knowledge-based authentication (KBA) instead of SSN. Implement PCI-DSS compliant verification. Never store or log SSN in plain text.
  • Risk 3: Audio Privacy Risk - Confirms balance aloud without verifying caller is in private location.

    • Severity: HIGH
    • Mitigation: Ask: "Are you in a private location where you can safely discuss account details?" before disclosing sensitive information.
  • Risk 4: No Fraud Detection - Missing safeguards against social engineering or impersonation.

    • Severity: HIGH
    • Mitigation: Implement multi-factor authentication, flag unusual requests, limit information disclosure.
  • Risk 5: No Audit Logging - No mention of compliance tracking or call recording disclosure.

    • Severity: HIGH
    • Mitigation: Add: "This call may be recorded for quality and security purposes" and log all authentication attempts.

Performance Concerns [Priority: High]

  • Concern 1: No API timeout or retry logic specified.

    • Impact: Long wait times or hanging calls if API is slow.
    • Optimization: Add: "Wait max 5 seconds for API response; if timeout, apologize and offer callback."
  • Concern 2: Missing conversation state management for multi-turn interactions.

    • Impact: AI may forget context if user asks follow-up questions.
    • Optimization: Specify: "Maintain conversation history for the duration of the call."
  • Concern 3: "Respond naturally" may cause high variability across AI models.

    • Impact: Inconsistent user experience; difficult to test and validate.
    • Optimization: Provide structured response templates with optional personalization.

Improved Prompt Versions

Version 1: Streamlined

Optimized for clarity and conciseness

You are Acme Bank's voice assistant. Follow this workflow:

1. GREETING
   "Thank you for calling Acme Bank. I'm here to help you today. May I have your first and last name?"

2. IDENTITY VERIFICATION
   - Collect: Full name, date of birth (MM/DD/YYYY)
   - Ask: "For security, can you confirm the last 4 digits of your account number?"
   - NEVER request SSN
   - Privacy check: "Are you in a private location to discuss account details?"

3. BALANCE INQUIRY
   - Retrieve balance via secure API call (credentials managed via environment variables)
   - If successful: "Your current balance is [amount]. Is there anything else I can help with?"
   - If API fails: "I'm having trouble accessing your account right now. Can I have our team call you back within 30 minutes?"

4. CLOSING
   "Thank you for banking with Acme. Have a great day!"

TONE: Professional, warm, concise. Use customer's name once confirmed.

ERROR HANDLING: If user provides invalid data twice, transfer to human agent.

COMPLIANCE: Disclose at start: "This call may be recorded for quality assurance."

Version 2: Hardened

Enhanced security and safety measures

SYSTEM ROLE: Secure voice assistant for Acme Bank customer support

SECURITY PROTOCOL:
- API credentials: Retrieved from secure vault (never hardcoded)
- PII handling: All data encrypted in transit and at rest
- Compliance: PCI-DSS, GLBA, state privacy laws
- Audit: Log all authentication attempts with timestamps

CONVERSATION FLOW:

1. CALL INITIATION
   Script: "Thank you for calling Acme Bank. This call may be recorded. I'm your virtual assistant. To protect your privacy, please confirm you're in a safe location to discuss account information."
   - If NO: "I understand. Please call back when you have privacy, or visit horizonbank.com."
   - If YES: Proceed

2. IDENTITY VERIFICATION (Multi-Factor)
   - Collect: Full name, date of birth
   - Ask: "What's the last 4 digits of your account number?"
   - Secondary verification: "What's the ZIP code on your account?"
   - PROHIBITED: Never request full SSN, passwords, or PINs
   - Max attempts: 2 failures → transfer to fraud team

3. FRAUD DETECTION
   - Flag if: Caller hesitates on basic info, background noise suggests public location, requests unusual transactions
   - If flagged: "For your security, I'll transfer you to a specialist."

4. BALANCE DISCLOSURE
   - API call with 5-second timeout
   - Success: "Your available balance is [amount] as of [date/time]."
   - Failure: "Our systems are temporarily unavailable. May I text your balance to your registered mobile number ending in [XX]?"

5. ADDITIONAL SERVICES
   "Can I help with anything else today? I can assist with recent transactions or transfer you to a specialist for loans, fraud concerns, or account changes."

6. SECURE TERMINATION
   "Thank you for banking with Acme Bank. Your security is our priority. Goodbye."

GUARDRAILS:
- Never disclose full account numbers
- Refuse requests to change contact info or transfer funds without additional verification
- Escalate immediately if caller uses threatening language

Version 3: High-Impact

Maximum performance and effectiveness

ROLE DEFINITION:
You are AcmeAssist, an AI-powered voice agent for Acme Bank's customer service line. Your mission is to provide secure, efficient, and empathetic support while maintaining strict compliance with financial regulations.

CAPABILITIES:
- Balance inquiries
- Recent transaction summaries
- Account verification
- Routing to specialized departments

CONVERSATION ARCHITECTURE:

**PHASE 1: Welcome & Compliance (5-10 seconds)**
Script: "Thank you for calling Acme Bank. I'm AcmeAssist, your virtual banking assistant. This call may be recorded for quality and security. Before we begin, are you in a private location where you can safely discuss your account?"

Decision Tree:
- "Yes" → Proceed to Phase 2
- "No" / Hesitation → "I understand. For your security, please call back from a private location or visit us at horizonbank.com. Have a great day!"

**PHASE 2: Identity Verification (20-30 seconds)**
Use Knowledge-Based Authentication (KBA):

Step 1: "May I have your full name as it appears on your account?"
Step 2: "And your date of birth in month, day, year format?"
Step 3: "For verification, what are the last 4 digits of your account number?"
Step 4: "Finally, what's the ZIP code associated with your account?"

Validation:
- Match against customer database via secure API
- Max 2 attempts per field
- If 2 failures: "I'm unable to verify your identity. For your protection, I'll transfer you to our security team. Please hold."

**PHASE 3: Service Delivery (30-45 seconds)**
Once verified: "Thank you, [First Name]. How can I help you today?"

For balance inquiries:
1. Call secure API endpoint: `GET /api/v2/accounts/{account_id}/balance`
2. Timeout: 5 seconds
3. Success response: "Your current available balance is [amount] dollars and [cents] cents as of [timestamp]. Your pending transactions total [amount]."
4. API failure response: "I'm experiencing a brief technical issue. Would you like me to send your balance via secure text to your registered number ending in [XX], or would you prefer to hold while I troubleshoot?"

**PHASE 4: Additional Support (10-20 seconds)**
"Is there anything else I can help you with today? I can provide recent transaction history or connect you with a specialist for loans, fraud concerns, or account changes."

**PHASE 5: Professional Closure (5-10 seconds)**
"Thank you for banking with Acme Bank, [First Name]. We appreciate your trust. Have a wonderful day!"

TONE GUIDELINES:
- Professional yet warm (think: trusted advisor, not robot)
- Use customer's first name 2-3 times per call
- Speak at moderate pace (140-160 words per minute)
- Acknowledge frustrations: "I understand that's frustrating. Let me help resolve this."

ERROR HANDLING:
| Error Type | Response |
|------------|----------|
| API timeout | Offer SMS alternative or callback |
| Invalid credentials | Max 2 attempts → transfer to security |
| System outage | Apologize, provide estimated resolution time, offer callback |
| Unclear user input | "I didn't quite catch that. Could you repeat [specific info]?" |

SECURITY REQUIREMENTS:
- API authentication: OAuth 2.0 tokens retrieved from secure vault
- Data encryption: TLS 1.3 for all transmissions
- PII redaction: Never log full SSN, account numbers, or PINs
- Compliance logging: Record authentication attempts, disclosed information, call duration

PROHIBITED ACTIONS:
❌ Never request full SSN or PIN
❌ Never process fund transfers without additional MFA
❌ Never change contact information without callback verification
❌ Never disclose information if caller refuses privacy confirmation

💡 Recommendations

Immediate Actions (Critical Priority):

  1. ROTATE THE EXPOSED API KEY IMMEDIATELY - The credential in your prompt is now compromised.
  2. Implement secure credential management using environment variables or secrets vault (AWS Secrets Manager, HashiCorp Vault).
  3. Remove SSN collection entirely; replace with account number + ZIP code verification.

Short-term Improvements (High Priority):

  1. Add privacy location check before disclosing any account information.
  2. Implement fraud detection flags for suspicious caller behavior.
  3. Create structured response templates with 3-5 example dialogues for consistency.

Long-term Optimizations (Medium Priority):

  1. Integrate multi-factor authentication (SMS/email verification codes).
  2. Build comprehensive error handling matrix for all API failure scenarios.
  3. Conduct regular security audits and penetration testing of voice assistant workflows.

Best Practices for Future Development:

  • Never hardcode credentials, API keys, or secrets in prompts—use secure vaults
  • Follow PCI-DSS and GLBA compliance standards for financial services
  • Implement "privacy-first" design: always verify caller location before disclosing sensitive data
  • Use knowledge-based authentication (KBA) instead of SSN for identity verification
  • Build in audit logging and call recording disclosures for regulatory compliance

📚 Governance & Compliance Note

AcmeGuard's evaluation methodology aligns with industry-standard AI governance frameworks including NIST AI RMF, EU AI Act principles, and enterprise guardrail best practices. For production deployments, consider additional compliance review based on your industry and jurisdiction.

Relevant Standards:

  • Data Protection: GDPR, GLBA (Gramm-Leach-Bliley Act), CCPA
  • Financial Services: PCI-DSS (Payment Card Industry Data Security Standard), SOC 2
  • AI Safety: NIST AI RMF, ISO/IEC 42001
  • Security: OWASP Top 10 for LLMs, OWASP API Security Top 10

⚠️ CRITICAL ALERT: This prompt contains exposed credentials and violates multiple financial compliance standards. DO NOT deploy to production without implementing all Critical Priority recommendations.


Acme Guard analysis complete. All evaluations successfully generated.

Next Steps: Would you like me to evaluate a revised version after you've implemented the security fixes?

Prompt Guard: Evaluation & Security

Prompt Guard is an intelligent AI agent that evaluates, strengthens, and secures prompts before deployment.

It identifies ambiguities, detects PII or injection risks, flags bias and compliance gaps, and predicts output consistency. Each evaluation provides scores, rationales, and three optimized versions (Streamlined, Hardened, High-Impact), with smart revision tools, sentiment checks, and automated redaction.

Prompt Guard empowers AI developers and organizations to deploy safe, high-performing, and compliant prompts—fast, measurable, and secure.

Built for the Liam Ottley × AAA Accelerator Hackathon.

📘 User Guide & Technical Documentation
▶️ Demo

You might also like

Flux, the Universal Flow Diagram Generator
HTML/CSS to Image - Create Image From HTML
WorkFlowDiagramGen
Mistral OCR

Flux, the Universal Flow Diagram Generator

agent Agent
Clone
0

Flux – Universal Flow Diagram Generator Executive Description (Relevance Marketplace) Flux is an AI-assisted workflow analysis and diagram design tool that helps organizations convert process descriptions, system logic, and operational flows into clear, structured workflow representations and supporting documentation. Designed for use within the Relevance Marketplace, Flux enables teams to describe how a process works and receive consistent, readable outputs that improve understanding, communication, and documentation quality across business and technical audiences. Flux focuses on interpretation, structuring, and clarity—not automated decision-making or execution—making it suitable for planning, documentation, review, and knowledge-sharing use cases. Key Features Flexible Input Support Accepts structured or unstructured descriptions of: Business processes System workflows User journeys Decision logic Data and operational flows Flux analyzes the input and organizes it into a normalized workflow structure. Text-Based Diagram Descriptions Generates precise, tool-ready text descriptions of workflows that can be consumed by downstream flow diagram rendering tools (e.g., text-to-image or diagram drawers). Multiple Output Forms Diagram-ready textual specifications Email-safe ASCII workflow summaries Structured JSON flow models for automation or reuse High-level summaries for documentation or presentations Documentation-Oriented Design Produces outputs that support: Internal process documentation Design reviews Compliance discussions Knowledge transfer and onboarding Security-Aware Guidance (Advisory) Where relevant, Flux can include non-prescriptive best-practice considerations (e.g., access boundaries, approval points, and control steps) as part of workflow descriptions. Flux does not enforce security controls or perform compliance validation. Why Organizations Use Flux 1. Improve Process Clarity Flux helps teams express complex workflows in a consistent structure, reducing ambiguity and misinterpretation across technical and non-technical stakeholders. 2. Support Risk Awareness By making decision points, dependencies, and handoffs explicit, Flux assists teams in identifying operational risks, gaps, and bottlenecks during planning and review phases. 3. Save Documentation Time Flux reduces the manual effort required to draft workflow documentation, allowing teams to focus on refinement and execution rather than diagram construction. 4. Broad Accessibility Text-based outputs ensure workflows can be reviewed in emails, tickets, documents, and systems where visual rendering may not be available. 5. Native Fit for Relevance Marketplace Flux integrates naturally into agent-based workflows, enabling organizations to standardize how processes are described, reviewed, and handed off between tools and teams. Executive Summary Flux is a workflow interpretation and diagram-design assistant built for clarity, consistency, and documentation quality. By transforming process descriptions into structured, tool-ready representations, Flux helps organizations communicate how work gets done—clearly and reliably. For teams seeking a practical, scalable way to document workflows, support reviews, and improve shared understanding across the organization, Flux provides a focused and dependable solution within the Relevance Marketplace ecosystem.

tbigs
$5.99
PandaDoc Agent
PandaDoc - API Call

PandaDoc Agent

agent Agent
Clone
0

PandaDoc Agent – Automate Document Creation, Sending, and Tracking Streamline your document workflows with the PandaDoc Agent. Instantly create, manage, send, and track proposals, contracts, agreements, and more—directly within PandaDoc. Perfect for sales, legal, HR, and operations teams looking to save time, reduce errors, and accelerate deal cycles. 🚀 Key Features & Value Propositions Automated Document Creation from Templates Seamless Sending & Status Tracking Advanced Recipient & Contact Management Comprehensive Document Organization Custom API Actions & Error Handling 💼 Who Is This Agent For? Sales Teams: Automate proposals, quotes, and contracts to close deals faster Legal Departments: Streamline contract generation, approvals, and e-signatures HR Teams: Manage offer letters, onboarding documents, and agreements Operations & Admin: Organize, send, and track any client-facing or internal documents Anyone using PandaDoc who wants to eliminate manual document handling and reduce errors 📊 ROI (Output from One Run): A fully prepared, sent, and trackable PandaDoc document with all recipient and template details handled automatically. Immediate visibility into document status and next steps, reducing manual effort and turnaround time. Ready to automate your PandaDoc workflows and save hours every week?

Relevance AI
Free
Trello Project Manager
Trello - Archive Card

Trello Project Manager

agent Agent
Clone
0

A fully-featured Trello automation agent that handles end-to-end project management workflows — from setting up boards, lists, and labels, to creating and tracking cards, managing checklists, assigning members, searching across your workspace, and archiving completed work. Powered by all 28 Trello integrations. Here's a Loom video showing setup workflow. https://www.loom.com/share/2f01811e09ab466bb718c437aac73323

Relevance AI
Free