Show answerHide answer
Correct answer: B The number of tokens generated by the dynamic nature of the prompt template will vary by record.
Explanation
Explanation:Token limit errors occur when the input (including grounding data) exceeds the LLM's maximum token capacity. The random nature of these errors is due to:
Variable Record Data
The prompt template likely uses record data grounding (e.g., {{Record.Field}}).
If some records have more populated fields or longer text values, they consume more tokens, pushing the prompt over the limit.
Why Not the Other Options?
A. Switching to Flex Template:
While Flex templates offer more flexibility, they don’t inherently solve token limits. The issue is data-dependent, not template-type-dependent.
C. LLM Token Demand Variability:
Salesforce’s LLM allocates a fixed token limit per prompt (e.g., ~3000 tokens for GPT-based models). It doesn’t fluctuate with user demand.