0.4.0 • Published 10 months ago

@ghabie/web-sdk v0.4.0

Weekly downloads
-
License
Proprietary
Repository
-
Last release
10 months ago

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

0.3.0

1 year ago

0.4.0

10 months ago

0.2.0

1 year ago

0.1.0

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago