New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

chat-bot-embed

Package Overview
Dependencies
Maintainers
0
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chat-bot-embed

Embeds the chat bot website into other web apps.

  • 3.0.4
  • latest
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

Currently Under Development and The Below is not accurate for now.

chat-bot-embed

chat-bot-embed is a lightweight and framework-agnostic package that allows you to easily embed a chat bot into any web application via an iframe. It dynamically appends a chat bot window to the screen.

Usage

Appending the support bot to the dom

Use loadSupportBot to load the widget anonymously, without any user identification.

import { loadSupportBot } from 'chat-bot-embed';

loadSupportBot({
  projectId: 'your-project-id',
  appId: 'your-app-id',
  reAppendOnRefresh: true, // Optional
  url: 'https://chat.supportbotcentral.com', // Optional;
});

Booting with User identification

Use bootSupportBot to initialize the chat bot with a user's information. This allows the chat bot to recognize the user across sessions.

import { bootSupportBot } from 'chat-bot-embed';

bootSupportBot({
  userEmail: 'user-email@example.com',
  userId: null, // Optional
});

The support bot widget should be loaded first using loadSupportBot(). The session will be anonymous until the widget is booted using bootSupportBot() with the users information. Once booted all the users information will be transferred and findable under their email.

Local Development

FAQs

Package last updated on 08 Dec 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc