When the preview button is greyed out in a Flex prompt template, it is often because the records related to the prompt have not been selected. Flex prompt templates pull data dynamically from Salesforce records, and if there are no records specified for the prompt, it can't be previewed since there is no content to generate based on the template.
Option B, not saving or activating the prompt, would not necessarily cause the preview button to be greyed out, but it could prevent proper functionality.
Option C, missing a merge field, would cause issues with the output but would not directly grey out the preview button.
Ensuring that the related records are correctly linked is crucial for testing and previewing how the prompt will function in real use cases.
Salesforce Agentforce Specialist References:
Refer to the documentation on troubleshooting Flex templates here: https://help.salesforce.com/s/articleView?id=sf.flex_prompt_builder_troubleshoot.htm
Contribute your Thoughts:
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit