chatwoot/lib/integrations/slack
Muhsin Keloth f7bbd40816
fix(slack): Sync bot interactive responses (#14076)
When a customer responds to a bot's interactive prompt (input_select,
input_csat, form, input_email) from the widget, the response shows up in
the Chatwoot agent UI but is not reflected in the linked Slack channel —
Slack only ever shows the original question. This happens because the
widget submits the answer as an UPDATE to the original message (writing
`content_attributes.submitted_values` or `submitted_email`), but the
Slack hook only listened to `message.created`, so updates were ignored.

Closes https://linear.app/chatwoot/issue/PLA-147

### Preview

<img width="1290" height="1106" alt="CleanShot 2026-04-21 at 13 19
19@2x"
src="https://github.com/user-attachments/assets/cd2a9d3f-89d3-4e81-9230-5b078e1b7b44"
/>

### How to test

  1. Connect a web widget inbox to a Slack channel.
2. Trigger each bot message type (input_select, form, input_csat,
input_email) in a conversation.
  3. Submit responses from the widget.
4. Verify each response now appears in the Slack thread, appended to the
original bot question.

---------

Co-authored-by: Muhsin <12408980+muhsin-k@users.noreply.github.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-04-28 10:29:03 +04:00
..
channel_builder.rb fix: Optimize Slack channel fetching to avoid rate limiting issues (#12542) 2025-09-29 14:41:48 +05:30
hook_builder.rb feat: move Slack config to installation settings (#11548) 2025-05-23 01:07:35 -07:00
incoming_message_builder.rb chore: Handle duplicate Webhooks from slack (#9187) 2024-04-04 17:00:45 +05:30
link_unfurl_formatter.rb feat: Slack link unfurling (#7940) 2023-09-29 19:35:56 +05:30
send_on_slack_service.rb fix(slack): handle archived channel errors in SendOnSlackJob (#13520) 2026-02-11 17:05:44 -08:00
slack_link_unfurl_service.rb feat: Slack link unfurling (#7940) 2023-09-29 19:35:56 +05:30
slack_message_helper.rb fix(slack): Show correct sender name and avatar for Slack replies (#13624) 2026-02-26 16:15:15 +05:30
update_slack_message_service.rb fix(slack): Sync bot interactive responses (#14076) 2026-04-28 10:29:03 +04:00