I have a Prompt Template that is invoked from a Record-Triggered Flow.
The user who triggers the record-triggered Flow does not have:
- Prompt Template User permission
I would like to understand the expected Salesforce behavior:
- Is the Prompt Template User permission required when a Prompt Template is invoked through a Record-Triggered Flow?
- If the triggering user does not have this permission, will the Prompt Template still execute?
- If the Prompt Template executes successfully, will it consume Flex Credits?
- Which user's permissions are evaluated when the Flow invokes the Prompt Template—the Flow-running user or the automation/system context?
- What is the purpose of the Prompt Template User permission if Prompt Templates can be invoked through Flow?
Looking for clarification based on the current Salesforce behavior/documentation for Record-Triggered Flow → Prompt Template
.
#Agentforce #Prompt Builder #Mvp-agentforce-prompt-builder-team #AgentforceTesting
3 answers
Thanks for the clarification. I have one more question out of curiosity.
What happens when a Flow invokes a Prompt Template in the following scenarios?
- Flow runs in System Context → User does not have the Prompt Template User permission.
- Flow does not run in System Context (User Context) → User does not have the Prompt Template User permission.
In both cases, will the Prompt Template action fail, or does the Flow execution context change how the Prompt Template User permission is evaluated?
Thanks!