This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<apex:page controller="FindIntentController" standardStylesheets="false" sidebar="false"> | |
<!--Stylesheets--> | |
<apex:slds /> | |
<apex:stylesheet value="{!$Resource.FindIntentCSS}" /> | |
<!--Modal--> | |
<div id="mdlStatus" style="display:none"> | |
<section role="dialog" tabindex="-1" class="slds-modal slds-fade-in-open"> | |
<div class="slds-modal__container"> | |
<header class="slds-modal__header"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* This class is created to make a | |
* playground to try out Intent APIs | |
* and predict a block of text. | |
* | |
* @author Shruti Sridharan | |
* @since 30/08/2017 | |
* @revisions N/A | |
**/ | |
public class FindIntentController { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* This class is created to make requests to | |
* various Einstein Endpoints. | |
* | |
* @author Shruti Sridharan | |
* @since 10/08/2017 | |
* @revisions N/A | |
**/ | |
public class EinsteinAPI { | |
//////////////////////// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* This class is created to receive | |
* the Response of Sentiment Analysis | |
* API. | |
* | |
* @author Shruti Sridharan | |
* @since 10/08/2017 | |
* @revisions N/A | |
**/ | |
global class SentimentAnalysisResponse { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{!REQUIRESCRIPT("/soap/ajax/39.0/connection.js")} | |
{!REQUIRESCRIPT("/soap/ajax/39.0/apex.js")} | |
var resp = sforce.apex.execute( | |
"EinsteinServices", | |
"findSentiment", | |
{ | |
"text" : "{!Task.Description}" | |
} | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* This class is created to expose | |
* various Einstein Services as web services | |
* so that the same can be invoked from | |
* JavaScript buttons. | |
* | |
* @author Shruti Sridharan | |
* @since 10/08/2017 | |
* @revisions N/A | |
**/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* This class is created to make requests to | |
* various Einstein Endpoints. | |
* | |
* @author Shruti Sridharan | |
* @since 10/08/2017 | |
* @revisions N/A | |
**/ | |
public class EinsteinAPI { | |
public String tokenEndpoint { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<apex:page> | |
<c:RecordLookup id="accLkp" sobject="Account" label="Account" componentWidth="70%" filterListClass="slds-select" recordsListClass="slds-select" load3rdPartyLib="true" onselect="onselect"/> | |
</apex:page> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<apex:page controller="FieldSetUIGenerator" showHeader="false" sidebar="false" standardStylesheets="true" applyHtmlTag="false" applyBodyTag="false" docType="html-5.0"> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<meta http-equiv="x-ua-compatible" content="ie=edge" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1" /> | |
<title>Field Set UI</title> | |
<!--This needs to be on the top for a reason--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var tessel = require( "tessel" ) | |
, request = require( "request" ) | |
, Keypad = require( "tessel-async-matrix-keypad" ) | |
, keypadPins = tessel.port.A.pin; | |
var keypad = new Keypad({ | |
keys: [ | |
["1", "2", "3", "A"], | |
["4", "5", "6", "B"], | |
["7", "8", "9", "C"], |