@ghabie/web-sdk
TypeScript icon, indicating that this package has built-in type declarations

0.4.0 • Public • Published

Ghabie Web SDK

The official web SDK for Ghabie — automate first line customer support with AI.

Installation

To install the package, use the following npm command:

  • npm

    npm install @ghabie/web-sdk
  • yarn

    yarn add @ghabie/web-sdk
  • pnpm

    pnpm add @ghabie/web-sdk

Usage

Note: This SDK can only be used in a browser environment.

import { ghabie } from '@ghabie/web-sdk';

// Initialize SDK with your organization ID and an optional username for the current user.
// Sign up for an org ID: https://ghabie.com
ghabie.initSDK({
  // Required
  orgId: 'abcd...',
  // Optional
  username: '',
  position: 'bottom-right', // 'top-left' | 'top-center' | 'top-right' | 'bottom-left' | 'bottom-center' | 'bottom-right' (Default: bottom-right)
  // Optional: Update the user's profile information below
  //profile: { name: 'John Doe', age: 30, email: 'johndoe@example.com', phone: '+1234567890', location: 'New York, USA', image: 'https://example.com/profile.jpg' },
});

License

This project is licensed under a Proprietary License. All rights are reserved. For details on usage, restrictions, and permissions, see the LICENSE file.

Maintainers

Contact

Package Sidebar

Install

npm i @ghabie/web-sdk

Weekly Downloads

1

Version

0.4.0

License

Proprietary

Unpacked Size

94.7 kB

Total Files

5

Last publish

Collaborators

  • iamgideonidoko
  • ghabie_ai