APE is a three-part prompt framework: Action defines what the AI should do, Purpose explains why — the underlying goal — and Expectation specifies the desired output. The Purpose field is what distinguishes APE from RTF: giving the AI your reason produces outputs better aligned with your actual intent.
APE puts Purpose at the center of the prompt. Where RTF and RACE lead with Role, APE leads with what needs to happen and why. This matters because AI models use stated purpose to make better judgment calls when the task is ambiguous or when multiple valid approaches exist.
Purpose-first framework — aligns output with your underlying goal.
Use APE when the purpose behind a task is not obvious from the action itself, or when you want the AI to make judgment calls aligned with your goal rather than executing literally.
APE vs RTF: RTF skips Purpose entirely; APE makes it the central field. APE vs RACE: RACE adds Role and Context which improve outputs further. APE is best when purpose alone is the key alignment mechanism.
Save your first APE prompt in the structured editor and get a permanent REST API endpoint. Personal plan is free forever, no credit card required.
Start freeAPE stands for Action, Purpose, and Expectation. The Purpose field — explaining why the task matters — is what distinguishes APE from simpler three-part frameworks like RTF.
RTF uses Role, Task, Format. APE uses Action, Purpose, Expectation. The critical difference is Purpose: APE asks you to explain why the task matters, which helps the AI make better judgment calls on ambiguous tasks.