For the tutorial Add a Flow as an Agent Action, when I attempt to test the agent during the tutorial and the challenge, I receive the error "We couldn't compile the script. Try again later." I have tried connecting with a new developer account, however i'm still unable to complete this training.
#Trailhead Challenges
Hi @Gibran Waldron I checked your screenshots. The error "We couldn't compile the script. Try again later" appears to be related to Agentforce Builder compilation, rather than the Flow itself.
Please try these steps:
- Check Agent Script: Open Script View and look for any syntax or configuration issues.
- Verify Action Inputs: Make sure the Flow action inputs and outputs are mapped correctly, especially the required variables.
- Check Variables: Review any undefined variables or incorrect data types.
- Review Warnings: Your screenshots show three deprecated topic warnings. These may need updating, but they aren't necessarily causing the compilation failure.
- Save and Retry: Save the agent, refresh Agentforce Builder, and try compiling again.
- Test the Flow Separately: Run the Flow using Flow Debugger to confirm it works independently.
Official Salesforce Resources:
My Suggestion:
Since you've already tried a new Developer Org, I would first check the Agent Script and action mappings. If everything looks correct and the error continues, it may be a platform-side compilation issue.
Hope this helps! Venkat Yadav | SFDCINDIA