You can use Elements to automatically generate Agent topic instructions and test cases from a business process diagram.
Prerequisites
Elements Professional License
How Agent topic instruction generation works
In Elements application, you draw business process diagrams using Universal Process Notation. It is a modelling technique that relies on using just one building block:
The image above represents that building block that is compromised of following elements:
Verb-based activity (What? happens)
Flowlines
Input (When? does it happen)
Outcome (Why? does it happen)
Resources
Human (Who? is responsible or involved)
Systems (With what? is the activity executed)
When you capture your business process diagram, the input (outcome of the previous activity), and the activity performed by any 'Agent' resource, get turned into an instruction using following format:
IF input, THEN activity
For instance, in the example below, an instruction generated would be:
IF question asked that does not relate to company products or policies, or asks about cost or price, THEN inform customer that agent cannot answer those sorts of questions and user should ask a different question.
How to generate Agent topic instructions
When you have Elements professional license, and you are in edit mode of your diagram:
Open the right panel for the diagram
Select 'Changes' tab (2nd tab from the top)
Click 'Generate agent details'
From the dropdown, choose 'Generate instructions'
You will see a window with all your Agent instructions (instructions will be automatically put into your paste buffer)
Paste the copied instructions into a document to review, or directly into an Agent Builder.
How test case generation works
Unlike instruction generation, which is done algorithmically, test case generation requires access to ElementsGPT / AI license.
To generate test-cases for the Agent topic, Elements sends the diagram definition into AI and generates example user questions or statements to test different iterations through the diagram.
For instance, in the diagram we covered a scenario where a customer asks Agent a question that does not fall within its scope.
Elements would generate example questions a customer may ask that would fall under that category, like:
"How much does your service cost?"
"What is the price of your product?"
"Can you tell me the cost of your subscription?"
"I'm interested in your pricing, can you provide details?"
"What are your fees for the service?"
This allows you to test and ensure Agent will respect its instructions.
How to generate test cases
When you have Elements professional license, and you are in edit mode of your diagram:
Open the right panel for the diagram
Select 'Changes' tab (2nd tab from the top)
Click 'Generate agent details'
From the dropdown, choose 'Generate test cases'
You will see a window with all your Agent test cases (test cases will be automatically put into your paste buffer)
Paste the copied test cases into a spreadsheet and validate case by case if Agent is responding as expected in the process.
When Agent fails a given test case, review your diagram and refine the outcomes in your process. Then, re-generate instructions and test-cases (as the underlying diagram and its logic have changed). Repeat the process until the Agent works as expected.