Sojan Jose
273c277d47
feat: Add conversation delete feature ( #11677 )
...
<img width="1240" alt="Screenshot 2025-06-05 at 12 39 04 AM"
src="https://github.com/user-attachments/assets/0071cd23-38c3-4638-946e-f1fbd11ec845 "
/>
## Changes
Give the admins an option to delete conversation via the context menu
- enable conversation deletion in routes and controller
- expose delete API on conversations
- add delete option in conversation context menu and integrate with card
and list
- implement store action and mutation for delete
- update i18n with new strings
fixes: https://github.com/chatwoot/chatwoot/issues/947
---------
Co-authored-by: iamsivin <iamsivin@gmail.com >
Co-authored-by: Sivin Varghese <64252451+iamsivin@users.noreply.github.com >
Co-authored-by: Pranav <pranavrajs@gmail.com >
2025-06-05 15:53:17 -05:00
Pranav
27430752b5
feat: Allow agent bots to update custom attributes in accessible conversations ( #11447 )
...
Previously, agent bots weren’t allowed to edit custom attributes in
conversations. But with AI, it’s now more feasible to return accurate
and useful attributes. Since there’s no strong reason to block this,
this PR enables bots to update custom attributes.
Fixes https://github.com/chatwoot/chatwoot/issues/11378
2025-05-08 20:11:02 -07:00
Pranav
f78f278e2f
fix: Update validations for filter service ( #8239 )
...
- Refactor filter service for better readability and maintenance
- Add validations for the following:
- If an invalid attribute is passed, a custom exception InvalidAttribute will be thrown.
- If an invalid operator is passed, a custom exception InvalidOperator will be thrown.
- If an invalid value (currently checking only null check), a custom exception InvalidValue will be thrown.
Fixes: https://linear.app/chatwoot/issue/CW-2702/activerecordstatementinvalid-pginvalidtextrepresentation-error-invalid
Fixes: https://linear.app/chatwoot/issue/CW-2703/activerecordstatementinvalid-pginvaliddatetimeformat-error-invalid
Fixes: https://linear.app/chatwoot/issue/CW-2700/activerecordstatementinvalid-pgsyntaxerror-error-syntax-error-at-or
Co-authored-by: Sojan <sojan@pepalo.com >
2024-03-20 16:29:36 +05:30
Sojan Jose
3dae3ff3ad
feat: Conversation update API for sla_policy_id ( #8973 )
...
- Add an endpoint for updating conversation attributes (priority / sla_policy_id )
- Swagger spec
- minor chores around the conversation API/spec
Fixes: https://linear.app/chatwoot/issue/CW-2100/feat-backend-api-to-update-the-sla-of-a-conversation
2024-03-14 17:22:32 +05:30
giquieu
227d99934e
feat: Agent bot cant assign conversations to teams ( #8015 )
...
Implemented so that the API can process priority and agent/team changes per Agent Bot.
Fixes: #7474
Co-authored-by: Sojan Jose <sojan@pepalo.com >
2024-02-12 15:51:22 +05:30
Shivam Mishra
56fbbe92b4
feat: trigger handoff when agent bot is the actor ( #8639 )
...
- This PR adds a feature to auto-trigger handoff events when an Agent bot toggles a conversation status from Pending to Open
Co-authored-by: Sojan <sojan@pepalo.com >
2024-01-05 15:26:52 -08:00
Vishnu Narayanan
ae52ca87aa
fix: Handle empty status in conversation controller ( #8091 )
...
Fixes CW-2644
2023-10-12 17:11:04 +05:30
Sojan Jose
e3b8c1fbb5
fix: Include waiting on agent conversations to unattended view ( #7667 )
...
Updating the `unattended` tab to include conversations where the customer responded and is awaiting an agent's response.
Previously it showed only the conversations where the first response was pending.
Co-authored-by: Pranav Raj S <pranav@chatwoot.com >
2023-08-15 15:09:10 -07:00
Muhsin Keloth
6eb4fa41ff
feat: Add sender details and message create date in the attachment API ( #7308 )
2023-06-14 17:29:13 +05:30
Sojan Jose
117d5301b4
chore: API documentation updates for CSAT surveys ( #7255 )
...
- Expose conversation uuid in APIs
- swagger documentation for cast survey update via public/message/update endpoints
- swagger documentation for survey/responses/conversation_uuid endpoint
Fixes : #6328
2023-06-05 21:14:01 +05:30
Sojan Jose
3a7633b564
feat: API to create HMAC verified conversations ( #7209 )
...
Fixes : #6744
2023-05-29 21:57:24 +05:30
Sojan Jose
7ab7bac6bf
chore: Enable the new Rubocop rules ( #7122 )
...
fixes: https://linear.app/chatwoot/issue/CW-1574/renable-the-disabled-rubocop-rules
2023-05-19 14:37:10 +05:30
Muhsin Keloth
2c3160cfee
feat: API to list all attachments for a conversation ( #7059 )
...
Fixes: https://linear.app/chatwoot/issue/CW-1678/api-to-list-all-attachments-for-a-conversation
2023-05-12 15:48:06 +05:30
Shivam Mishra
a34729c153
feat: add activity message for priority change ( #6933 )
...
* feat: add priority const
* feat: add toggle priority method
* feat: update controller route and specs
* refactor: status change method
* refactor: abstract label change and mute activity
* feat: add priority change_activity
* fix: interpolation for previous_changes
* refactor: reduce cognitive complexity of priority_change_activity
* refactor: move priority activity message handler to a separate module
* refactor: move typing logic to a service
* refactor: tests to reduce complexity
* fix: typo
* fix: constants
* fix: priority conditions
* fix: add a response
* fix: argument destructuring in I18n.t
---------
Co-authored-by: Muhsin Keloth <muhsinkeramam@gmail.com >
2023-04-20 16:41:53 +05:30
Vishnu Narayanan
930863b25b
fix: sentry CHATWOOT-37A ActiveRecord::RecordNotUnique ( #6496 )
...
* fix: sentry CHATWOOT-37A #6457
* chore: add spec
---------
Co-authored-by: Sojan Jose <sojan@pepalo.com >
2023-02-21 09:34:51 +05:30
Nithin David Thomas
85b52a1d3f
feat: Add a view for unattended conversations ( #5890 )
...
Co-authored-by: Pranav Raj S <pranav@chatwoot.com >
2022-11-29 08:18:00 -08:00
Sojan Jose
b05d06a28a
feat: Ability to lock to single conversation ( #5881 )
...
Adds the ability to lock conversation to a single thread for Whatsapp and Sms Inboxes when using outbound messages.
demo: https://www.loom.com/share/c9e1e563c8914837a4139dfdd2503fef
fixes : #4975
Co-authored-by: Nithin David <1277421+nithindavid@users.noreply.github.com >
2022-11-25 13:01:04 +03:00
Sojan Jose
606fc9046a
feat: Allow users to mark a conversation as unread ( #5924 )
...
Allow users to mark conversations as unread.
Loom video: https://www.loom.com/share/ab70552d3c9c48b685da7dfa64be8bb3
fixes : #5552
Co-authored-by: Pranav Raj S <pranav@chatwoot.com >
2022-11-24 10:55:45 +03:00
Sojan Jose
2ecb2ca0f0
feat: Enable Capacity Config UI ( #5164 )
...
- Enables Capacity Config in UI
- Rewrite auto assignment Logic to consider only online agents
fixes : #4990
2022-08-16 16:58:23 +05:30
Sojan Jose
4187428729
chore: Update dependencies to the latest versions ( #5033 )
2022-07-15 09:51:59 +07:00
Aswin Dev P.S
59969cc553
chore: Update conversations API to include unattended conversations. ( #4708 )
...
* Update conversations API to include unattended conversations.
2022-05-22 00:38:41 -07:00
Muhsin Keloth
4ae9ed8f94
chore: Assign the conversation to agent who opens the conversation ( #3925 )
2022-02-08 16:39:19 +05:30
Tejaswini Chile
372bd75028
feat: Add filter APIs for Contacts and Conversations ( #3264 )
2021-11-01 12:27:04 +04:00
Hugo Sarti
68fa694268
fix: Disable typing indicator for user when agent is typing a private note ( #3303 )
2021-11-01 12:20:07 +04:00
Tejaswini Chile
658a511b88
feat: Conversation and contact endpoint ( #3198 )
2021-10-20 18:14:56 +05:30
Tejaswini Chile
6998e9aa2d
fix: Update email message_id parsing order ( #3073 )
...
Co-authored-by: Pranav Raj S <pranav@chatwoot.com >
2021-10-12 20:46:00 +05:30
Aswin Dev P.S
a35269d275
chore: Create conversation API should accept assignee & team ( #3166 )
2021-10-11 15:17:30 +05:30
Tejaswini Chile
54bdb2957f
feat: Add assignee last seen to conversations ( #3069 )
...
- Adds assignee last seen attribute to conversations
2021-09-23 20:59:10 +05:30
Muhsin Keloth
0c24df96a8
chore: Conversation custom attribute APIs ( #3024 )
2021-09-22 10:46:48 +05:30
Sojan Jose
d955d8e7dc
feat: Ability to snooze conversations ( #2682 )
...
Co-authored-by: Pranav Raj S <pranav@chatwoot.com >
2021-07-23 15:24:07 +05:30
Sojan Jose
a7ca55c080
chore: Change the conversation bot status to pending ( #2677 )
...
fixes : #2649
2021-07-21 22:02:43 +05:30
Sojan Jose
217dd8a6f0
chore: Add assigned_count to conversation APIs ( #2665 )
2021-07-19 19:10:58 +05:30
Sojan Jose
534acfbf96
chore: Ensure privilege validations for API endpoints ( #2224 )
...
Co-authored-by: Pranav Raj S <pranav@chatwoot.com >
2021-06-11 11:44:31 +05:30
Sojan Jose
1bf7227843
chore: Fix emails being sent with the wrong translations ( #2236 )
...
Co-authored-by: Pranav Raj S <pranav@chatwoot.com >
2021-06-08 22:45:01 +05:30
Sojan Jose
9e56565a30
chore: Add status param in conversation APIs ( #2394 )
...
Co-authored-by: Pranav Raj S <pranav@chatwoot.com >
2021-06-07 20:04:31 +05:30
Sojan Jose
45e43b0b89
feat: Contactable Inboxes API ( #2101 )
...
- Add endpoint which lists inboxes through which a contact can be contacted
- Conversation creation API auto-creates contact_inbox for specific channels [ Twilio, email, api]
- Ability to send the initial message payload along with the conversation creation
- Fixes #1678 ( issue saving additional attributes for conversation )
2021-04-15 15:13:01 +05:30
Sojan Jose
5d5e75ce9c
Chore: Fix Deserialisation Error in Jobs ( #1683 )
...
- Ignore Jobs on de-serialization error
- Show empty conversations in chat UI
Fixes : #1480
2021-01-31 13:05:07 +05:30
Sojan Jose
7884090551
chore: Enable updating conversation additional attributes ( #1611 )
...
- Enable updating additional attributes via conversation API
- Handle the case when additional_attributes is nil
Fixes : #1357
2021-01-07 13:47:38 +05:30
Pranav Raj S
7718cf7d2c
feat: Add global message search ( #1385 )
...
* feat: Search messages by content
* Fix search UI
* Add specs
* chore: Filter search results
* Update highlight logic
* Rename query to searchTerm
Co-authored-by: Sojan <sojan@pepalo.com >
2020-11-08 01:46:45 +05:30
Dmitriy Shcherbakan
ecebe163e1
feat: Ability to unmute muted conversations ( #1319 )
2020-10-08 12:02:08 +05:30
Sojan Jose
532331edb6
feat: Ability to search conversation with message content ( #1265 )
...
- API end point which takes message content as search parameter
- end point supports additional filtering with labels and inbox ids
- swagger doc
2020-09-23 15:27:41 +05:30
Sojan Jose
22880df429
Feature: Send chat transcript via email ( #1152 )
...
Co-authored-by: Pranav Raj Sreepuram <pranavrajs@gmail.com >
2020-08-17 11:25:13 +05:30
Pranav Raj S
3b23aa7913
Bugfix: Use server timestamp to set agent_last_seen_at ( #1114 )
2020-08-03 13:40:20 +05:30
Pranav Raj S
40481f6462
Bugfix: Update conversation counters in realtime ( #944 )
...
* Bug: Update conversation counters in realtime
2020-06-09 16:26:33 +05:30
Sojan Jose
dafabac796
Chore: Minor bugfixes and housekeeping tasks ( #896 )
2020-06-02 23:50:39 +05:30
Abdulkadir Poyraz
b1aab228ae
Feature: Ability to mute contacts ( #891 )
...
fixes : #867
2020-05-26 17:43:59 +05:30
Sojan Jose
dc6398ab56
Feature: Api to toggle typing status on a conversation ( #807 )
...
- api to toggle typing status on a conversation
- clients receive webhook events on the same
Addresses: #718 , #719 , #775
2020-05-03 12:17:27 +05:30
Sojan Jose
db6e3fb43e
Chore: API to get conversations count ( #808 )
...
Addresses: #497
2020-05-03 12:15:10 +05:30
Sojan Jose
a5b1e2b650
Feature: Access tokens for API access ( #604 )
...
Co-authored-by: Pranav Raj Sreepuram <pranavrajs@gmail.com >
2020-03-11 00:02:15 +05:30
Sojan Jose
19ab0fe108
Chore: Scope URLs with account_id ( #601 )
...
* Chore: Enable Users to create multiple accounts
Addresses: #402
- migrations to split roles and other attributes from users table
- make changes in code to accommodate this change
Co-authored-by: Pranav Raj Sreepuram <pranavrajs@gmail.com >
2020-03-09 23:27:10 +05:30