You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PT: Eu resolvi com uma expressão no N8N, nela identifico se o remoteJid vem com @lid, se vier, utiliza o campo remoteJidAlt, se não vier e for @whatsapp.net ele passa o nó pra frente.
EN: I solve this using an expression in N8N. In it, I identify if the remoteJid comes with @lid. If it does, I use the remoteJidAlt field; if it doesn't and is @whatsapp.net, I pass the node to the next page.
Eu resolvi com uma expressão, nela identifico se o remoteJid vem com @lid, se vier, utiliza o campo remoteJidAlt, se não vier e for @whatsapp.net ele passa o nó pra frente.
this is possible with n8n, but here the problem is with typebot, it is not possible to do it since typebot only receives this data currently
const prefilledVariables = {
remoteJid: "JID of the contact",
pushName: "Contact's name",
instanceName: "Name of the instance",
serverUrl: "API server URL",
apiKey: "Evolution API key",
ownerJid: "JID of the number connected to the instance"
};
Estou com o mesmo problema, inicialmente utilizando o o typebot as mensagens do robô não iam por conta do @lid consegui corrigir isso porém com o "Stop bot from me" marcado, quando interajo com o cliente a sessão não muda para pausada, fica aberta e o robô continua atuando, alguém passou por isso e conseguiu resolver?
I'm having the same problem. Initially, using TypeBot, the bot's messages weren't going through because of the @lid attribute. I managed to fix that, but with "Stop bot from me" checked, when I interact with the client, the session doesn't change to paused; it stays open and the bot continues to act. Has anyone else experienced this and managed to solve it?
Estou com o mesmo problema, inicialmente utilizando o o typebot as mensagens do robô não iam por conta do @lid consegui corrigir isso porém com o "Stop bot from me" marcado, quando interajo com o cliente a sessão não muda para pausada, fica aberta e o robô continua atuando, alguém passou por isso e conseguiu resolver?
I'm having the same problem. Initially, using TypeBot, the bot's messages weren't going through because of the @lid attribute. I managed to fix that, but with "Stop bot from me" checked, when I interact with the client, the session doesn't change to paused; it stays open and the bot continues to act. Has anyone else experienced this and managed to solve it?
Estou com o mesmo problema, inicialmente utilizando o o typebot as mensagens do robô não iam por conta do @lid consegui corrigir isso porém com o "Stop bot from me" marcado, quando interajo com o cliente a sessão não muda para pausada, fica aberta e o robô continua atuando, alguém passou por isso e conseguiu resolver?
I'm having the same problem. Initially, using TypeBot, the bot's messages weren't going through because of the @lid attribute. I managed to fix that, but with "Stop bot from me" checked, when I interact with the client, the session doesn't change to paused; it stays open and the bot continues to act. Has anyone else experienced this and managed to solve it?
Como você fez para resolver?
Fiz alteração no arquivo:
src/api/integrations/chatbot/base-chatbot.service.ts
no meu conteiner não tem esse arquivo, o mais perto que achei foi evolution/dist/api/integrations/chatbot
dentro dessa pasta tem varios arquivos mas nao tem esse base-chatbot.service.ts
@srvelososantos, Dependendo da sua instalação... provavelmente no diretório /evolution/dist/api/integrations/chatbot do seu container, vai ver que tem alguns arquivos, semelhantes a este da imagem anexada.
Esse arquivo não aparece no container porque o build remove o código-fonte TypeScript. O .ts original está no repositório, não dentro do dist. No container só existe o resultado compilado/minificado, que vira vários bundles .js dentro de evolution/dist/api/integrations/chatbot. O base-chatbot.service.ts é transformado e incorporado nesses bundles, então ele deixa de existir como arquivo separado.
Você até consegue editar na mão o arquivo base-chatbot.service.js que seria o .js minificado do base-chatbot.service.ts, porém, isso não é recomendado e nada prático (Mas resolve, por um tempo). Melhor solução, na minha opinião, é tratar direto na imagem e depois subir para o hub e usar ela, para se caso, precisar parar ou recriar o container não ter que ficar editando esse arquivo novamente.
@willDullius eu fiz a mesma coisa, agr o numero pode aparecer ou na variável remoteJid ou remoteJidAlt do webhook, só tratar no seu código. Comigo ta dando certo agora.
Pessoal, consegui corrigir também o problema do EvolutionAPI com TypeBot que não estava identificando o stop from me.
Quando a conversa caia no typebot ele identificava o @lid nas sessões, mas a conversa não considerava o @lid, ai mesmo um humano interagindo o robô não parava de atual.
Activity
Bonilhajvv commentedon Nov 24, 2025
I'm having this problem too
maestropsi commentedon Nov 24, 2025
Mesmo problema aqui
gustauobr commentedon Nov 25, 2025
Mesma coisa aqui!
FernandoBolzan commentedon Nov 25, 2025
PT: Eu resolvi com uma expressão no N8N, nela identifico se o remoteJid vem com @lid, se vier, utiliza o campo remoteJidAlt, se não vier e for @whatsapp.net ele passa o nó pra frente.
EN: I solve this using an expression in N8N. In it, I identify if the
remoteJidcomes with@lid. If it does, I use theremoteJidAltfield; if it doesn't and is@whatsapp.net, I pass the node to the next page.code:
{{ ( $('Webhook EVO').item.json.body.data.key.remoteJid.endsWith('@lid') ? $('Webhook EVO').item.json.body.data.key.remoteJidAlt : $('Webhook EVO').item.json.body.data.key.remoteJid ) .toString() .replace(/[\n\r\t ]+/g, '') }}Ben-Avrahami commentedon Nov 25, 2025
this is possible with n8n, but here the problem is with typebot, it is not possible to do it since typebot only receives this data currently
const prefilledVariables = {
remoteJid: "JID of the contact",
pushName: "Contact's name",
instanceName: "Name of the instance",
serverUrl: "API server URL",
apiKey: "Evolution API key",
ownerJid: "JID of the number connected to the instance"
};
raphael0627f commentedon Nov 25, 2025
Estou com o mesmo problema
marlonvinicius commentedon Nov 25, 2025
mesmo problema aqui
lucascampuus commentedon Nov 26, 2025
mesmo problema aqui
kasambr commentedon Nov 26, 2025
Mesmo problema aqui
DanielBelorini commentedon Nov 26, 2025
Também… mesmo problema aqui!
cristiandigisat-hub commentedon Nov 26, 2025
Mesmo problema.
GustavoCPrado commentedon Nov 26, 2025
Estou com o mesmo problema, inicialmente utilizando o o typebot as mensagens do robô não iam por conta do @lid consegui corrigir isso porém com o "Stop bot from me" marcado, quando interajo com o cliente a sessão não muda para pausada, fica aberta e o robô continua atuando, alguém passou por isso e conseguiu resolver?
I'm having the same problem. Initially, using TypeBot, the bot's messages weren't going through because of the @lid attribute. I managed to fix that, but with "Stop bot from me" checked, when I interact with the client, the session doesn't change to paused; it stays open and the bot continues to act. Has anyone else experienced this and managed to solve it?
cristiandigisat-hub commentedon Nov 26, 2025
Como você fez para resolver?
GustavoCPrado commentedon Nov 26, 2025
Fiz alteração no arquivo:
src/api/integrations/chatbot/base-chatbot.service.ts
ANTES:
number: remoteJid.split('@')[0]
DEPOIS:
number: remoteJid.includes('@lid') ? remoteJid : remoteJid.split('@')[0]
Com isso o typebot passou a responder normalmente.
Lembra de rebuildar e reiniciar o EvolutionAPI depois.
2 remaining items
dujobi-contato commentedon Nov 27, 2025
Same problem here
leonardomnds commentedon Nov 27, 2025
I had the same issue. I downgraded to version v2.3.4 and the problem stopped happening.
elizeufranca commentedon Nov 27, 2025
Funcionou! maravilha.
Obrigado. Tanks
Ben-Avrahami commentedon Nov 27, 2025
What happened? You received jid for everyone? What do you mean the problem stopped happening
marlonvinicius commentedon Nov 27, 2025
Obrigado @GustavoCPrado !
Aqui funcionou também!
srvelososantos commentedon Dec 2, 2025
no meu conteiner não tem esse arquivo, o mais perto que achei foi evolution/dist/api/integrations/chatbot
dentro dessa pasta tem varios arquivos mas nao tem esse base-chatbot.service.ts
DanielBelorini commentedon Dec 2, 2025
@srvelososantos, Dependendo da sua instalação... provavelmente no diretório /evolution/dist/api/integrations/chatbot do seu container, vai ver que tem alguns arquivos, semelhantes a este da imagem anexada.
Esse arquivo não aparece no container porque o build remove o código-fonte TypeScript. O .ts original está no repositório, não dentro do dist. No container só existe o resultado compilado/minificado, que vira vários bundles .js dentro de evolution/dist/api/integrations/chatbot. O base-chatbot.service.ts é transformado e incorporado nesses bundles, então ele deixa de existir como arquivo separado.
Você até consegue editar na mão o arquivo base-chatbot.service.js que seria o .js minificado do base-chatbot.service.ts, porém, isso não é recomendado e nada prático (Mas resolve, por um tempo). Melhor solução, na minha opinião, é tratar direto na imagem e depois subir para o hub e usar ela, para se caso, precisar parar ou recriar o container não ter que ficar editando esse arquivo novamente.
srvelososantos commentedon Dec 2, 2025
Eu só não entendi por onde que eu edito esse arquivo .ts, eu preciso clonar o repositório do evolution-api ?
willDullius commentedon Dec 4, 2025
Mesmo problema aqui! Quando o contato é @lid, simplesmente não identifica a resposta do cliente.
@GustavoCPrado Fiz a edição do parâmetro em todas as linhas que encontrei no base-chatbot.ts. Um exemplo ficou assim:
await new Promise((resolve) => {
setTimeout(async () => {
await instance.textMessage(
{
number: remoteJid.includes('@lid') ? remoteJid : remoteJid.split('@')[0],
delay: settings?.delayMessage || 1000,
text: message,
linkPreview,
},
false,
);
resolve();
}, delay);
});
Rebuildei a imagem, subi pro HUB e fiz um novo Deploy.
Estou esquecendo de algo?
srvelososantos commentedon Dec 4, 2025
@willDullius eu fiz a mesma coisa, agr o numero pode aparecer ou na variável remoteJid ou remoteJidAlt do webhook, só tratar no seu código. Comigo ta dando certo agora.
GustavoCPrado commentedon Dec 4, 2025
Lembrou de rebuildar e reiniciar o EvolutionAPI?
GustavoCPrado commentedon Dec 5, 2025
Pessoal, consegui corrigir também o problema do EvolutionAPI com TypeBot que não estava identificando o stop from me.
Quando a conversa caia no typebot ele identificava o @lid nas sessões, mas a conversa não considerava o @lid, ai mesmo um humano interagindo o robô não parava de atual.
Ben-Avrahami commentedon Dec 7, 2025
I saw a new version is released, with a suggested fix, hope the fix will work
GustavoCPrado commentedon Dec 8, 2025
Have you used it before?
If so, can you say if the @lid problems were resolved in Typebot?