Chatwoot integration: message wont create new conversation once contact is deleted
Welcome!
- [x] Yes, I have searched for similar issues on GitHub and found none.
What did you do?
Once a contact is deleted if that contact send a new wapp message the conversation wont be recreated on chatwoot acting more like a block.
If you go to evoapi instance and then to chatwoot integration and disable/enable the integration (sqs) and try to send a message again it will work
What did you expect?
When a contact is deleted the conversation should be deleted as long with contact details. a new message from the contact was to recreate the contact without details and create a new conversation
What did you observe instead of what you expected?
if the contact is deleted from chatwoot base a new message from the contact was to create a new conversation
Screenshots/Videos
No response
Which version of the API are you using?
2.3.0 evo api 4.3 cw
What is your environment?
Ubuntu/Docker
Other environment specifications
No response
If applicable, paste the log output
2025-07-14T01:27:55.817725499Z [Evolution API] v2.3.0 212 - Sun Jul 13 2025 22:27:55 ERROR [ChatwootService] [object]
2025-07-14T01:27:55.823179661Z ApiError: Conversation not found
2025-07-14T01:27:55.823210227Z at catchErrorCodes (/evolution/node_modules/@figuro/chatwoot-sdk/dist/core/request.js:226:15)
2025-07-14T01:27:55.823219434Z at /evolution/node_modules/@figuro/chatwoot-sdk/dist/core/request.js:257:17
2025-07-14T01:27:55.823227283Z at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
2025-07-14T01:27:55.823234588Z url: 'http://xxxx.online/api/v1/accounts/1/conversations/3/messages',
2025-07-14T01:27:55.823260819Z status: 404,
2025-07-14T01:27:55.823268326Z statusText: 'Not Found',
2025-07-14T01:27:55.823274006Z body: { error: 'Resource could not be found' },
2025-07-14T01:27:55.823279706Z request: {
2025-07-14T01:27:55.823285414Z method: 'POST',
2025-07-14T01:27:55.823290890Z url: '/api/v1/accounts/{account_id}/conversations/{conversation_id}/messages',
2025-07-14T01:27:55.823296725Z path: { account_id: '1', conversation_id: 3 },
2025-07-14T01:27:55.823302257Z formData: {
2025-07-14T01:27:55.823307828Z content: 'Ola',
2025-07-14T01:27:55.823313303Z message_type: 'incoming',
2025-07-14T01:27:55.823376961Z private: false,
2025-07-14T01:27:55.823387827Z source_id: 'WAID:3ABA075990F40BA92FAE',
2025-07-14T01:27:55.823393576Z content_attributes: [Object],
2025-07-14T01:27:55.823399334Z source_reply_id: null,
2025-07-14T01:27:55.823405162Z attachments: []
2025-07-14T01:27:55.823410862Z },
2025-07-14T01:27:55.823416788Z errors: { '403': 'Access denied', '404': 'Conversation not found' }
2025-07-14T01:27:55.823422467Z }
2025-07-14T01:27:55.823428126Z }
2025-07-14T01:27:55.823433727Z
Additional Notes
No response
Estou com o mesmo erro @DavidsonGomes , agora também pode deletar conversa no chatwoot e ocorre isso também, ele tenta procurar uma conversa que ja foi excluida. Talvez certo era se não encontrar, criar uma nova.
Mesmo erro aqui.
Estou com o mesmo erro.
Aqui tbm, mesmo erro apenas apaguei uma mensagem e depois disso não recebe mais, o contato continua lá.
Resolvi removendo a conversa em questão dentro do bando de dados da evoution, um novo id foi gerado e as mensagens voltaram a ser recebidas no chatwoot.
DELETE FROM "Message" WHERE "chatwootConversationId" = 27;
mesmo problema aqui, to tendo que recriar tudo do zero quando acontece
mesmo problema aqui, to tendo que recriar tudo do zero quando acontece
Não precisa, veja qual id de conversa que esta dando erro e remova dentro do banco de dados da evo.
No meu caso ali era a mensagem com id 27, só apaguei ela e tudo voltou ao normal
Alguma solução sem precisar ficar apagando no database toda vez?
Quando o @DavidsonGomes fechou pensei que tivesse sido resolvido.
Não foi resolvido, e é inviável tentar automatizar essa parte da mensagem, oq consegui fazer foi recriar a instancia ao reconectar pelo qrcode, não é o ideal, mas é oq da para fazer