Giter VIP home page Giter VIP logo

openai-sf's Introduction

OpenAI - Salesforce

Implementation of OpenAI API in Salesforce.

Contents:

Ask me anything utility

  1. Apex to do the callout: OpenAI class
  2. Screen flow to invoke the apex @Invocable imagename imagename
  3. Custom metadata type to add the token + orgID + ... imagename

Chatter moderation framework

Based on the moderation algorithm implemented in [OpenAI Api][https://beta.openai.com/docs/guides/moderation/overview]

  1. Apex to do the callout: OpenAI class
  2. Apex Triggers for FeedItem and FeedComments for Chatter
  3. Custom metadata type to add the moderator parameters as violation message, moderation scoring, ... imagename

Setup:

  1. Create an scratch org and push all the contents in this project.
  2. Create the OPEN AI Setting in the Custom metadata type. It's needed the Token field, Moderation Score (0..1) and Violation Message to show when a post in chatter has a score superior than the moderation score.
  3. Go to The App Sales => OpenAI => Input some text as it's described in the examples of OpenAI Page
  4. Go to Chatter => Post a status and check the moderation. I suggest you to put a value < 0.02 to see quicker the results.

Intention:

It helps to integrate this revolutionary tool in our solutions in Salesforce in a very simple way. Also I propose a solution for moderation in Chatter using the Moderation algorithm in GPT-3

openai-sf's People

Contributors

krukmat avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.