An agent's answers depend on the data it reads. A test written for a customer's data today may fail next month — not because the agent got worse, but because the customer paid a bill or closed an account. Or it may pass for the wrong reason. Snapshots solve this by freezing the data a test case runs on. Production import brings real users' conversations, with their data, into your test suites.
When a test case is saved (with Upload Artifacts in the Eval Editor, or Save as test case in Preview), AI Fusion stores two kinds of artifacts under the case's session:
The business snapshot is a point-in-time copy of the entity's micro-database — the unified data the LU assembled from the source systems — not of the source systems themselves.
Save with Snap can only be chosen when a case is first saved. Cases generated by Studio AI are always saved with a snapshot.
Snapshots are taken where the agent loads its entity. For an entity-scoped agent, that is the step_start hook flow, which brings the customer's instance into scope (see Hooks and Inputs).
Load the instance in that flow with the GetWithSnap actor instead of a plain GET. GetWithSnap works like a GET and adds the snapshot behavior:
Set the actor's snapStepsMode input explicitly to none (Studio still captures the first turn). Leaving it empty makes the hook fail on the first turn of every session.
GetInstance:
parent: GetWithSnap
in:
luType:
const: Customer
syncMode:
const: 'ON'
snapStepsMode:
const: none
iid:
link: RootIid/value
An agent that loads its data with a plain GET still runs in evaluations, but on live data — its cases are not repeatable.
Both are generic interfaces of the AI Fusion project, and the retention periods are AI Fusion globals. By default evaluation_storage is a local folder on the Fabric server. If suites are run in more than one environment, point evaluation_storage to storage that all of them can read.
Snapshots referenced by a suite are never removed by the cleanup, so deleting a case or suite is what eventually frees its snapshots.
The conversations real users have with your deployed agent show the questions, phrasings and edge cases you did not think of. Turn the problematic ones into test cases so the same problem cannot come back unnoticed.
The case now fails until the agent is fixed — and protects the fix afterwards.
The same ZIP format is used inside Studio. In Preview, click Share (select Save with Snap to include the business data) to download a conversation, and Import to load one. Use it to hand a scenario to a colleague in another environment, or to reproduce a reported issue in development on exactly the same data.
Next article: Evaluation Best Practices
An agent's answers depend on the data it reads. A test written for a customer's data today may fail next month — not because the agent got worse, but because the customer paid a bill or closed an account. Or it may pass for the wrong reason. Snapshots solve this by freezing the data a test case runs on. Production import brings real users' conversations, with their data, into your test suites.
When a test case is saved (with Upload Artifacts in the Eval Editor, or Save as test case in Preview), AI Fusion stores two kinds of artifacts under the case's session:
The business snapshot is a point-in-time copy of the entity's micro-database — the unified data the LU assembled from the source systems — not of the source systems themselves.
Save with Snap can only be chosen when a case is first saved. Cases generated by Studio AI are always saved with a snapshot.
Snapshots are taken where the agent loads its entity. For an entity-scoped agent, that is the step_start hook flow, which brings the customer's instance into scope (see Hooks and Inputs).
Load the instance in that flow with the GetWithSnap actor instead of a plain GET. GetWithSnap works like a GET and adds the snapshot behavior:
Set the actor's snapStepsMode input explicitly to none (Studio still captures the first turn). Leaving it empty makes the hook fail on the first turn of every session.
GetInstance:
parent: GetWithSnap
in:
luType:
const: Customer
syncMode:
const: 'ON'
snapStepsMode:
const: none
iid:
link: RootIid/value
An agent that loads its data with a plain GET still runs in evaluations, but on live data — its cases are not repeatable.
Both are generic interfaces of the AI Fusion project, and the retention periods are AI Fusion globals. By default evaluation_storage is a local folder on the Fabric server. If suites are run in more than one environment, point evaluation_storage to storage that all of them can read.
Snapshots referenced by a suite are never removed by the cleanup, so deleting a case or suite is what eventually frees its snapshots.
The conversations real users have with your deployed agent show the questions, phrasings and edge cases you did not think of. Turn the problematic ones into test cases so the same problem cannot come back unnoticed.
The case now fails until the agent is fixed — and protects the fix afterwards.
The same ZIP format is used inside Studio. In Preview, click Share (select Save with Snap to include the business data) to download a conversation, and Import to load one. Use it to hand a scenario to a colleague in another environment, or to reproduce a reported issue in development on exactly the same data.
Next article: Evaluation Best Practices