Skip to main content

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.  

 

 

Error in Add a Flow as an Agent Action

 

image.png

 

 

 

image.png

 

 

 

 

 

#Trailhead Challenges

2 answers
  1. Oct 17, 4:34 AM

    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:

    1. Check Agent Script: Open Script View and look for any syntax or configuration issues.
    2. Verify Action Inputs: Make sure the Flow action inputs and outputs are mapped correctly, especially the required variables.
    3. Check Variables: Review any undefined variables or incorrect data types.
    4. Review Warnings: Your screenshots show three deprecated topic warnings. These may need updating, but they aren't necessarily causing the compilation failure.
    5. Save and Retry: Save the agent, refresh Agentforce Builder, and try compiling again.
    6. 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

0/9000