Posts

Showing posts from November, 2018

Data Loader Command Line

  *[     Place all the BAT files in the ‘bin’ folder of Data Loader.    Place Mapping file & XML file in Conf folder  Create a new folder ➡ ️ Place CSV file ➡ ️ Give its path in the XML file correctly.   ] 1.     Create a text file  ➡ ️ Write any long word/number  ➡ ️ Save    2.      Open CMD & run  ➡ ️ encrypt.bat -k [path of file created in step 1]   3.      Continue in CMD  ➡ ️ encrypt.bat -e [OrgPassword] [Path of file generated in step 2]   4.      Encrypted value is returned in step 3  ➡ ️ Save it for further use.   5.      Open Data Loader (desktop version)  ➡ ️ Create mapping file (.sdl format)   6.      Configure ‘process-conf.xml’ file as per requirement  (Fill the required Username, Password, Action, Path etc)    7.      Create a text file (ex-Filename) & write  ➡ ️ call [name of your main .bat file] [path of Conf folder] [process-name you assigned in XML file] [path of the CSV to upload] [path where you want error files to be gen

SF Einstein ChatBot - Saving live chatting/transcript

global class EinsteinChatbotsFindLiveChatTranscript {     @InvocableMethod(label='Einstein Chatbots - Find LiveChatTranscript By Session Id' description='Returns a LiveChatTranscript for the specified Session Id')     global static List<LiveChatTranscript> findLiveChatTranscriptFromSessionId(List<string> requests)      {         List<LiveChatTranscript> results = new List<LiveChatTranscript>();         for (string request : requests)          {             if (String.IsNotBlank(request))             {                 LiveChatTranscript newLiveChatTranscript = findLiveChatTranscriptFromSessionId(request);                 if (newLiveChatTranscript != null && string.isNotBlank(newLiveChatTranscript.Id))                 {                     results.add(findLiveChatTranscriptFromSessionId(request));                    }             }               }         if (results.size() == 0)          {             return new List<

SF Einstein ChatBot Setup & Training

Image
1.Go to Einstein Bot from Setup -> Enable the Bot -> Enable Log Conversation & Live Agent. 2.Create new Bot (Complete all the steps) 3.Once Bot is created all the basic operations/features of Bot can be used, except Training Chatbot. Create “Dialogs” & and interlink them according to requirement using following 4 functionalities. 4.To start Training the Bot, follow these steps: a . Enable “Dialog Intent” of the respective dialog, on which bot should learn. b . Sign-up for “Einstein Platform Services” by visiting the following Link: https://api.einstein.ai/signup c . After downloading the KEY (.pem file) & we have to upload it to our Salesforce Org -> By going to ‘Files’ by clicking 5. Go to Setup -> Create a ‘Remote-Site’. ·          Remote Site Name: EIS_API ·          Remote Site URL: https://api.einstein.ai 6. Go to Setup -> Security -> Certificate & Key Management