2
0
Commit Graph

393 Commits

Author SHA1 Message Date
ff3807a265 ⬆️ Upgrade ai package 2024-03-14 19:40:40 +01:00
bbeb12cad2 🐛 Fix progress bar crash when input is undefined 2024-03-11 08:56:50 +01:00
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
583294f90c 🐛 (whatsapp) Fix auto start when first input is file
Closes #1246
2024-03-07 14:26:48 +01:00
c2003dab91 ⬆️ Upgrade ai and openai packages 2024-03-07 14:26:48 +01:00
df209a8e9d 🧑‍💻 (whatsapp) Option to modify the default interactive split message number (#1296)
When using the whatsapp oficial api or another that use the same schema,
with env we can modify the number of groups that the interactive group
will be split.

---------

Co-authored-by: Baptiste Arnaud <baptiste.arnaud95@gmail.com>
Co-authored-by: Baptiste Arnaud <contact@baptiste-arnaud.fr>
2024-03-07 08:05:08 +00:00
daaca9f817 🐛 (textBubble) Fix variable with text styles unwanted break lines 2024-03-04 16:21:06 +01:00
4ca613e83a ♻️ Use at function instead of dangerous direct lookup array index 2024-03-04 14:14:06 +01:00
3037771d1c 💚 Remove unused mp4 url check 2024-03-01 18:05:04 +01:00
3971e4a888 🚸 (whatsapp) Remove .mp4 regex restriction for video URLs
Closes #1282
2024-03-01 16:24:36 +01:00
275ba1b1c4 🚑 (whatsapp) Fix broken preview 2024-02-28 15:49:18 +01:00
9b656214d1 🐛 (chat) Enable prefilledVariables in preview mode
Also make list values compatible
2024-02-28 14:49:04 +01:00
229453d3d3 💄 Improve progress bar UI and make avoid starting at 0 2024-02-27 14:22:46 +01:00
b9e54686d5 ⬆️ Upgrade and improve plate editor
Closes #606
2024-02-27 10:03:55 +01:00
ce17ce5061 🐛 (whatsapp) Fix webhook when having 2 phone numbers in same WA account 2024-02-26 13:54:41 +01:00
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
18c0445ac9 🐛 (whatsapp) Fix image or video bubble before choice input 2024-02-19 10:50:44 +01:00
33cbb2b254 🚸 Rename "webhook" block to "HTTP request" 2024-02-16 12:04:25 +01:00
8d50dc9dfa 🧑‍💻 Rename User ID predefined value to Result ID whic… 2024-02-16 11:34:54 +01:00
519f3aa4f9 🐛 (setVariable) Fix timeZone variable parsing 2024-02-16 10:13:56 +01:00
3e0d3e7724 (setVariable) Add timezone option for dates
Closes #1251
2024-02-16 10:07:29 +01:00
f5bdba53b9 🐛 (dify) Fix Dify error when inputs are empty 2024-02-12 11:41:57 +01:00
f7d3d58ede 🚸 (url) Less strict URL validation on server
Closes #1222
2024-02-09 07:57:16 +01:00
3e2533b934 (rating) Add start number option in Rating block 2024-02-06 17:01:53 +01:00
9fc05cb150 🚸 (fileUpload) Add success labels cutomization
Closes #515
2024-02-05 14:11:04 +01:00
ce79e897a7 🐛 Make sure variables are parsed in date and picture choice options 2024-02-02 11:15:20 +01:00
c6161179d0 🐛 (openai) Fix 400 error when tools array empty
Closes #1205
2024-02-02 11:03:17 +01:00
be5482c89a 🐛 (buttons) Make sure to parse options if button has dynamic items 2024-02-01 17:40:52 +01:00
3128ebd431 🐛 Fix broken skippable file upload input 2024-02-01 16:54:47 +01:00
3b27f16735 ⬆️ Upgrade google-spreadsheet and fix openapi docs g… 2024-01-31 09:54:09 +01:00
ff9c4726cc 🚸 Rewrite the markdown deserializer to improve br… (#1198)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **Refactor**
- Updated markdown handling and serialization libraries for improved
performance and accuracy in text formatting.
- **New Features**
- Enhanced rich text and markdown conversion capabilities, providing
users with more reliable and seamless text formatting options.
- **Documentation**
- Added detailed documentation for markdown to rich text conversion and
vice versa, ensuring easier understanding and implementation for
developers.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-01-31 08:03:13 +01:00
26872e2bac 🐛 Add max wait block timeout on WhatsApp runtime 2024-01-30 09:36:25 +01:00
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
47af9a9a59 📝 Add env WHATSAPP_CLOUD_API_URL to possible change https://gr… (#1170)
refs #1117 

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

- **Refactor**
- Dynamically construct API URLs for WhatsApp features using environment
variables for improved reliability and configurability.
- Updated `sendWhatsAppMessage` function to use
`env.WHATSAPP_CLOUD_API_URL` for URL construction, allowing for more
dynamic configuration.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Baptiste Arnaud <baptiste.arnaud95@gmail.com>
2024-01-29 09:37:19 +01:00
ef05b71869 🐛 (setVariable) Avoid octal number evalution 2024-01-29 09:37:19 +01:00
f052b4c805 (settings) Add delay between bubbles option and typing disabling on first message 2024-01-29 09:37:19 +01:00
32927e00bf 🐛 (whatsapp) Fix first message capture regression
Closes #1168
2024-01-29 09:37:19 +01:00
5627105ce5 🐛 (calCom) Don't delete session if chat reply has custom embed
Closes #1164
2024-01-22 14:35:12 +01:00
42008f8c18 (openai) Enable setVariable function in tools
Closes #1178
2024-01-22 09:22:28 +01:00
61bfe1bb96 ️ Receive WhatsApp location (#1158)
Enable Typebot to recieve location messages via Whatsapp and parse them
into a string. Returns a string "Location: [LAT],[LON]" for the text
input block

As per
https://discord.com/channels/1155799591220953138/1193858969102450748

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

- **New Features**
- Introduced support for receiving and handling location messages in
WhatsApp integration.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: memarius <me-marius@web.de>
Co-authored-by: Baptiste Arnaud <contact@baptiste-arnaud.fr>
2024-01-18 14:01:22 +01:00
8771def9a1 Customizable allowed origins 2024-01-17 09:04:07 +01:00
a44857e03b (sheets) Reset timeout after Google Sheets execution 2024-01-15 11:14:14 +01:00
69b113fc85 🧐 Add exportResults script 2024-01-12 10:16:01 +01:00
5d971f7b6f 🚸 (results) Add progress bar to export results modal 2024-01-11 10:36:48 +01:00
03258e0f64 (openai) Add "Ask assistant" action
Closes #1024
2024-01-11 08:29:41 +01:00
244a29423b (whatsapp) Improve / fix markdown serializer
Forked remark-slate code to create Typebot's own serializer

Closes #1056
2024-01-08 08:40:25 +01:00
f73bc46208 🐛 (webhook) Fix test request execution invalid timeout 2024-01-04 14:09:06 +01:00
34917b00ef (webhook) Add custom timeout option
Closes #1128
2024-01-04 08:08:00 +01:00
d247e02cad 🐛 (webhook) Fix result parsing with same linked typebot 2024-01-03 17:01:22 +01:00
65f4fb0d7a 📝 Add Contribute docs 2024-01-03 16:29:41 +01:00