Omnichannel inbox connecting WhatsApp, Instagram, and website widget
Chatwoot is the routing and threading layer for all patient-facing communication. Inbound messages from WhatsApp, Instagram DM, and the website widget land here first, are assigned to the Oshun inbox, and forwarded to Karen AI via webhook for processing.
chat.irievybz.ai (account 3) for operator use.+1 876 676 6297 connected via the WhatsApp Business API channel in Chatwoot.Required environment variables:
CHATWOOT_BASE_URL — API base (e.g. https://app.chatwoot.com)CHATWOOT_API_TOKEN — user access token for API callsCHATWOOT_WEBHOOK_SECRET — used to verify inbound webhook payloadsCHATWOOT_ACCOUNT_ID — account ID (156369)Chatwoot is the message routing layer for these patient journeys:
src/webhooks/chatwoot.js — Registers the Chatwoot webhook route and Cal.com webhook route. Entry: registerChatwootRoutes(). Responds 200 immediately, processes asynchronously.src/webhooks/chatwoot_actions.js — Dispatches actions triggered by Chatwoot events. Key exports: executeWidgetAction() (website widget requests), executeChatwootAction() (WhatsApp/IG events).src/webhooks/utils.js — Shared webhook utilities. Key export: replyToChatwoot() — sends Karen's response back as a Chatwoot message via the API.