# What Is State-Action-State Trajectory Data?

> State-action-state trajectory data records what the environment looked like before an action, what the user did, and what changed after.

Canonical URL: https://insight.marfi.app/answers/what-is-state-action-trajectory-data

State-action-state trajectory data is a structured demonstration format for AI training and evaluation. It records the environment state before an action, the human action, and the resulting state after the action.

## Audience

AI teams, data engineers, and automation teams evaluating agent training data.

## Search Intent

Define state-action-state trajectory data for AI agent workflows.

## A trajectory turns a work step into a training example.

Instead of just recording that someone clicked, a trajectory ties that action to the surrounding state so a model can learn what context made the action correct.

## MARFI assembles trajectories from consented sessions.

Trajectory workspaces can align actions, app context, timing, system state, and optional keyframes into JSONL examples.

## These examples help train and evaluate task agents.

Agent teams can use state-action-state data to teach models how expert users navigate real software workflows.

## FAQ

### Why include after state?

After state shows what changed because of the action, which helps models evaluate whether a step had the intended effect.

### Is trajectory data always visual?

No. Visual keyframes are included only when screenshot capture is available and consented.

## Related Pages

- [State-Action-State Trajectory Data](https://insight.marfi.app/state-action-trajectory-data): State-action-state trajectory data from MARFI connects before state, human action, and after state for AI agent training workflows.
- [AI Training Data From Real Workflows](https://insight.marfi.app/ai-training-data): MARFI Trajectory converts consented workplace sessions into state-action-state training data for AI agents and workflow models.
- [AI Teams](https://insight.marfi.app/solutions/ai-teams): MARFI Trajectory helps AI teams collect consented workflow demonstrations and export state-action-state JSONL for agent training.
- [Does MARFI Insight Capture Screenshots?](https://insight.marfi.app/answers/does-insight-capture-screenshots): No. MARFI Insight is telemetry-only. Screenshot capture and visual replay are Trajectory features and require explicit user consent.
