Vishnu Narayanan
cc47ccaa2c
feat(ee): Add SLA management UI ( #8777 )
...
Co-authored-by: Sivin Varghese <64252451+iamsivin@users.noreply.github.com >
Co-authored-by: Muhsin Keloth <muhsinkeramam@gmail.com >
Co-authored-by: Pranav <pranav@chatwoot.com >
2024-02-20 23:03:22 -08:00
Vishnu Narayanan
23230e0143
feat: sla-7 ensure applied_sla uniqueness ( #8938 )
...
* feat: refactor fetching sla in action service
* chore: modify spec
* chore: ensure applied_sla uniqueness
* chore: review fixes
* feat: add unique index on applied_sla
* chore: fix spec
* chore: add new specs to improve coverage
* chore: improve spec
* Update spec/enterprise/services/enterprise/action_service_spec.rb
---------
Co-authored-by: Sojan Jose <sojan@pepalo.com >
2024-02-20 21:59:49 +05:30
Vishnu Narayanan
f92cea144c
feat(perf): sla-9 improve perf of TriggerSlasForAccountsJob ( #8953 )
...
* feat: improve perf of TriggerSlasForAccountsJob
2024-02-20 21:54:37 +05:30
Nithin David Thomas
721a2f5052
feat: API changes to support multi step user signup ( #8933 )
...
-API Changes to support the new onboarding flow
Co-authored-by: Sojan <sojan@pepalo.com >
2024-02-20 16:48:51 +05:30
Shivam Mishra
657843960c
feat: account onboarding with clearbit ( #8857 )
...
* feat: add clearbit lookup
* chore: fix typo in .env.example
* refactor: split lookup to reduce cognitive complexity
* feat: add more fields to lookup
* feat: extend accounts controller
* feat: save extra data to custom_attributes
* feat: allow v2 update with custom_attributes
* feat: add update route
* refactor: reduce complexity
* feat: move update to v1 controller
* test: add locale test
* feat: remove update from routes
* test: update API for custom attributes
* test: all custom attributes
* fix: v2 tests
* test: enterprise accounts controller
* fix: clearbit payload
* fix: with modified env
* feat: allow custom attributes updates to profile
* refactor: reduce complexity
* feat: allow clearbit api key in installation config
* refactor: move clearbit to internal
* feat: allow clearbit
* chore: add display_title for June
* feat: allow more internal options
* refactor: use globalconfig to fetch clearbit token
* test: move response body to a factory
* refactor: update ops
* chore: remove clearbit from .env.example
* chore: apply suggestions from code review
Co-authored-by: sojan-official <sojan@chatwoot.com >
---------
Co-authored-by: sojan-official <sojan@chatwoot.com >
2024-02-12 23:21:42 +05:30
Vishnu Narayanan
c1d07a5471
feat: Add sidekiq jobs to monitor applied SLAs ( #8828 )
...
Fixes: https://linear.app/chatwoot/issue/CW-2983/sidekiq-jobservice-to-monitor-sla-breach
Co-authored-by: Sojan <sojan@pepalo.com >
2024-02-07 21:44:56 +04:00
Sojan Jose
1b753720c1
chore: Move Enterprise pricing validation to on create ( #8856 )
...
* chore: Move Pricing validation to on create
The previous validation was getting triggered on all transactions,
this would prevent login to existing users and session data need to be updated.
Opting for a less intrusive approach.
* chore: minore change
2024-02-05 19:18:29 +05:30
Vishnu Narayanan
b8047f0912
feat: sla-2 add automation backend support for SLA ( #8775 )
...
* feat: add automation support for SLA
* feat: add sla action in automtion UI
* chore: revert frontend changes
* chore: refactor to ee namespace
* chore: refactor automation rule to ee namespace
* feat: create applied_sla table entry
* chore: add applied_sla spec
* chore: rubocop fixes
---------
Co-authored-by: Sojan <sojan@pepalo.com >
2024-02-01 15:42:12 +05:30
Sojan Jose
390cd756e8
chore: Reorganize the installation config settings ( #8794 )
...
- Reorganizing installation config settings to move more configurations into UI from environment variables
- Changes to installation config to support premium plans in the enterprise edition
- Fixes the broken premium indicator in account/show and accounts/edit page
2024-01-31 16:48:42 +04:00
Sojan Jose
0805f362d3
chore: Validation for purchased pricing_plan_quantity ( #8809 )
...
- Add validations based on purchased pricing_plan_quantity
- Modify the Dashboard to support the new error message
2024-01-30 11:26:07 +04:00
Sojan Jose
648c4caca1
chore: Move EE OpenAI spec to correct folder ( #8805 )
...
- We previously had this spec inside the enterprise folder which wouldn't be picked up by our build process, so moving to the correct folder instead.
Co-authored-by: Shivam Mishra <scm.mymail@gmail.com >
2024-01-29 20:09:17 +04:00
Vishnu Narayanan
232369cd5c
feat: sla 1 - refactor sla_policies model and add applied_sla model ( #8602 )
...
* feat: add models
* chore: refactor sla column names
* chore: remove foreign keys
* chore: fix spec
* chore: refactor models
2024-01-23 23:48:02 +05:30
Sojan Jose
316cf35795
chore: Add display manifest to whitelabel settings ( #8708 )
...
- Adds display manifest to white label settings
- Improve the app config rendering with options for display name and description
2024-01-16 09:50:23 +04:00
Vishnu Narayanan
d731c972ad
fix: skip auditlogs for whatsapp template sync ( #8579 )
...
Skips audit logs for whatsapp_template sync
Fixes: https://linear.app/chatwoot/issue/CW-2641/skip-whatsapp-template-updates-from-audit-logs
2024-01-09 21:51:48 -08:00
Sojan Jose
5845881b08
chore: Handle stripe events without plan data ( #8668 )
...
`plan` isn't a guaranteed object in stripe `customer.subscription.updated` events. It can be null for cases like `send_invoice` for `past_due` event as seen in the payload shown in sentry error.
fixes: https://linear.app/chatwoot/issue/CW-2925/nomethoderror-undefined-method-[]-for-nilnilclass-nomethoderror
2024-01-09 14:48:07 -08:00
Sojan Jose
046ce68a45
chore: Improve Openai json rendering ( #8666 )
...
We have been observing JSON parsing errors for responses from GPT. Switching to the gpt-4-1106-preview model along with using response_format has significantly improved the responses from OpenAI, hence making the switch in code.
ref: https://openai.com/blog/new-models-and-developer-products-announced-at-devday
fixes: #CW-2931
2024-01-08 17:02:25 -08:00
Sojan Jose
1f4cb0e1ca
chore: add config for Darkmode logo for whitelabeling ( #8597 )
...
- Add config for dark mode logo
2024-01-04 15:30:55 -08:00
Sojan Jose
0b2f539ad0
chore: Update self-hosted billing redirect ( #8580 )
2023-12-18 16:34:47 -08:00
Sojan Jose
34675da6fa
feat: Settings screen for custom branding ( #8543 )
...
- Ability to configure Chatwoot custom branding from UI when using paid plans
Co-authored-by: Nithin David Thomas <1277421+nithindavid@users.noreply.github.com >
2023-12-13 13:16:24 -08:00
Nithin David Thomas
f002870c6a
feat: Super admin design improvements ( #8517 )
...
- Revamp the super admin design
- Introduce a new settings page for support and billing settings
- Move the access tokens into users, agent bots and platform app show pages
Co-authored-by: Sojan <sojan@pepalo.com >
Co-authored-by: Pranav Raj S <pranav@chatwoot.com >
2023-12-08 19:40:35 -08:00
Pranav Raj S
90649e72bb
fix: Add a .present? check for sentiment file path to avoid false positives ( #8401 )
2023-11-22 10:35:51 -08:00
Sojan Jose
7380f0e7ce
chore: Making OpenAI label suggestions optional ( #8374 )
...
Co-authored-by: Pranav Raj S <pranav@chatwoot.com >
2023-11-17 19:54:15 -08:00
Sojan Jose
7b09b02737
chore: Fix trigger message for response Bot ( #8322 )
...
- Fix the bug where wrong messages was used to search response sources
2023-11-08 17:02:48 -08:00
Sojan Jose
e54c8a857d
chore: Debug ChatGpt response ( #8316 )
...
- Add loggers to debug ChatGPT requests and responses
2023-11-07 20:07:29 -08:00
Sojan Jose
a3d008da06
chore: Ensure null validation for private attribute in messages ( #8085 )
2023-10-11 13:16:59 +05:30
Sojan Jose
72ba429159
fix: Show sources in bot response only if documents are present ( #8055 )
...
- show sources section in bot only based on appropriate conditions
2023-10-05 00:11:01 -07:00
Sojan Jose
6f19546c3c
feat: Add article messages along with bot responses ( #7993 )
...
ref: https://linear.app/chatwoot/issue/CW-2464/bot-should-also-return-links-to-the-information
2023-10-04 15:40:59 -07:00
Sojan Jose
826d9ec5a7
chore: Refactor Response Bot Data Schema ( #8011 )
...
This PR refactors the schema we introduced in #7518 based on the feedback from production tests. Here is the change log
- Decouple Inbox association to a new table inbox_response_sources -> this lets us share the same response source between multiple inboxes
- Add a status field to responses. This ensures that, by default, responses are created in pending status. You can do quality assurance before making them active. In future, this status can be leveraged by the bot to auto-generate response questions from conversations which require a handoff
- Add response_source association to responses and remove hard dependency from response_documents. This lets users write free-form question answers based on conversations, which doesn't necessarily need a response source.
2023-10-01 19:31:38 -07:00
Sojan Jose
f7f04f788e
feat: Add an option to view the generated articles by Robin AI ( #7995 )
...
Co-authored-by: Pranav Raj S <pranav@chatwoot.com >
2023-09-27 18:16:36 +05:30
Sojan Jose
647161121e
chore: pass to agent if there is error parsing json ( #7990 )
...
- GPT bot should pass the conversation to the agent if AI returns invalid json or any other error
2023-09-26 21:05:21 -07:00
Sojan Jose
6e13d22ff7
chore: Updated prompt for Article Bot ( #7872 )
2023-09-08 11:11:07 +05:30
Vishnu Narayanan
7b8a3fcae0
feat: auditlog for team and inbox member updates ( #7516 )
...
- adds an audit log when an agent is added or removed from a team
- adds an audit log when an agent is added or removed from an inbox
Co-authored-by: Sojan Jose <sojan@pepalo.com >
2023-08-15 19:55:19 -07:00
Pranav Raj S
ebefb2e201
fix: Consider the emails where in-reply-to header has multiple values ( #7715 )
...
- Return the first message id for now to avoid the errors and subsequently missing the message.
- Use .last instead of .first to avoid expensive query.
- Fix array response in response bot.
Fixes: https://linear.app/chatwoot/issue/CW-2358/activerecordstatementinvalid-pgdatatypemismatch-error-argument-of-and
2023-08-11 17:53:57 -07:00
Pranav Raj S
6f09f20991
feat: Update bot typing indicator based on the conversation status ( #7714 )
...
- Show the indicator if the last message is incoming and the conversation is in pending status.
- Remove list of articles displayed in the bot response.
2023-08-11 16:41:01 -07:00
Muhsin Keloth
c1c3a62412
fix: Improve reply prompt ( #7588 )
...
Co-authored-by: Sojan Jose <sojan@chatwoot.com >
2023-08-09 10:25:37 +05:30
Sojan Jose
4c75bb68f4
chore: Fix OpenAI sentry errors ( #7687 )
...
- add check for nil condition
- add logs for openAI
2023-08-07 14:08:26 -07:00
Vishnu Narayanan
9636478c2a
chore: Improve logging for ip look up and audit logs [CW-2145] ( #7512 )
...
Co-authored-by: Sojan Jose <sojan@pepalo.com >
2023-07-27 16:48:30 +05:30
Tejaswini Chile
c00855fce4
fix: Skip sentiment analysis for blank text ( #7580 )
...
Co-authored-by: Sojan Jose <sojan@pepalo.com >
2023-07-27 12:11:48 +05:30
Shivam Mishra
f8ae6cd95c
fix: no method error when conversation is nil ( #7566 )
2023-07-26 17:40:41 +05:30
Sojan Jose
56d0b220f4
chore: Fix response associations for inbox ( #7582 )
...
- Fix the bug in inbox associations that crept up in previous PR
2023-07-21 20:47:41 +03:00
Sojan Jose
480f34803b
feat: Response Bot using GPT and Webpage Sources ( #7518 )
...
This commit introduces the ability to associate response sources to an inbox, allowing external webpages to be parsed by Chatwoot. The parsed data is converted into embeddings for use with GPT models when managing customer queries.
The implementation relies on the `pgvector` extension for PostgreSQL. Database migrations related to this feature are handled separately by `Features::ResponseBotService`. A future update will integrate these migrations into the default rails migrations, once compatibility with Postgres extensions across all self-hosted installation options is confirmed.
Additionally, a new GitHub action has been added to the CI pipeline to ensure the execution of specs related to this feature.
2023-07-21 18:11:51 +03:00
Vishnu Narayanan
4828071fc3
feat: add audit trail for channel updates ( #7396 )
2023-07-21 12:08:19 +05:30
Shivam Mishra
a3d21024a6
feat: add message condition ( #7495 )
2023-07-21 10:20:53 +05:30
Vishnu Narayanan
ea825d49da
feat: add auditlogs for account model ( #7511 )
2023-07-19 23:52:34 +05:30
Tejaswini Chile
f3f665cabb
fix: Sentiment analysis queue update ( #7552 )
2023-07-19 20:27:20 +05:30
Tejaswini Chile
5b480f563d
feat: Sentiment model download and upload to vendor ( #7526 )
2023-07-18 12:17:50 +05:30
Pranav Raj S
7e415fbee3
fix: Disable predictions if model is absent ( #7520 )
2023-07-13 14:40:16 -07:00
Muhsin Keloth
19ff738211
feat: Add more options for AI reply suggestions ( #7493 )
2023-07-13 10:26:25 +05:30
Shivam Mishra
918e1f25c2
feat: Improve summary prompt ( #7510 )
...
Co-authored-by: Pranav Raj S <pranav@chatwoot.com >
2023-07-12 13:09:19 -07:00
Tejaswini Chile
10dd0ba647
feat: Sentiment Analysis ( #7475 )
2023-07-12 15:03:31 +05:30