Hello Team,
I'm planning to use the lightning file upload component on the agent builder using custom lightning types. There is no possibility of using the apex class for this scenario. Without the apex class, we can't use the schema.json for this component. How to deploy the LWC component without the schema.json file.
#Agentforce
Hello Arunkumaran,
you can’t skip schema.json if you want to expose an LWC as a custom Lightning type in Agent Builder. The schema file is not tied to Apex at all—it’s what tells Agent Builder how to render, configure, and validate the component. Apex is optional, but schema.json is mandatory for Lightning types.
If you don’t want to use Apex, the correct approach is:
- Build the LWC to be fully client-side (handle file upload via lightning-file-upload, UI API, or standard events).
- Define all inputs/outputs in the schema.json instead of an Apex class.
- Deploy the LWC + schema.json together; the component won’t appear in Agent Builder without it.
If your concern is deployment friction, there’s no supported workaround today—Salesforce doesn’t provide a way to register custom Lightning types dynamically or without schema metadata. Hope this helps!