feat: react to lead message with ✅/❌ for visible triage outcome - #7
Merged
Conversation
Add an emoji reaction to the original HubSpot message after the thread reply posts — ✅ when promising/acted on, ❌ when ignored — so channel readers see the outcome without opening the thread. Failures are logged and swallowed: the thread reply is the primary signal and the reaction is additive. `already_reacted` is treated as benign (e.g., reprocessed events). Requires the new `reactions:write` scope, added to the manifest and architecture docs. Closes #6 Co-authored-by: Francisco González <panchgonzalez@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #6.
Summary
When the triage agent posts a thread reply, it now also reacts to the original HubSpot message with ✅ (promising) or ❌ (ignored) so the outcome is visible in the channel without opening the thread.
react_to_lead_messagehelper inprocessor.py, called afterchat_postMessageinpost_to_slackwhen athread_tsis present.already_reactedis treated as benign.DRY_RUN.reactions:writescope toslack-app-manifest.ymland documents it inARCHITECTURE.md.Test plan
reactions:writescope).DRY_RUN=truelogs but does not call the API.🤖 Generated with Claude Code