Salesforce

Overview

Companies around the world use Salesforce Cloud Computing and CRM solutions to manage their customer relationships. By integrating Modzy with Salesforce, unstructured text such as customer email or feedback can be triaged using AI-generated insights and support can efficiently prioritize and address high-value issues and challenges.

In this example, we prioritize support requests by analyzing customer feedback with a Sentiment Analysis model from the Modzy model marketplace.

19601960

Integration in action

Salesforce Administrators

Modzy Lightning Web Component must be installed into your Salesforce instance, configured, and opened for use by all appropriate users. Only a Salesforce administrator will be able to complete these steps. If these have been completed you may skip to the Salesforce Users section of this document.

Administrators: Your Salesforce instance must have Dev Hub enabled and have 'My Domain' deployed to users within your Dev Hub. LWC installation is beyond the scope of this document, but the Quick Start: Lightning Web Components course is a great beginning. Lightning Web Components Dev Guide and How to Deploy Lightning Web Component Files are also good introductions to the process.

  1. Install the Lightning Web Components from this repo by using VSC to run the command SFDX:Deploy Source to org or with the CLI tools by running sfdx force:source:deploy -p force-app -u YourOrgName.

Modzy Credentials

Retrieve the appropriate API Key from your Modzy account.

Salesforce Named Credentials

A named credential specifies the URL of a callout endpoint and its required authentication parameters. Salesforce created Named Credentials as "a safe and secure way of storing authentication data for external services called from apex code such as authentication tokens."

  1. Have the Modzy API key from the previous step handy.
  2. In your Salesforce Org, enter the Setup page.
  3. In the Quick Search field, find "Named Credentials" and click to navigate there.
  4. Click the New Named Credential button.
  5. Enter the following information in the first section:
    • Label: Modzy
    • Name: Modzy
    • URL: https://trial.app.modzy.com/api (or the location of your instance of Modzy)
  6. Under Authentication:
    • Identity Type: Named Principle, which will designate this API key as valid for the entire organization.
    • Authentication Protocol: Password Authentication
    • Username: ApiKey (this is not used)
    • Password: paste your full API Key here
  7. Now check the Allow Merge Fields in HTTP Header box and save.
16081608

Remote Site Settings

To whitelist Modzy for access from within Salesforce you must register Modzy in your organization's remote site setting:

  1. In Salesforce, enter the Setup area.
  2. In the Quick Search field, find "Remote Site Settings" and click to navigate there.
  3. Click New Remote Site button.
  4. Enter Modzy for remote site name
  5. Use https://trial.app.modzy.com/api or the location of your instance of Modzy for the Remote Site URL
  6. Mark as active and save.
21282128

Salesforce Users

After an admin has installed and configured the Modzy Lightning Web Component, users will see the results automatically. The sample template works on Salesforce Cases:

  1. Create a new Case in your account
  2. Fill out all appropriate fields.
  3. Modzy will calculate a sentiment score for each field (Subject, Description, Reason and Comments) and display.
  4. See it in action:

Did this page help you?