feat(triggers): add Intercom webhook triggers#3990
Conversation
PR SummaryMedium Risk Overview Introduces an Wires these triggers into Reviewed by Cursor Bugbot for commit c26f773. Configure here. |
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Greptile SummaryThis PR adds 6 Intercom webhook triggers (
Confidence Score: 4/5PR is nearly ready to merge; one P1 finding (missing credential visibility flag) should be addressed first. The implementation is well-structured, previous review concerns have been resolved, and the provider handler logic is sound. The single remaining issue — missing
Important Files Changed
Sequence DiagramsequenceDiagram
participant IC as Intercom
participant WH as Webhook Handler
participant PR as Intercom Provider
participant EM as Event Matcher
participant WF as Workflow Engine
IC->>WH: POST /webhook (X-Hub-Signature: sha1=...)
WH->>PR: verifyAuth(rawBody, secret)
alt secret configured
PR->>PR: HMAC-SHA1 verify
PR-->>WH: null (pass) or 401
else no secret
PR-->>WH: null (skip check)
end
WH->>PR: handleReachabilityTest(body)
alt topic === 'ping'
PR-->>WH: 200 {status: ok}
WH-->>IC: 200 (no workflow)
else normal event
PR-->>WH: null
WH->>PR: matchEvent(triggerId, topic)
alt triggerId is intercom_webhook or falsy
PR-->>WH: true (accept all)
else specific trigger
PR->>EM: isIntercomEventMatch(triggerId, topic)
EM->>EM: INTERCOM_TRIGGER_TOPIC_MAP lookup
EM-->>PR: true/false
PR-->>WH: true/false
end
WH->>PR: extractIdempotencyId(body)
PR-->>WH: notification ID or null
WH->>WF: Execute workflow with body as input
WF-->>IC: 200
end
Reviews (2): Last reviewed commit: "fix(triggers): address PR review feedbac..." | Re-trigger Greptile |
|
@greptile |
|
@cursor review |
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit c26f773. Configure here.
Summary
Type of Change
Testing
Tested manually
Checklist