2
0
Files
bot/packages/typebot-js/README.md
2023-02-21 16:22:25 +01:00

666 B

⚠️ This library is deprecated in favor of @typebot.io/js and @typebot.io/react

Typebot JS library

Frontend library to embed typebots from Typebot.

Installation

To install, simply run:

npm install typebot-js

Usage

It exposes 3 functions:

initContainer()
initPopup()
initBubble()

You can configure them directly in the "Share" tab of your typebot.

Example:

import { initContainer } from 'typebot-js'

const plausible = initContainer('container-id', {
  publishId: 'my-app.com',
})