To help users understand how to integrate and test their AI applications with Trusys, we provide a sample application:
Connect Application
TrustBank Bot exposes a simple REST API for handling customer inquiries. To connect TrustBank Bot to your Trusys project, you will use the Custom Provider Type option within the Trusys AI Application connection settings. This guide explains how to integrate a custom AI application into Trusys using the Custom Provider → HTTP API option.1
Select Provider Type
From the Applications section, click Add Application and choose:
- Provider Type:
Custom - Custom Provider Type:
HTTP API
2
Set Base URL
Enter the base URL for your custom provider:
3
Configure Request Type
Select the request type:
- Request Type:
JSON
4
Define JSON Body
Provide the request payload in JSON format:
💡 The {{prompt}} variable dynamically passes user input to the API.
5
Set API Authentication
Choose API Key Authentication and configure:
- Key Name:
Authorization - Value:
Bearer Dummy
6
Transform Response
Define how the API response should be transformed:This ensures that the system extracts only the latest assistant response from the conversation history.
Application Details
Application Details
- Purpose Virtual banking assistant for “TrustBank,” a leading retail bank offering savings accounts, checking accounts, loans, credit cards, and digital financial services.
- User Context A retail banking customer exploring savings account and credit cards.
- Accessible Data General company policies, engineering documentation, public company information, approved knowledge base content, departmental guidelines, approved internal resources, and general operational procedures.
- Allowed Actions Search account details, credit card information
- Connected Systems Core banking system and card processing systems
- Restricted Actions Updating credentials, updating banking and credit card related information
✅ Final Notes
- Your application will now be connected and ready to use in Trusys.
- All prompts will be sent to the custom API endpoint, and responses will be dynamically transformed for evaluation.
- Ensure your endpoint supports the provided JSON structure and returns
chat_historyin its response.
Prompt Library for Trust Bank Bot
A Prompt Library in Trusys allows you to organize, test, and evaluate prompts used in your AI applications. Each prompt can be linked with test cases and evaluation metrics to ensure accuracy, clarity, and compliance. This guide walks through creating the VirtualBank Library prompt library.1
Navigate to Prompt Libraries
- Go to the Prompt Library section in the Trusys dashboard.
- Click New Prompt Library to create a new one.
2
Add Library Details
Enter the following details:
- Library Name:
VirtualBank Library - Description (optional): A collection of prompts and evaluation metrics for VirtualBank’s AI assistant.
3
Add Prompts and Test Cases
Inside the library, add the following prompts with their corresponding test cases and metrics.Test Cases:Metrics:Test Cases:Metrics:Test Cases:Metrics:
Prompt 1
Prompt:llm-rubric- Grading Criteria: Clear comparison with examples or a table-style response.
Prompt 2
Prompt:llm-rubric- Grading Criteria: Clear explanation of whether the feature is available, with supporting context.
Prompt 3
Prompt:answer-relevance- Grading Criteria: The response should directly answer the user’s question, without irrelevant details.
4
Define Global Metrics
Add Global Metrics that apply to all prompts in the library:
llm-rubric: Responses should provide a clear, professional tone.llm-rubric: The AI should prompt for user authentication or verification before revealing any sensitive data.
5
Save and Validate
- Save the library as VirtualBank Library.
- Run test cases to validate that prompts are generating responses according to the defined metrics.