Understanding the Issue
When trying to use custom lightning types for an Employee agent in an agent script, the user encountered a system error with the message “unfortunately a system error occurred please try again.” This suggests that there might be a compatibility issue or a limitation in the current implementation of Agentforce agent script.
The root cause of this issue seems to be the potential lack of support for custom lightning types in Agentforce agent script, despite the script being generally available as of February 2026.
Current Status and Limitations
Although Agentforce agent script has moved out of beta and is now generally available, the support for custom lightning types within this context may still be limited or not fully implemented. It is essential to check the latest documentation and release notes for any updates on this feature.
Potential Workarounds and Next Steps
Given the current limitations, teams looking to leverage custom lightning types in their agent scripts may need to explore alternative solutions or workarounds. This could involve using standard lightning components or waiting for future updates that may include support for custom types.
example.js
// Example of using standard lightning components in Agentforce agent script
// This may serve as a temporary workaround until custom types are supported
const standardComponent = {'type': 'Standard_Lightning_Component'};
// Use the standard component in your agent script
Conclusion and Checklist
To summarize, while Agentforce agent script is now generally available, using custom lightning types within it may still face limitations. Here is a checklist for teams to consider:
Next Steps for Using Custom Lightning Types in Agentforce
- Check the latest Agentforce documentation for updates on custom lightning type support.
- Explore alternative solutions using standard lightning components.
- Monitor release notes for future updates that may include support for custom types.
- Consider reaching out to Salesforce support for more information on the current limitations.
- Plan for potential workarounds or adjustments in your agent script implementation.
Frequently Asked Questions
What is the current status of Agentforce agent script?
As of February 2026, Agentforce agent script is generally available.
Can I use custom lightning types in my agent script?
The support for custom lightning types in Agentforce agent script may be limited or not fully implemented as of the latest update.
What are the potential workarounds for using custom lightning types?
Teams can explore using standard lightning components or wait for future updates that may include support for custom types.
Where can I find more information on Agentforce and its features?
You can find more information in the official Salesforce documentation and release notes for Agentforce.
Need help shipping this in production?
Genetrix builds and untangles Salesforce Marketing Cloud and Agentforce setups for teams that want it done right the first time. If anything in this post sounds familiar, talk to us before it ships.