+91 9216549878
we are committed to delivering innovative solutions that drive growth and add value to our clients. With a team of experienced professionals and a passion for excellence.

Follow us

Blog Details

Custom Apex Actions in Einstein Copilot

Custom Apex Action on Einstein Copilot in Salesforce: Step-by-Step Guide

Images
Authored by
Inno Valley Works
Date Released
November 18, 2026
Comments
No Comments

Do you know about Custom Apex Action on Einstein Copilot in Salesforce?

Standard Actions :

Salesforce has some built-in events, known as standard actions. The advantage of having standard actions by default is that your copilot will be ready to assist users with numerous common Salesforce operations as soon as you activate Einstein Copilot. In addition to these, you can also extend functionality by implementing a Custom Apex Action on Einstein Copilot in Salesforce. Below are the standard actions.

  • Summarize records
  • Draft or revise Sales Emails
  • Identify Object by Name
  • Query records/ Query record with Aggregate Data
  • Provide information from the Knowledge Base

Custom Actions :

You may also develop custom actions to offer your copilot extra abilities, allowing it to assist with duties unique to your organization. Access to a copilot custom action is determined by how it is constructed. The Custom actions that are supported are

  • Apex
  • Flow
  • Prompt Template

We can able to build the custom logic on Apex and Flows based on the business requirement.

Custom Apex Action on Einstein Copilot

Let’s consider a business scenario to send out the welcome email that needs to be sent manually by the admin to the employee to successfully get login access on Salesforce.

Step 1: Write an Invocable apex method which will send the Wishes Email to the Contact record which matches with input from the user.

custom-apex-action-on-einstein-copilot-in-salesfor-01 Custom Apex Action on Einstein Copilot in Salesforce: Step-by-Step Guide

Step 2: Setup → Einstein → Einstein Copilot Actions → New Copilot Actions

custom-apex-action-on-einstein-copilot-in-salesfor-02 Custom Apex Action on Einstein Copilot in Salesforce: Step-by-Step Guide

Step 3: Select Apex Action type with Invocable method name and provide the Copilot Action Label.

custom-apex-action-on-einstein-copilot-in-salesfor-03 Custom Apex Action on Einstein Copilot in Salesforce: Step-by-Step Guide

Step 4:

  • You should effectively provide the Copilot Action Instructions as the AI will identify the Action based on the instruction provided by the User.
  • As the Invocable method has a parameter to be passed, the custom action creation module will automatically detect it and show it here.
  • Select the Checkboxes per the need to relate with input and output variables.
custom-apex-action-on-einstein-copilot-in-salesfor-04 Custom Apex Action on Einstein Copilot in Salesforce: Step-by-Step Guide

Send Wishes Email Custom Copilot Action

custom-apex-action-on-einstein-copilot-in-salesfor-05 Custom Apex Action on Einstein Copilot in Salesforce: Step-by-Step Guide
custom-apex-action-on-einstein-copilot-in-salesfor-06 Custom Apex Action on Einstein Copilot in Salesforce: Step-by-Step Guide

Demo Images:

The AI Assistant will automatically identify the name of the contact if we have provided the instruction properly otherwise, it will ask for input.

custom-apex-action-on-einstein-copilot-in-salesfor-07 Custom Apex Action on Einstein Copilot in Salesforce: Step-by-Step Guide
custom-apex-action-on-einstein-copilot-in-salesfor-08 Custom Apex Action on Einstein Copilot in Salesforce: Step-by-Step Guide

Note:

  • Custom Einstein Copilot Actions need to be added to Copilot Builder to make it available for users.
  • Einstein Copilot should be Inactive to add the custom Copilot actions

Need help putting this into practice in your org? Our Salesforce Agentforce development services team can help you plan, build and support it.

Share:

Inno Valley Works delivers expert Salesforce consulting, implementation, and managed services to help businesses optimize processes, improve customer experiences, and drive digital growth.

Inno Valley Works LLC

1007 North Orange Street, 4th Floor, Suite 1382, Wilmington, DE 19801, USA.

Inno Valley Works (P) Ltd

No.25, AGT Business Park, Avinashi Road, Coimbatore 641014, India.

Inno Valley Works (P) Ltd

RMZ Millenia, Kodandarama Nagar, Perungudi, Chennai 600096, India.

INNO VALLEY WORKS L.L.C-FZ

Meydan Grandstand, 6th floor, Meydan Road, Nad Al Sheba, Dubai, U.A.E.