@typeflowai/js
v1.0.0
Published
TypeflowAI-js allows you to connect your app to TypeflowAI, display workflows and trigger events.
Downloads
1
Maintainers
Readme
TypeflowAI Browser JS Library
Please see TypeflowAI Docs. Specifically, Quickstart/Implementation details.
What is TypeflowAI
TypeflowAI is your go-to solution for in-product micro-workflows that will supercharge your product experience! 🚀 For more information please check out typeflowai.com.
How to use this library
- Install the TypeflowAI package inside your project using npm:
npm install -s @typeflowai/js
- Import TypeflowAI and initialize the widget in your main component (e.g., App.tsx or App.js):
import typeflowai from "@typeflowai/js";
if (typeof window !== "undefined") {
typeflowai.init({
environmentId: "your-environment-id",
apiHost: "https://dashboard.typeflowai.com",
});
}
Replace your-environment-id with your actual environment ID. You can find your environment ID in the Setup Checklist in the TypeflowAI settings.
For more detailed guides for different frameworks, check out our Framework Guides.