Learn the numerical limits of prompt templates.
Required Editions
| Available in: Lightning Experience |
| Available in: Enterprise, Performance, and Unlimited Editions with the Einstein for Platform, or Einstein or Agentforce for Sales or Service add-on, or Agentforce Foundations |
Numerical Limits
Prompt templates have these numerical limits.
| Limit Description | Limit |
|---|---|
| Maximum template size | 128,000 characters |
| Maximum number of template versions | 50 |
| Maximum number of merge fields | 50 |
| Maximum number of flow merge fields | 5 |
| Maximum number of Apex merge fields | 5 |
| Maximum number of related list merge fields | 5 |
| Maximum number of inputs in a Flex template | 5 |
File Upload Limits
Most AI models support at least one file type for prompt templates.
These file limits apply across all AI models.
- Maximum quantity: 10 files per request
- Total file size: 15 MB per request
The 15 MB total applies to the files sent to the AI model. Files that convert to PDF count toward this total after conversion.
Important Some AI models have smaller limits than the ones listed here. Open
Details for the selected AI model for per-type limits.
Unsupported files, files that fail conversion, and files that exceed a limit are excluded from the request. The Resolution panel lists excluded files after processing.