Apex Aide apexaide

How to use Custom Lightning Types in Agentforce Service Agents? – 1

Salesforce Diaries· ·Intermediate ·Developer ·2 min read
Summary

Custom Lightning Types enable developers to tailor the UI for Agentforce Employee agents in Lightning Experience by overriding default agent action interfaces using the LightningTypeBundle metadata. This approach is specifically applicable when using Apex classes as inputs or outputs and involves JSON-based configuration for schema, input editor, and output renderer components. The setup requires using Enhanced Chat v2 and configuring messaging channels, embedded deployments, and routing for seamless integration. Salesforce teams can leverage this to build highly customized Agentforce service agent experiences that fit their unique business requirements.

Takeaways
  • Use LightningTypeBundle to customize UI for Agentforce agent actions with Apex class inputs/outputs.
  • Custom Lightning Types consist of Schema.json, Editor.json, and Renderer.json artifacts.
  • Enhanced Chat v2 is required to implement Custom Lightning Types in Agentforce Service Agent.
  • Setup includes configuring Messaging Channel, Embedded Deployment Setting V2, and Routing.
  • Test Service Agent via Embedded Deployment after publishing updated settings.

Custom Lightning types allow developers to customize the appearance and behavior of UI for Agentforce Employee agents in Lightning Experience. They use the LightningTypeBundle metadata component (available in API version 64.0+) to override the default user interface for agent actions. Key Characteristics: JSON-based data types that structure, validate, and display data Can only override the default UI for agent actions that use Apex classes as input or output Consist of three main artifacts: Schema.json : Defines data structure and validation rules Editor.json (optional): Defines the input UI component Renderer.json (optional): Defines the output UI component Are you looking forward to how to setup custom lightning type in Agentforce Service agent? Cool, Follow these steps: In order to use the Custom Lightning type in Service Agent, We need to use Enhanced Chat v2 . Enhanced Chat v2 is the redesigned customer-facing interface for Enhanced Web Chat in Salesforce.

AgentforceAgentforce and AIagentforcecustom agentembedded deployment settingenhanced chat v2lightning typemessaging setting