Giter Site home page Giter Site logo

frontapp.github.io's Introduction

Sample Custom Front Plugin

Through Front's Plugin API, developers can build Custom Plugins in Front which can read, manipulate, and communicate with conversation data in Front.

This is a simple example plugin with a mocked CRM service with fake data to show how a very simple Front Custom Plugin could provide value by bringing your own data into context for conversations. If you want to test it directly, go to Settings > Plugins and API > Plugins and add a new plugin with https://frontapp.github.io/plugin.html as the endpoint. You should see a plugin appear in your integration side panel like this:

Front Sample Plugin

You can use this sample as a starting point to begin developing, but you must host the plugin yourself and include our library. You may use any framework or library you wish, just add <script src="https://dl.frontapp.com/libs/frontjs.min.js"></script>. We used VanillaJS/HTML/CSS for simplicity.

For more information about Front's Plugin API, visit the documentation here: https://dev.frontapp.com/plugin.html

frontapp.github.io's People

Contributors

furzel avatar lperrin avatar xdmnl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

frontapp.github.io's Issues

Cannot listen to changes from plugin

I created a plugin, hosted it in AWS.

Then had this code in main.js

Front.on('conversation', function (data) {
    console.log(data)
});
  
Front.on('no_conversation', function (data) {
    console.log(data)
});

Front.on('single_conversation', function (data) {
    console.log(data)
});

But it has an error:

Uncaught (in promise) ReferenceError: on is not a valid function for context noConversation.

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.