Skip to main content
New tool CRON Expression Builder — preview next run times before you schedule Apex. Open the builder →
A developer configuring and testing custom actions within the Salesforce Copilot interface environment.
Agentforce & AI

Hands on with Salesforce Copilot — setup, experience, and extending with custom actions

The short answer

Turn on Einstein Setup and Einstein Copilots, activate the copilot in Copilot Builder, then write prompts that name the record you mean. Custom Prompt Template actions extend what Copilot can do, and the configuration that matters most is input handling, user confirmation, and keeping sensitive data out.

Key takeaways Switch on Einstein Setup and Einstein Copilots in Setup, then activate the copilot in Copilot Builder so the sidebar icon shows up in the Salesforce UI. Name the record and give the context in your prompt, because Copilot does not pick up full context or record IDs from the browser URL. Write clear action instructions and configure the required input fields so Copilot recognizes when to run a custom action. Turn on user confirmation for any custom action that changes record data, so nothing gets written without someone agreeing to it. Test custom actions in Copilot Builder before you deploy them, and mask or leave out sensitive fields and PII in the prompt templates.

A practical walkthrough of enabling Salesforce Copilot (beta), using it in the UI, tips for prompting, and a simple example of extending Copilot with a custom Prompt Template action.

Introduction

Salesforce Copilot entered beta in early 2024 and brings generative AI directly into the Salesforce UI. Below is what enabling it looks like, how it behaves in context, what to do about prompts, and the small custom action I built to see how far it goes: a haiku generator.

Quick setup

To turn Copilot on:

  • Go to Setup > Einstein Generative AI > Einstein Setup and toggle it on.
  • Then go to Setup > Einstein Generative AI > Einstein Copilot Studio (Beta) > Einstein Copilots and toggle it on.
  • After enabling, open the Copilot Builder and click Activate to show Copilot in the UI. You can test inside Builder before activating.

Accessing Copilot in the UI

Once activated you'll see a new Einstein icon in the top-right of the Salesforce UI. Clicking it opens Copilot in a sidebar that shifts the page to the left, a neat, unobtrusive pattern. One thing to know: Copilot does not automatically inherit all context from your current browser URL, and many Copilot actions require explicit inputs such as record name rather than Id.

Tips for making requests

Generative AI responses closely follow the prompt quality. Keep prompts clear and provide the right context. For example:

  • Instead of: "Summarize this opportunity", use: "Summarize opportunity Acme Q2 Renewal, focusing on next steps and risks."
  • If an action expects the record name, include it. If you need to use the Id, create or use a different action that accepts Ids.

Extending Copilot with a custom action

Copilot actions are where you customize behavior. The Prompt Template action is a useful pattern. In my experiment I added a playful example: a haiku writer for accounts. The configuration points that mattered:

  • Prompt Template: a short instruction template that uses inputs such as {!$Input:Account.Name} and {!$Input:Account.Industry} and includes safety directions, for example no PII.
  • Action Instructions: describe when this action should be used so Copilot can choose it appropriately.
  • Require user confirmation: enable this if the action will change data.
  • Input configuration: define the Account input fields and mark required fields. Avoid including sensitive fields unless masked.
  • Prompt Response Instructions: choose the response type and enable "Show in conversation" so the user sees the result.

Example prompt used (Prompt Template action):
"You are a world-renowned haiku writer, who has a side gig as a CRM administrator.\nWrite a haiku based for the account {!$Input:Account.Name} which operates in the {!$Input:Account.Industry} industry.\nThe haiku should not include any PII."

Best practices and gotchas

  • Design actions to accept the specific inputs Copilot can populate from context (name vs Id).
  • Be explicit in action instructions so the right action is selected.
  • Mask or avoid PII and sensitive fields; use the built-in data handling controls.
  • Test thoroughly in Builder before activating in production orgs. That matters even more while Copilot is in beta.

Where to learn more

Copilot puts generative AI directly into user workflows, which helps admins and developers automate content generation, summaries, and guided actions. Actions designed properly can improve productivity, keep data safe, and deliver a consistent user experience.

For Salesforce admins, Copilot speeds up repetitive tasks and helps create consistent content. For developers, Copilot actions open integration points for custom logic and prompt templates. Business users get quick summaries and actionable insights without leaving the record.

#Salesforce #AI #EinsteinCopilot #GenerativeAI

For more, please follow our page!

Frequently asked questions

How do you enable Salesforce Copilot?

Toggle on Einstein Setup under Setup > Einstein Generative AI, toggle on Einstein Copilots under Einstein Copilot Studio (Beta), then open Copilot Builder and click Activate to make it available in the UI.

Does Salesforce Copilot automatically detect record context from the browser URL?

No. Copilot does not inherit all of the context in your current browser URL, and many actions want an explicit input such as the record name instead of a record Id.

How do you configure a custom Prompt Template action in Copilot?

Build an instruction template with input merge fields, write action instructions that say when the action should be used, set up the input parameters, and switch on the prompt response settings that show the output in the conversation.

Newsletter

One email every Tuesday

New guides, tool updates, and the release-note changes that break things.

No spam. Unsubscribe in one click.

Comments

Loading comments...

Leave a Comment