Commit Graph

212 Commits

Author SHA1 Message Date
Baptiste Arnaud
2a767e02b0 🐛 (fileUpload) Fix private file upload URLs
Closes #1761
2024-09-04 11:15:18 +02:00
Baptiste Arnaud
135251d3f7 Add audio clips option on text input block
Closes #157
2024-08-20 14:36:41 +02:00
Baptiste Arnaud
85e9a0c5e7 🐛 (upload) Fix file upload generated URL in preview 2024-07-08 09:04:33 +02:00
Baptiste Arnaud
6db0464fd7 Add attachments option to text input (#1608)
Closes #854
2024-06-26 10:13:38 +02:00
Baptiste Arnaud
033f52e9f3 📝 Add generate upload url endpoint api doc 2024-06-20 10:53:17 +02:00
Baptiste Arnaud
918836d6cf (embed) Option to add a wait event for the embed bubble
Closes #1590
2024-06-19 15:27:45 +02:00
Baptiste Arnaud
c53ce349af (api) Add textBubbleContentFormat option
Closes #1111
2024-05-23 16:30:56 +02:00
Baptiste Arnaud
40f21203b5 (setVariable) Add Transcription system var (#1507)
Closes #1484
2024-05-15 14:24:55 +02:00
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
Baptiste Arnaud
5073be2439 ♻️ Remove @typebot.io/schemas from @typebot.io/lib 2024-03-15 16:32:29 +01:00
Baptiste Arnaud
bbeb12cad2 🐛 Fix progress bar crash when input is undefined 2024-03-11 08:56:50 +01:00
Baptiste Arnaud
d8924d7f43 💚 Fix deprecated sizeLimit option type 2024-03-04 13:21:26 +01:00
Baptiste Arnaud
f14eb91d2a 🐛 (fileUpload) Fix files deletion on result delete 2024-03-04 11:38:20 +01:00
Baptiste Arnaud
9b656214d1 🐛 (chat) Enable prefilledVariables in preview mode
Also make list values compatible
2024-02-28 14:49:04 +01:00
Baptiste Arnaud
229453d3d3 💄 Improve progress bar UI and make avoid starting at 0 2024-02-27 14:22:46 +01:00
Baptiste Arnaud
ce17ce5061 🐛 (whatsapp) Fix webhook when having 2 phone numbers in same WA account 2024-02-26 13:54:41 +01:00
Baptiste Arnaud
2d7ccf17c0 (theme) Add progress bar option (#1276)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
- Introduced progress bar functionality across various components for a
more interactive user experience.
	- Added progress tracking and display in chat sessions.
- **Enhancements**
- Adjusted layout height calculations in the settings and theme pages
for consistency.
- Improved theme customization options with progress bar styling and
placement settings.
- **Bug Fixes**
- Fixed dynamic height calculation issues in settings and theme side
menus by standardizing heights.
- **Style**
- Added custom styling properties for the progress bar in chat
interfaces.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-02-23 08:31:14 +01:00
Baptiste Arnaud
6215cfbbaf (fileUpload) New visibility option: "Public", "Private" or "Auto" (#1196)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **New Features**
- Introduced file visibility options for uploaded files, allowing users
to set files as public or private.
- Added a new API endpoint for retrieving temporary URLs for files,
enhancing file accessibility.
- Expanded file upload documentation to include information on file
visibility settings.
- Updated URL validation to support URLs with port numbers and
"http://localhost".
- **Enhancements**
- Improved media download functionality by replacing the `got` library
with a custom `downloadMedia` function.
- Enhanced bot flow continuation and session start logic to support a
wider range of reply types, including WhatsApp media messages.
- **Bug Fixes**
- Adjusted file path and URL construction in the `generateUploadUrl`
function to correctly reflect file visibility settings.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-01-30 08:02:10 +01:00
Baptiste Arnaud
5627105ce5 🐛 (calCom) Don't delete session if chat reply has custom embed
Closes #1164
2024-01-22 14:35:12 +01:00
Baptiste Arnaud
b438c174c4 🛂 Enable allowed origins security to depreceated sendMessage endpoints 2024-01-19 14:41:43 +01:00
Baptiste Arnaud
d6f94d37d8 🐛 (cors) Fix cors setting when bot is origin-restricted 2024-01-18 10:25:24 +01:00
Baptiste Arnaud
8771def9a1 Customizable allowed origins 2024-01-17 09:04:07 +01:00
Baptiste Arnaud
b5fbba7072 🔒 (logs) Remove some logs from API response to avoid sensit… 2024-01-02 15:18:20 +01:00
Baptiste Arnaud
6e076e9fb8 🚑 Revert resultId optional in startChat response 2023-12-23 10:13:27 +01:00
Baptiste Arnaud
1e5fa5a575 📝 Migrate from Docusaurus to Mintlify (#1115)
Closes #868
2023-12-22 09:13:53 +01:00
Baptiste Arnaud
957eaf33dd Add dynamic timeout to bot engine api 2023-12-08 13:43:58 +00:00
Baptiste Arnaud
06065c3e85 Revert new authentication method for preview bot 2023-11-13 15:45:11 +01:00
Baptiste Arnaud
084588a086 🧑‍💻 (chat) Introduce startChat and continueChat endpoints
Closes #1030
2023-11-13 15:27:36 +01:00
Baptiste Arnaud
35300eaf34 ♻️ Introduce typebot v6 with events (#1013)
Closes #885
2023-11-08 15:34:16 +01:00
Baptiste Arnaud
3838ac9c3f 🐛 New sendMessage version for the new parser
Make sure old client still communicate with old parser
2023-10-06 10:14:26 +02:00
Baptiste Arnaud
9e6a1f7dc0 ♻️ (api) Auto start bot if starting with input
Closes #877, closes #884
2023-10-04 16:47:58 +02:00
Baptiste Arnaud
bf051bebde 🐛 (whatsapp) Fix force create session when flow is completed at first round 2023-10-03 16:06:37 +02:00
Baptiste Arnaud
f9a14c0685 🐛 (whatsapp) Fix auto start input where it didn't display next bu… (#869)
…bbles
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
### Summary by CodeRabbit

**Release Notes**

- New Feature: Enhanced WhatsApp integration with improved phone number
formatting and session ID generation.
- Refactor: Updated the `startWhatsAppPreview` and
`receiveMessagePreview` functions for better consistency and
readability.
- Bug Fix: Added a check for `phoneNumberId` in the `receiveMessage`
function to prevent errors when it's undefined.
- Documentation: Expanded the WhatsApp integration guide and FAQs in the
docs, providing more detailed instructions and addressing common
queries.
- Chore: Introduced a new `metadata` field in the
`whatsAppWebhookRequestBodySchema` to store the `phone_number_id`.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2023-09-29 09:59:38 +02:00
Baptiste Arnaud
7b3cbdb8e8 🚑 (fileUpload) Fix file upload in linked typebots 2023-09-26 08:07:33 +02:00
Baptiste Arnaud
4f953ac272 (whatsapp) Add custom session expiration (#842)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
### Summary by CodeRabbit

- New Feature: Introduced session expiry timeout for WhatsApp
integration, allowing users to set the duration after which a session
expires.
- New Feature: Added an option to enable/disable the start bot condition
in WhatsApp integration settings.
- Refactor: Enhanced error handling by throwing specific errors when
necessary conditions are not met.
- Refactor: Improved UI components like `NumberInput` and
`SwitchWithLabel` for better usability.
- Bug Fix: Fixed issues related to session resumption and message
sending in expired sessions. Now, if a session is expired, a new one
will be started instead of attempting to resume the old one.
- Chore: Updated various schemas to reflect changes in session
management and WhatsApp settings.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2023-09-22 17:12:15 +02:00
Baptiste Arnaud
9e0109f561 (whatsapp) Improve whatsApp management and media collection
Closes #796
2023-09-22 11:08:41 +02:00
Baptiste Arnaud
85272af8f3 🚑 (upload) Fix upload in embed 2023-09-21 19:08:43 +02:00
Baptiste Arnaud
7d57e8dd06 ♻️ Export bot-engine code into its own package 2023-09-20 15:42:34 +02:00
Baptiste Arnaud
bb13c2bd61 🛂 (fileUpload) Improve file upload size limit enforcement
Closes #799, closes #797
2023-09-19 15:42:33 +02:00
Baptiste Arnaud
f626c9867c (whatsapp) Improve WhatsApp preview management
Closes #800
2023-09-19 11:53:18 +02:00
Baptiste Arnaud
21ad061f7b 🚸 (typebotLink) Make sure variables from child bots are merged if necessary 2023-09-18 10:59:56 +02:00
Ed Zynda
75e4b16af0 Add Zemantic AI Integration block (#752)
Co-authored-by: Baptiste Arnaud <contact@baptiste-arnaud.fr>
2023-09-08 16:21:50 +02:00
Baptiste Arnaud
fbb198af9d (s3) Improve storage management and type safety
Closes #756
2023-09-08 15:28:11 +02:00
Baptiste Arnaud
a2e24d08a0 (date) Add min and max options to date input block
Closes #792
2023-09-08 11:38:23 +02:00
Baptiste Arnaud
bea3332c32 🚑 (typebotLink) Correctly pass back existing values from parent bot 2023-09-08 07:40:31 +02:00
Baptiste Arnaud
9e8fa124b5 (dateInput) Add format option and improve parsing
Use date-fns for custom format and make sure dates are timezone independants

Closes #533, closes #592
2023-09-05 10:34:56 +02:00
Baptiste Arnaud
111fb323b1 (wait) Add pause option on Wait block
Closes #751
2023-09-04 14:52:16 +02:00
Baptiste Arnaud
1ebacaaa5d 🚸 Make sure to add start client side action first in the list 2023-09-02 14:27:47 +02:00
Baptiste Arnaud
968c5e3c95 🚑 (fileUpload) Fix web bot file upload input skip option 2023-09-02 09:36:48 +02:00
Baptiste Arnaud
27a5f4eb74 (openai) Add custom provider and custom models
Closes #532
2023-09-01 16:19:59 +02:00