2.1.0 • Published 7 months ago

sdk-for-widget v2.1.0

Weekly downloads
-
License
ISC
Repository
github
Last release
7 months ago

SDK for Customer Facing Channels

This SDK is used for embedding customer-facing channel capabilities in a mobile-app (native, hybrid) or a web-app. Developers can use their own user interface on a Web or any Native-App. Learn more about the products we build at Expertflow CX

SDK Capabilities

With this SDK, the developer can enable the customer to:

  • Start and End Chat.
  • Make an audio or a video call via WebRTC AUDIO ONLY
  • Receive system events and notifications and deliver necessary information to the customer
  • Send and Receive delivery notifications
  • Send and Receive all of the supported chat messages including rich-media messages
  • Enable call controls in the customer app for audio and video calls AUDIO ONLY
  • Get contact center stats ROADMAP
  • Contact center available timings ROADMAP
  • Get to know the availability of agents before initiating a request ROADMAP
  • Get to know expected waiting time ROADMAP

    Get Started

    Pre-requisites

    Make sure you have access to the Unified Admin Panel of the Expertflow CX. The following configurations are needs to be added in the Web Widget Settings.

    Create Customer Widget Settings in Unified Admin

    Create a Customer Widget in Unified Admin > Web Widget Settings

    WebRTC Settings in Unified Admin
    PropertiesExplanationSample Value
    WSS FS ServerString value of EF switch IP or FQDN'wss://192.168.0.101:7443'
    URI FSString value of EF switch webRTC port'192.168.0.101'
    Dialling URIEF switch DN'369852'
    SIP ExtensionExtension dedicated for dialling'ext'
    Extension PasswordExtension password for registration'password'
    ChannelString value required to get web socket"mobile"
    Web SocketString value required to get web socket"wss"
    Ice ServersSet of array values required to get serversstun:stun.l.google.com:19302 , stun:stun1.l.google.com:19302

Update config file

Make sure to pass following configurations from config file to SDK

PropertiesExplanationSample Value
widget_identifierString value required to get widget configurationswidget_identifier = "Web"
service_identifierString value required to get channel manager detailsservice_identifier = 5155
channel_identifierString value required to get customer identification using prechat form field PRE-CHAT FORMchannel_identifier = "phone"
conversational_urlString value of conversation manager IP or FQDNconversational_url = "https://<public_ip>"
form_urlString value of unified admin's forms api IP or FQDN for pre-chat formform_url = "https://<public_ip>"
socket_urlString value of web channel manager IP or FQDNsocket_url = "https://<public_ip>"
file_server_urlString value of file server engine IP or FQDNfile_server_url = "https://<public_ip>"
ccm_urlString value of customer channel manager IP or FQDNccm_url = "https://<public_ip>"
bot_framework_urlString value of bot framework IP or FQDNbot_framework_url = "https://<public_ip>"

If Application is in React Native make sure to install additional packages to support SDK.

Install Packages for React Native

Run the Following commands before installing React Native SDK for Customer Facing Channels:

  • npm i jssip-node-websocket
  • npm i react-native-jssip
  • npm i react-native-webrtc
  • npm i websocket

Once all these pre-requisite packages are installed, We're ready to install React Native SDK for Customer Facing Channels:

npm i @expertflow/sdk-for-customer-facing-channels@2.0.0

Now just include the SDK package into the file where SDK functions are required and experience the Expertflow CX Features.

import * as customerSDK from 'sdk-for-customer-facing-channels'; OR const customerSDK = require('sdk-for-customer-facing-channel');

2.1.0

7 months ago

2.2.1

8 months ago