Skip to content

feat: react to lead message with ✅/❌ for visible triage outcome - #7

Merged
panchgonzalez merged 3 commits into
mainfrom
claude/issue-6-20260514-1658
May 14, 2026
Merged

feat: react to lead message with ✅/❌ for visible triage outcome#7
panchgonzalez merged 3 commits into
mainfrom
claude/issue-6-20260514-1658

Conversation

@panchgonzalez

Copy link
Copy Markdown
Member

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.

  • New react_to_lead_message helper in processor.py, called after chat_postMessage in post_to_slack when a thread_ts is present.
  • Failures are logged and swallowed; already_reacted is treated as benign.
  • Honors DRY_RUN.
  • Adds reactions:write scope to slack-app-manifest.yml and documents it in ARCHITECTURE.md.

Test plan

  • Re-install Slack app (or manually add reactions:write scope).
  • Trigger a promising lead → verify ✅ appears on the original message and thread reply still posts.
  • Trigger an ignored lead → verify ❌ appears on the original message and thread reply still posts.
  • Verify DRY_RUN=true logs but does not call the API.

🤖 Generated with Claude Code

github-actions Bot and others added 3 commits May 14, 2026 17:00
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>
@panchgonzalez
panchgonzalez merged commit da6c76b into main May 14, 2026
@panchgonzalez
panchgonzalez deleted the claude/issue-6-20260514-1658 branch May 14, 2026 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add emoji reaction when agent responds to ignore a message

1 participant