💬 Typebot 是一款功能强大的聊天机器人构建器,您可以自行托管。 https://typebot.io/
Go to file
Baptiste Arnaud 2fcf83c529
Introduce a new high-performing standalone chat API (#1200)
Closes #1154

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
	- Added authentication functionality for user sessions in chat API.
- Introduced chat-related API endpoints for starting, previewing, and
continuing chat sessions, and streaming messages.
- Implemented WhatsApp API webhook handling for receiving and processing
messages.
- Added environment variable `NEXT_PUBLIC_CHAT_API_URL` for chat API URL
configuration.

- **Bug Fixes**
	- Adjusted file upload logic to correctly determine the API host.
	- Fixed message streaming URL in chat integration with OpenAI.

- **Documentation**
- Updated guides for creating blocks, local installation, self-hosting,
and deployment to use `bun` instead of `pnpm`.

- **Refactor**
	- Refactored chat API functionalities to use modular architecture.
- Simplified client log saving and session update functionalities by
using external functions.
	- Transitioned package management and workflow commands to use `bun`.

- **Chores**
- Switched to `bun` for package management in Dockerfiles and GitHub
workflows.
	- Added new Dockerfile for chat API service setup with Bun framework.
	- Updated `.prettierignore` and documentation with new commands.

- **Style**
	- No visible changes to end-users.

- **Tests**
	- No visible changes to end-users.

- **Revert**
	- No reverts in this release.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-03-21 10:23:23 +01:00
.github 💚 Add "next" docker image metadata 2024-02-21 09:59:56 +01:00
.husky 👷 Change pre-commit format fix to check only 2024-01-29 12:08:11 +01:00
.vscode 🌐 Add templates name and description translation keys (#1120) 2023-12-29 10:50:31 +01:00
apps Introduce a new high-performing standalone chat API (#1200) 2024-03-21 10:23:23 +01:00
packages Introduce a new high-performing standalone chat API (#1200) 2024-03-21 10:23:23 +01:00
scripts 🐳 Force Next.js apps local hostname 2023-10-13 15:01:21 +02:00
.dockerignore 🐳 Fix docker image runtime error 2023-09-01 15:41:11 +02:00
.editorconfig Add authentication 2021-11-29 15:19:07 +01:00
.env.dev.example 🧑‍💻 Improve env variables type safety and management (#718) 2023-08-28 09:13:53 +02:00
.env.example 🧑‍💻 Improve env variables type safety and management (#718) 2023-08-28 09:13:53 +02:00
.gitignore add specific link for ChatNode to TypeBot (#1106) 2023-12-14 21:52:13 +01:00
.npmrc Introduce a new high-performing standalone chat API (#1200) 2024-03-21 10:23:23 +01:00
.pnpmfile.cjs 📦 Upgrade deps to latest version 2022-10-02 10:34:13 +02:00
.prettierrc Init project 2021-11-19 10:15:13 +01:00
.tolgeerc 🧑‍💻 Migrate to Tolgee (#976) 2023-10-27 09:23:50 +02:00
CHANGELOG.md 🔖 Release v2.23.0 2024-03-02 12:24:22 +01:00
chatApi.Dockerfile Introduce a new high-performing standalone chat API (#1200) 2024-03-21 10:23:23 +01:00
CONTRIBUTING.md 📝 Add Contribute docs 2024-01-03 16:29:41 +01:00
docker-compose.build.yml 🧑‍💻 Improve env variables type safety and management (#718) 2023-08-28 09:13:53 +02:00
docker-compose.dev.yml 🧑‍💻 Improve env variables type safety and management (#718) 2023-08-28 09:13:53 +02:00
docker-compose.yml 🐳 Bump Postgres version in official docker compose file 2023-10-02 11:20:06 +02:00
Dockerfile 🔖 Release v2.22.0 2024-02-01 10:28:59 +01:00
LICENSE Create LICENSE 2021-12-08 13:27:35 +01:00
package.json Introduce a new high-performing standalone chat API (#1200) 2024-03-21 10:23:23 +01:00
pnpm-lock.yaml Introduce a new high-performing standalone chat API (#1200) 2024-03-21 10:23:23 +01:00
pnpm-workspace.yaml 📝 Add v2.22 newsletter 2024-02-06 15:18:02 +01:00
README.md 📝 Add Contribute docs 2024-01-03 16:29:41 +01:00
turbo.json 👷 Change pre-commit format fix to check only 2024-01-29 12:08:11 +01:00


Typebot illustration Typebot illustration


Typebot is an open-source chatbot builder. It allows you to create advanced chatbots visually, embed them anywhere on your web/mobile apps, and collect results in real-time

Github Stars Commits per month License Uptime Report a bug Ask a question Ask a question Ask a question

Try TypebotDocs

Builder demo

https://user-images.githubusercontent.com/16015833/168876388-0310678d-080b-4eca-8633-e5cc4d7bd5d1.mp4

Features

Typebot makes it easy to create advanced chatbots. It provides the building block that are adaptable to any business use case. I improve Typebot regularly with bug fixes, new features, and performance improvements regularly.

Chat builder with 34+ building blocks such as:

  • 💬 Bubbles: Text, Image / GIF, video, audio, embed.
  • 🔤 Inputs: Text, email, phone number, buttons, picture choice, date picker, payment (Stripe), file picker... inputs
  • 🧠 Logic: Conditional branching, URL redirections, scripting (Javascript), A/B testing
  • 🔌 Integrations: Webhook / HTTP requests, OpenAI, Google Sheets, Google Analytics, Meta Pixel, Zapier, Make.com, Chatwoot, More to come...

Theme your chatbot to match your brand identity:

  • 🎨 Customize the fonts, background, colors, roundness, shadows, and more
  • 💪 Advanced theming with custom CSS.
  • 💾 Reusable theme templates

Share your typebot anywhere:

  • 🔗 Custom domain
  • 👨‍💻 Embed as a container, popup, or chat bubble easily with the native JS library.
  • Blazing fast embed lib. No iframe, no external dependencies, no performance impact.
  • 💻 Executable with HTTP requests

Collect your Results and get insights:

  • 📊 In-depth analytics with drop-off rates, completion rates, and more
  • 📥 Export results to CSV

Built for developers:

  • 🔓 No vendor-locking. Features built with flexibility in mind.
  • 💻 Easy-to-use APIs.

Getting started with Typebot

The easiest way to get started with Typebot is with the official managed service in the Cloud. You'll have high availability, backups, security, and maintenance all managed for you by me, Baptiste, Typebot's founder.

The cloud version can save a substantial amount of developer time and resources. For most sites this ends up being the best value option and the revenue goes to funding the maintenance and further development of Typebot. So youll be supporting open source software and getting a great service! 💙

Support & Community

You'll find a lot of resources to help you get started with Typebot in the documentation.

Self-hosting

Interested in self-hosting Typebot on your server? Take a look at the self-hosting installation instructions.

How to Contribute

You are awesome, lets build great software together. Head over to the Contribute docs to get started. 💪

Run the project locally

Follow the Local installation section of in the Contributing docs.

Top contributors

Made with contrib.rocks.

License

Typebot is open-source under the GNU Affero General Public License Version 3 (AGPLv3). You will find more information about the license and how to comply with it here.