- Created chatwoot-agent-bot/ with Node.js webhook server - Bot detects intent (greeting, billing, technical, features, account) - Auto-responds from FAQ knowledge base or escalates to human - FAQ-KB.md: Living knowledge base that grows with customer questions - CHATWOOT-SETUP.md: Complete deployment and configuration guide - Supports Telegram notifications on escalation - Bot runs on port 3001, ready for Chatwoot webhook integration
17 lines
464 B
JavaScript
17 lines
464 B
JavaScript
import platform from '../platform/index.js';
|
|
|
|
export default platform.hasStandardBrowserEnv
|
|
? ((origin, isMSIE) => (url) => {
|
|
url = new URL(url, platform.origin);
|
|
|
|
return (
|
|
origin.protocol === url.protocol &&
|
|
origin.host === url.host &&
|
|
(isMSIE || origin.port === url.port)
|
|
);
|
|
})(
|
|
new URL(platform.origin),
|
|
platform.navigator && /(msie|trident)/i.test(platform.navigator.userAgent)
|
|
)
|
|
: () => true;
|