chatwoot / chatwoot/docs

doc: Document data model Integration::Hooks

Open
#245 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
MDX
Stars
89
Forks
178
PR merge metrics
No merged PRs in 30d

Description

there are two types of hooks ..
account hooks -> inbox id should be nil .. works across the account (for example webhooks, slack etc )
inbox hooks -> inbox id is present, work in inbox scope, multiple ones can be present ( example Dialogflow )

https://github.com/chatwoot/chatwoot/blob/baf697f064bfdd8c691d1c2ee84fff8f8130a699/app/listeners/hook_listener.rb#L22

the particular line of code is to skip the case where we are checking for an inbox hook, but the message event that was triggered doesn't belong to that inbox.
in the case of Dialogflow, the inbox id should be empty for the hook. hence that line of code shouldn't come into effect since hook.inbox = nil

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.