2
0
Commit Graph

393 Commits

Author SHA1 Message Date
6f3e9e9251 🚑 Fix text styling parsing on variables 2023-10-05 17:53:04 +02:00
cfc5f641a6 Automatically parse markdown from variables in text bubbles
Closes #539
2023-10-05 16:50:17 +02:00
9e6a1f7dc0 ♻️ (api) Auto start bot if starting with input
Closes #877, closes #884
2023-10-04 16:47:58 +02:00
bf051bebde 🐛 (whatsapp) Fix force create session when flow is completed at first round 2023-10-03 16:06:37 +02:00
a7b784b446 🚸 (videoBubble) Reparse variable video URL to correctly detect provider 2023-10-03 11:44:51 +02:00
60c06aa9a9 🚑 (whatsapp) Fix start whatsapp session when user has multiple whatsapp enabled 2023-10-03 10:13:25 +02:00
f016072e3e 🚸 (whatsapp) Improve how the whatsapp preview behaves (#873)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
### Summary by CodeRabbit

- New Feature: Updated WhatsApp logo with a new design and color scheme.
- New Feature: Added a help button in the UI linking to documentation,
enhancing user guidance.
- New Feature: Introduced an alert message indicating that the WhatsApp
integration is in beta testing.
- New Feature: Implemented a button to open WhatsApp Web directly from
the application, improving user convenience.
- Refactor: Adjusted the retrieval of `contactPhoneNumber` in
`receiveMessagePreview` function for better data structure
compatibility.
- Refactor: Optimized the initialization and management of the WhatsApp
session in `startWhatsAppPreview`.
- Refactor: Improved the `parseButtonsReply` function by refining
condition checks.
- Refactor: Enhanced the readability of serialized rich text in
`convertRichTextToWhatsAppText` by introducing newline characters.
- Bug Fix: Ensured preservation of `contact` information when resuming
the WhatsApp flow in `resumeWhatsAppFlow`.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2023-09-29 17:47:10 +02:00
cd97da2d34 🐛 (typebotLink) Fix nested typebot link pop 2023-09-29 11:23:04 +02:00
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
76f4954540 🚸 (pictureChoice) Allow dynamic picture choice with… (#865)
… string variables
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
### Summary by CodeRabbit

- Refactor: Updated `GoogleSheetsNodeContent` component to use the
`options` prop instead of `action`, and integrated the `useTypebot` hook
for better functionality.
- Style: Improved UI text and layout in `GoogleSheetsSettings.tsx`,
enhancing user experience when selecting rows.
- Refactor: Simplified rendering logic in `BlockNodeContent.tsx` by
directly calling `GoogleSheetsNodeContent` component, improving code
readability.
- Bug Fix: Enhanced `injectVariableValuesInPictureChoiceBlock` function
to handle different types of values for titles, descriptions, and
picture sources, fixing issues with variable value injection.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2023-09-28 16:39:48 +02:00
d46e8013d4 🚸 (pictureChoice) Improve single picture choice with same titles
Closes #859
2023-09-28 15:35:21 +02:00
e10a506c96 🐛 (whatsapp) Fix preview failing to start and wait timeo… 2023-09-27 18:46:53 +02:00
99b0025a66 🐛 (preview) Fix always displayed start props toast 2023-09-27 15:40:57 +02:00
56e175bda6 🐛 (pixel) Fix multiple Meta pixels tracking
Closes #846
2023-09-27 07:52:09 +02:00
a176e23cc8 🚸 Better random IDs generation in setVariable 2023-09-27 07:52:09 +02:00
1ca742fc0b (setVariable) Add "Environment name" value in Set variable block (#850)
Closes #848
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
### Summary by CodeRabbit

- New Feature: Added "Environment name" as a new value type in the
SetVariable function, allowing users to distinguish between 'web' and
'whatsapp' environments.
- Refactor: Simplified session state handling in `resumeWhatsAppFlow.ts`
for improved code clarity.
- Refactor: Updated `startWhatsAppSession.ts` to include an initial
session state with WhatsApp contact and expiry timeout, enhancing
session management.
- Bug Fix: Improved null handling in `executeSetVariable.ts` for
'Contact name' and 'Phone number', preventing potential issues with
falsy values.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2023-09-26 09:50:20 +02:00
b81fcf0167 Auto continue bot on whatsApp if starting block is input (#849)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
### Summary by CodeRabbit

**New Features:**
- Added WhatsApp integration feature to the Pro plan.

**Refactor:**
- Introduced the ability to exclude specific plans from being displayed
in the Change Plan Modal.
- Renamed the function `isProPlan` to `hasProPerks`, enhancing code
readability and maintainability.
- Updated the `EmbedButton` component to handle a new `lockTagPlan`
property and use the `modal` function instead of the `Modal` component.

**Chore:**
- Removed the `whatsAppPhoneNumberId` field from the `Typebot` model
across various files, simplifying the data structure of the model.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2023-09-25 17:20:42 +02:00
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
9e0109f561 (whatsapp) Improve whatsApp management and media collection
Closes #796
2023-09-22 11:08:41 +02:00
d7dc5fb5fb ♻️ Remove storage limit related code 2023-09-20 16:06:53 +02:00
7d57e8dd06 ♻️ Export bot-engine code into its own package 2023-09-20 15:42:34 +02:00
cbc8194f19 ♻️ Re-organize workspace folders 2023-03-15 08:35:16 +01:00
b77e2c8d2c 🔥 Remove disable response saving option
Doesn't work properly when it comes to keep tracking storage usage
2023-03-07 14:41:57 +01:00
022c5a5738 Add new Jump block
Also improve Select input with a clear button

Closes #186
2023-03-03 15:15:43 +01:00
2ff6991ca7 (buttons) Allow dynamic buttons from variable
Closes #237
2023-02-23 14:48:17 +01:00
b2d1235f1b 🚸 (bot) Show a popup when the redirect is blocked by browser
Allows us to show a link button to redirect the user anyway
2023-02-20 08:36:48 +01:00
621cd58244 (embedBubble) Enable variable embed height 2023-02-19 09:53:57 +01:00
44cb14d0cb 🐛 (bot) Still parse variables value if code fails 2023-02-16 20:02:43 +01:00
435edd03c0 💄 Add proper italic fonts in bot 2023-02-15 16:39:53 +01:00
17020c8fef 🐛 (bot) Still parse variable ID in code if has no value 2023-02-14 16:45:35 +01:00
97e2578bcc 🚸 (bot) Keep bubble content in local state for each bubble 2023-02-14 15:40:37 +01:00
51f76700b2 📦 Update cuid to cuid2 2023-02-10 15:06:02 +01:00
c386bb5a08 🐛 Fix custom CSS initialization
Initializing in its own <style> element to allow import statements
2023-02-10 08:40:54 +01:00
f936d4fae3 🐛 (chatwoot) Fix setUser with variables
Closes #300
2023-02-07 08:52:01 +01:00
4e0df33551 🐛 Fix phone input placeholder color
Closes #290
2023-02-06 08:32:18 +01:00
77df5556f4 🔥 Remove useless console logs
Closes #289
2023-02-06 08:02:35 +01:00
ae88d2cae1 Improve old engine bubbles display robustness 2023-02-03 15:39:58 +01:00
58ca1c3ad6 🐛 Fix crash when outgoing edge blockId does not exist 2023-01-31 08:52:00 +01:00
58c6efc5c8 🔥 Remove inline edit in old engine 2023-01-31 07:54:31 +01:00
201939f8a3 ⬆️ Upgrade dependencies 2023-01-28 14:42:50 +01:00
a842f57297 ♻️ Rename Code block to Script block
Closes #245
2023-01-27 15:58:05 +01:00
fa9e4b7b67 Add Wait block
Closes #142
2023-01-26 18:23:09 +01:00
14e6ee373f 🐛 (viewer) Should not import google font url if empty
Closes #271
2023-01-26 08:12:31 +01:00
30baa611e5 (engine) Improve engine overall robustness 2023-01-25 14:59:53 +01:00
04d206eab1 ⬆️ Upgrade dependencies 2023-01-21 13:24:23 +01:00
f697a5e99c 🚸 (fileUpload) Add clear and skip button labels customization 2023-01-20 08:12:59 +01:00
7311988901 (chat) Improve chat API compatibility with preview mode 2023-01-16 12:13:21 +01:00
6459fb8ec8 ⬆️ Upgrade dependencies 2023-01-14 16:53:34 +01:00
13d6679308 🐛 Fix date input label computation 2023-01-14 15:41:52 +01:00
21f1c7a17e Add Bubble and Popup in embed lib v2
Closes #214
2023-01-09 14:51:36 +01:00