- Create your account
  • Go to Dashboard
  • Provide a name for your organization.
  • Give your application a name.
  • create_account
  • Once you have successfully created your account and application, you should be able to see your applications.
  • applications
  • It is important to keep your client id and client secret safe.
- Load replies script to your site
  • Once you have success finished the previous steps. you can now include this piece of code on your site.
  • replies_config define a global variable on your site with javascript code, this variable name shall NOT be changed.
  • application_key(required) change the to your application key from previous step.
  • title(optional) Replace the title with the page that you like the comment section to show up.
  • thread_id(optional) you can provide a id for this thread of discussion, Otherwise thread_id will be generated from URL of page where the plugin is loaded.
  • root_element_id(required) defines the DOM element that you choose for the comment section to be rendered.
<script>
  var replies_config = { 
        application_key: 'xxxxxx',
        title: 'xxxxxx',
        thread_id: 'xxxxxx',
        root_element_id: 'replies_root'
    }
  </script>
  <script src="https://cdn.replies.tech/main.js" defer></script>
- SSO
  • You can enable SSO (single sign-on) if you like your user to use identify from your application.
  • name of the user in your system.
  • email (optional) of the user in your system.
  • phone (optional) of the user in your system.
  • user_id identity of the user in your system.
  • avatar_url (optional) the avatar image of the user.
  • profile_url (optional) profile url of the user from your system.
  • auth_token pass in a JWT token using the HMACSHA256 encryption with client_secret from your application page, only required field in the token PAYLOAD is a exp expiration timestamp that it has be greater than the current time, please also make sure the expiration time is not too long for security reasons. please refer to JWT.io if you need to play with the JWT token.
var replies_config = { 
      ...
      sso_user: {
          name: "xxxxx",
          email: "xxxxx",
          phone: "xxxxx",
          user_id: "xxxxxx",
          avatar_url: "xxxxxx",
          profile_url: "xxxxxx",
          auth_token: "xxxxxx"
    }

}