diff --git a/src/api/integrations/chatbot/chatwoot/services/chatwoot.service.ts b/src/api/integrations/chatbot/chatwoot/services/chatwoot.service.ts index 8f5e8f2a..b52f6ced 100644 --- a/src/api/integrations/chatbot/chatwoot/services/chatwoot.service.ts +++ b/src/api/integrations/chatbot/chatwoot/services/chatwoot.service.ts @@ -890,7 +890,7 @@ export class ChatwootService { sourceId?: string, quotedMsg?: MessageModel, ) { - if (sourceId) { + if (sourceId && this.isImportHistoryAvailable()) { const messageAlreadySaved = await chatwootImport.getExistingSourceIds([sourceId]); if (messageAlreadySaved.size > 0) { this.logger.warn('Message already saved on chatwoot');