Skip to main content

WebAssistant

Easily deploy an AI assistant chatbot for your personal website.

This repository contains a Python library and the template for a React app, both of which use state-of-the-art Retrieval Augmented Generation (RAG) prompting methodologies.

Prerequisites

  1. Make sure you have an OpenAI API key
  2. Have the base URL of the website for which you want to create the chatbot

Using the Python Library

To use the python library, first install with

pip install WebAssistant

Then, write

from WebAssistant import *
myChatbot = Hub()
myChatbot.launch(YOUR_OPENAI_API_KEY, YOUR_WEBSITE)

This will create a link to a chatbot built with Gradio that can answer questions about your website.

If you're looking for a very basic (and not recommended) solution, simply iframe the link on your webpage. Note that the link will expire every 3 days and will need to be regenerated using launch()

Using the React App

For a more flexible solution, run the following Python code. Make sure you have node installed first.

from WebAssistant import *
myChatbot = Hub()
myChatbot.deployReactExpressApp(YOUR_OPENAI_API_KEY, YOUR_WEBSITE, YOUR_ROOT_DIRECTORY)

This will deploy a React frontend + Express backend to localhost:8080. From there, you can upload it to Cloudflare, Render.com, Fly.io, Railway, or other providers, and then iframe the link generated by those sites inside a dedicated container in your website for the chatbot.

Note that you must NOT remove the credits to this repository included at the bottom of the chatbot UI.

Questions?

Feel free to send any questions you have through the issues tab on Github.

Metadata

Release files for WebAssistant 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for WebAssistant 0.0.4
File Size Uploaded
webassistant-0.0.4.tar.gz 4.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for WebAssistant 0.0.4
File Interpreter ABI Platform
WebAssistant-0.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 9.9 kB

Release files / webassistant-0.0.4.tar.gz

Download URL webassistant-0.0.4.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
b182a5fdd98216c25a36184a266ce6750b5d0c4917443afd6809527a2c7c70e7
BLAKE2b-256 checksum
How to use checksums
98dce7108987056215879fbade9cae122674a8c6dd7d172a46f0a3f04483f08d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.20

Release files / WebAssistant-0.0.4-py3-none-any.whl

Download URL WebAssistant-0.0.4-py3-none-any.whl
Size 5.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2ca199a87c2d68ed16b9f25cc08a48dda183c59056a78b82708ab5305a88b18c
BLAKE2b-256 checksum
How to use checksums
7dbedd9c625d342f3db396992374c6304e0d8bff488d2fca7236a0b5135a4475
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.20

Release history Release notifications | RSS feed

This release

0.0.4 This release

2 release files

0.0.3

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page