Socket
Socket
Sign inDemoInstall

@rasahq/rasa-chat

Package Overview
Dependencies
111
Maintainers
4
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @rasahq/rasa-chat

This is the official widget to use with your Rasa bot! Note: this is a very early pre-release.


Version published
Weekly downloads
301
decreased by-14.25%
Maintainers
4
Created
Weekly downloads
 

Readme

Source

Rasa Chat Widget

This is the official widget to use with your Rasa bot! Note: this is a very early pre-release.

Embedding the widget on your page

Just paste the following into your site HTML, putting the URL of your Rasa instance in the data-websocket-url attribute

<div id="rasa-chat-widget" data-websocket-url="https://your-rasa-url-here/"></div>
<script src="https://unpkg.com/@rasahq/rasa-chat" type="application/javascript"></script>

Using the widget in a React project

Install the dependency

# if you use node
npm install @rasahq/rasa-chat

# if you use yarn
yarn add @rasahq/rasa-chat

Make sure you pay attention to the peerDependencies and address any that your project is missing.

Then you can use the component like so

import { ChatWidget } from '@rasahq/rasa-chat';

export  default function MyApp() {
    return (
        <ChatWidget websocketUrl="https://your-rasa-url-here/" />
    );
}

FAQs

Last updated on 27 Jan 2022

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc