AI / Einstein

My Experiment with ChatGPT for Salesforce Related Questions

ChatGPT is an is a AI powered chatbot that will provide you answers to any questions that you ask. It was released as a prototype in late November ‘2022 and has become a rave in the technology world. It stands for “Chat Generative Pre-trained Transformer”.

Though you can ask any question under the sun, I experimented with asking questions related to Salesforce and the responses were mind boggling. I think this takes the technology in general and AI in particular to another level.

Here is an example. I asked chatGPT “Give me salesforce apex code to update all contact addresses with account address for an account”

ChatGPT for Salesforce Related Questions

And here is the code that chatGPT generated for me. Unbelievable!

// Retrieve the Account record
Account account = [SELECT Id, BillingStreet, BillingCity, BillingState, BillingPostalCode, BillingCountry FROM Account WHERE Id = :accountId];

// Retrieve all the Contacts for the Account
List<Contact> contacts = [SELECT Id, MailingStreet, MailingCity, MailingState, MailingPostalCode, MailingCountry FROM Contact WHERE AccountId = :accountId];

// Update the address fields of each Contact with the Account's address
for (Contact contact : contacts) {
  contact.MailingStreet = account.BillingStreet;
  contact.MailingCity = account.BillingCity;
  contact.MailingState = account.BillingState;
  contact.MailingPostalCode = account.BillingPostalCode;
  contact.MailingCountry = account.BillingCountry;
}

// Save the updated Contacts
update contacts;

Want to have some fun? Try these questions and see what ChatGPT comes up with. 😊

  1. How to learn Salesforce?
  2. How to create custom object in Salesforce?
  3. How do I secure my Salesforce Org?
  4. What are the career options in Salesforce?
  5. How much can I earn as Salesforce Architect?
  6. What is the difference between Aura Component and LWC in Salesforce?
  7. Which one is a better automation tool in Salesforce – Workflow Rule, Process Builder or Salesforce Flow?
  8. What are best practices for Salesforce Apex?
  9. What are some Salesforce Admin Interview Questions?
  10. How does Salesforce compare with AWS, Google Cloud and Microsoft?
  11. Please give me the code for a simple data entry form in Salesforce LWC?
  12. How do I update all contacts address when account address changes in Salesforce?
  13. How do I create a Flow in Salesforce to delete all cases for an Account?

Here is the URL for you to try this out – https://chat.openai.com/

#SalesforceWinter23 – Einstein Prediction Builder Learning Map

#1MinuteTip #SalesforceWinter23 Use the power of AI to predict what happens next in your business. The Einstein Prediction Builder learning map provides curated resources to help you explore different aspects of building a prediction from exploration to troubleshooting.

Einstein Prediction Builder Learning Map

References & Useful URLs

#SalesforceSummer22 – Emails with Objections Flagged by Einstein

#1MinuteTip #SalesforceSummer22 Einstein Email Insights can now flag objects made in the email. Help sales reps stay on top of critical emails that mention concerns that are stopping an engagement from moving forward. Insights make it easier to send the perfect response at the perfect time.

Salesforce can now flag emails with objections
Image Source: Salesforce Summer ’22 Release Overview Deck

References & Useful URLs

#SalesforceSummer22 – Natural Language Search for Knowledge Articles

#1MinuteTip #SalesforceSummer22 Natural language search (NLS) makes article management effortless. NLS navigates your Salesforce Knowledge base and identifies your most common article scenarios.

NLS recognizes what you’re searching for as you filter articles by publication, status, creation date, or author. Specify what you’re looking for in the search bar, and NLS returns a relevant list of articles that match your criteria.

Salesforce Natural Language Search for Knowledge Articles

References & Useful URLs

#SalesforceSummer22 – Einstein Activity Capture & Sensitive Information

#1MinuteTip #SalesforceSummer22 Einstein Activity Capture attempts to identify emails with sensitive information and automated responses before they’re added to the timeline, and it sets sharing to Don’t Share.

New text makes the reasoning for not sharing the email clearer, and it informs users that they can share the email if they choose.

Einstein Activity Capture & Sensitive Information

References & Useful URLs