AI Agent Keyframe Generation for After Effects Expressions
How AI agents turn prompts into ExtendScript keyframes and reusable rigs.

AI agent keyframe generation in After Effects is a code-driven workflow that still requires motion direction. Agents turn natural language into ExtendScript, which uses keyframes, expressions, or both to change a live composition. Knowing how that pipeline works lets creators describe the motion, check the result, and save rigs they can use again instead of hoping a prompt happens to produce the animation they want.
What it means for an AI agent to "write keyframes" in After Effects
An agent that “writes keyframes” generates code that After Effects executes to place time-stamped values on properties. It does not directly manipulate the timeline. The scripting engine performs the changes, while the agent determines which properties to address and what instructions to generate. That distinction separates the creator’s intent from the mechanism that implements it.
Keyframes and expressions are different ways to produce motion. Discrete keyframes store property values at particular times, and After Effects interpolates between them. Expressions are scripting-language formulas that compute a property’s value at every frame without requiring stored keyframe data. Agents can use both together, with keyframes setting the changes and expressions linking properties or making behavior repeat.
The pipeline has three stages: a natural language prompt, agent reasoning and code generation, and ExtendScript execution inside After Effects. The prompt must describe the intended motion, the generated code must address the right properties, and the scripting engine must be able to execute it.
How the prompt-to-ExtendScript pipeline actually executes
Prompt intake works best when the agent also reads the composition. The layers, effects, properties, and expressions already in the composition give the generated script real objects to refer to, so it has no need to invent names. AE GPT describes reading “selected layers, masks, effects, comps, and expressions” before generation. Atom describes understanding “scripting APIs, project structure, timelines, layers, and host quirks deeply” before writing code. Context anchors the request in the actual project.
Planning turns that context into a proposed build. A structured plan identifies which layers to create, which properties to animate, and which expressions to attach before execution begins. AE GPT exposes this stage through /plan, allowing the designer to review the approach. Atom also describes builds with several steps that plan layers, keyframes, and expressions before writing them. This gives the designer an opportunity to catch a wrong interpretation before it becomes a composition change.
Execution is where the code meets the host application. The generated ExtendScript runs inside After Effects, and an agent with an error-recovery loop reads reported failures and revises its code. Atom states that it “reads any errors After Effects reports, and fixes them until they run.” AE GPT demonstrates a related diagnosis in which an Opacity expression refers to “Glow Amount” while the actual effect is named “Glow Strength,” then corrects the expression string. That read-and-fix loop distinguishes an executing agent from a tool that merely supplies a script.
Successful execution is not the same as successful motion direction. A corrected effect reference establishes that the expression can address its intended control.
Where expressions fit into agent-generated animation rigs
Expression-driven rigs let an agent coordinate motion without filling every property with dense keyframe arrays. Shared controls can set timing, easing, and values across several layers, so a scene can be changed through fewer inputs. The rig remains open to further direction. Atom describes this approach as “expression-driven motion,” building “layered rigs while Atom writes the expression logic.”
Common patterns serve distinct animation needs. loopOut("cycle") repeats motion, wiggle introduces organic randomness, and valueAtTime() creates time-offset relationships. AE GPT illustrates a generated composition with loopOut("cycle") applied to a Background layer. These expressions are not interchangeable shortcuts, because repetition, randomness, and delayed relationships describe different kinds of behavior.
Null controllers make those relationships accessible to a designer. An agent can create a null, add sliders, checkboxes, or angle controls, and connect multiple layers’ properties to those controls. The aedev-tools/adobe-agent-skills repository gives the example prompt “Add expression controls to this null so I can drive all the text colors from one place.”
That convenience introduces an inspection cost, however. Expressions make rigs flexible, but their dependencies are harder to read at a glance than visible keyframe positions. A designer who does not know which expression controls a property may struggle to override the agent’s choices manually. The tradeoff is greater shared control in exchange for more attention to how the rig is wired.
What the agent needs from a prompt to place keyframes precisely
To direct how the rig is wired, the creator needs to describe how things should move as well as how they should look. The generated script must make choices about timing, easing character, and the path of the motion. “Make it smooth” leaves those decisions largely unspecified. AE GPT gives a more actionable model prompt, “add a slow camera dolly toward the frog over four seconds, ease-out, then hold.”
Timing also includes when an action begins. A duration describes how long motion takes, while a start offset locates it within the sequence. Easing adds another layer of precision. Words such as “snappy,” “bouncy,” “linear,” and “elastic” indicate behavior that can map to interpolation choices or expression parameters, whereas “nice” does not. The skills repository names smooth, snappy, and bounce as easing categories, giving the agent more useful direction than an unspecified request for polish.
Multiple layers require relationships as well as individual motion. The same request applied to every layer can produce simultaneous animation when the intended result is a sequence. The repository’s phrase “staggered 0.12s apart” supplies the missing interval. That relational timing supports a loop-and-offset expression. The distinction is small in the prompt but fundamental to the resulting rhythm.
AE GPT accepts MP4, MOV, WebM, or M4V references up to 50 MB, allowing a clip to communicate movement, timing, and visual style. Support depends on the selected model and connection. Atom accepts image, PDF, audio, and document attachments, but does not currently support video reference input.
Before execution, plan review provides a checkpoint for intent. AE GPT makes this explicit through /plan, while Atom exposes a reviewable multi-step plan. A plan can reveal that the agent understood the requested layers but misunderstood their sequence, when correcting the instruction is still simpler than rebuilding the result.
How the main After Effects AI agents handle keyframe and expression generation differently
AE GPT combines prompt optimization, planning, live execution, and visual feedback in its agent workflow. It generates a plan, writes ExtendScript, and creates layers and expressions inside the composition. Its /preview command captures a composition frame so the model can assess the visual result. Version v1.3 added parallel layer generation, allowing all layers in a production plan to generate concurrently, together with clearer progress updates. Its reference workflow also supports images and PDFs through API connections.
AE GPT is compatible with After Effects 2021–2026 and Premiere Pro 2021–2026, with Premiere Pro support limited to a chat-mode bonus for questions and guidance. For a workflow spanning both applications, that boundary is part of the tool’s fit.
Atom emphasizes building, recovering from errors, and preserving project state. It writes expressions and ExtendScript, reads After Effects errors, and iterates until the code runs. Its checkpoint system saves project state as work goes on, while reusable skills keep techniques for use in later sessions. Its scope extends into Premiere Pro execution, including rough cuts, captions, silence removal, reframing, stock footage, and batch export. Atom passes billing through to the user’s own AI provider.
MATE for AE, from OMATA Labs, has Agent Mode for tasks with several steps and Script Mode to write a script or expression right away. Base models come at no extra cost, but higher-tier models need the user’s own API key. With its Model Context Protocol support, content from outside services such as Notion can go into After Effects text layers without copy-pasting. This makes external content part of its workflow. Its script library also supports saving, starring, reordering, and exporting generated code, which teammates can run with one click and no AI call.
Adobe’s After Effects AI Assistant (Beta) has a narrower role. Adobe positions it around project organization and expression writing or fixing, without autonomous planning and execution of multi-layer builds. It requires no additional installation or external API key. Atom notes that designers can use the native assistant and Atom side by side, so the choice need not exclude either tool.
How Voyager fits a multi-model agent workflow that extends beyond After Effects
Composition-level automation is only one part of a broader creative workflow. Even when a tool supports more than one application, model selection and editable handoff remain separate concerns from generating an expression. Voyager operates at this broader level as a desktop agent that generates with multiple frontier AI models and executes inside professional creative applications, including After Effects. Its role is cross-app orchestration.
Different models have different strengths in code generation and motion reasoning, so Voyager’s open selection lets creators route a task to the model that performs best for it. It offers published zero-markup pricing. Creators who already hold model subscriptions can also run its agent layer, including their own Codex instance, on top of those subscriptions.
Editable output gives that breadth a practical purpose. Voyager supports native-format outputs including PSD, SVG, Lottie, OTIO, FCPXML, MIDI, and stems across its design, video, and audio workflows. These provide handoff paths into a video timeline or a DAW rather than making a rendered result the only endpoint. The distinction is between generating an isolated asset and continuing work in the formats used by the next application. For an After Effects practitioner, that places Voyager above the composition-specific tools as a model-selection and project-handoff layer.
Getting repeatable results: skills, checkpoints, and iterative refinement
A successful generation becomes reusable only when the workflow preserves what worked. Atom lets designers save techniques from a session as skills and invoke them with a slash command on future projects. Brand-consistent animation behavior can then become a repeatable call. MATE preserves generated scripts and expressions in its shared library, allowing teammates to run them without another AI request. Adobe’s assistant documentation also includes “Create a custom skill,” extending reusable definitions to the native tool.
A saved skill retains a technique, while a checkpoint retains a project state to return to if a later change is unsuitable. Atom automatically saves checkpoints and restores the project to the selected point in the chat timeline. AE GPT’s /preview supplies visual feedback by capturing a composition frame for the model to review. That feedback informs the next request, while a restore point makes experimentation reversible.
The repeatable pattern is to prompt, review the plan, execute, preview a frame, refine the prompt, and execute again. Each pass tightens the motion rather than treating every request as an unrelated build. Skills and saved scripts then preserve the results worth keeping.
Staggered text reveals, expression-driven data visualizations, and looping motion elements can become skills run with one command, saving the work of building them by hand each time. A small team can base more of its commitments on reusable, adjustable animation systems. The structural change lies in shortening the path from brief to editable deliverable while retaining deliberate motion direction and a recoverable project.
Sources
- AE GPT - aescripts.com
Supplied details on AE GPT's context reading, /plan and /preview commands, video reference limits, v1.3 parallel generation, and version compatibility.
- MATE for AE - aescripts.com
Covered MATE for AE's Agent and Script modes, model and API key options, MCP support, and shareable script library.
- After Effects AI Assistant overview
Described Adobe's native AI Assistant (Beta), including its focus on project organization and expression help, its lack of extra installation, and custom skills.


