💬 Typebot 是一款功能强大的聊天机器人构建器,您可以自行托管。 https://typebot.io/
Go to file
Baptiste Arnaud 0dc276c18f
Restore chat state when user is remembered (#1333)
Closes #993

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

## Summary by CodeRabbit

- **New Features**
- Added a detailed explanation page for the "Remember user" setting in
the app documentation.
- Introduced persistence of chat state across sessions, with options for
local or session storage.
- Enhanced bot functionality to store and retrieve initial chat replies
and manage bot open state with improved storage handling.
- Added a new callback for chat state persistence to bot component
props.

- **Improvements**
- Updated the general settings form to clarify the description of the
"Remember user" feature.
- Enhanced custom CSS handling and progress value persistence in bot
components.
- Added conditional transition disabling in various components for
smoother user experiences.
- Simplified the handling of `onTransitionEnd` across multiple bubble
components.

- **Refactor**
- Renamed `inputIndex` to `chunkIndex` or `index` in various components
for consistency.
	- Removed unused ESLint disable comments related to reactivity rules.
	- Adjusted import statements and cleaned up code across several files.

- **Bug Fixes**
- Fixed potential issues with undefined callbacks by introducing
optional chaining in component props.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-03-07 15:39:09 +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 Restore chat state when user is remembered (#1333) 2024-03-07 15:39:09 +01:00
packages Restore chat state when user is remembered (#1333) 2024-03-07 15:39:09 +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 🚑 Revert prisma fix 2023-02-01 08:09:19 +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
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 🔖 Release v2.23.0 2024-03-02 12:24:22 +01:00
pnpm-lock.yaml ⬆️ Upgrade ai and openai packages 2024-03-07 14:26:48 +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.