evolution-api icon indicating copy to clipboard operation
evolution-api copied to clipboard

Anuncios do Facebook Ads direto para o whatsapp alguns não ativam webhook n8n

Open schimaia1 opened this issue 1 year ago • 19 comments

Welcome!

  • [x] Yes, I have searched for similar issues on GitHub and found none.

What did you do?

A alguns dias comecei a ter problema com clientes que rodam tráfego no facebook / Instagram com objetivo de mesangem de whatsapp, a cada 10 leads que chegam pelo menos 3 não chega webhook no n8n. No whatsapp aparece normal mas não encontro erro no log da Evolution e nem ativa o webhook.

Estou na versão 2.3.0 da Evolution e n8n na versão 1.98.2

Mais alguém com este problema?

What did you expect?

Alguem com solução?

What did you observe instead of what you expected?

Não chega webook e não encontro erro no log

Screenshots/Videos

No response

Which version of the API are you using?

2.3.0

What is your environment?

Docker

Other environment specifications

No response

If applicable, paste the log output

No response

Additional Notes

No response

schimaia1 avatar Jun 26 '25 00:06 schimaia1

Estou com o mesmo problema!

jvamancio avatar Jun 27 '25 13:06 jvamancio

Mesmo problema aqui. Mesmo fazendo GET na API pra retornar as conversas/mensagens, não aparece

negociartech avatar Jun 27 '25 14:06 negociartech

Exatamente. Para os clientes que precisam do tráfego pago é algo crítico.

jvamancio avatar Jun 27 '25 14:06 jvamancio

Ninguém conseguiu debugar isso ainda?

negociartech avatar Jun 30 '25 11:06 negociartech

Estou testando uma solução paliativa que é monitorar os erros no log da Evolution, capturar o remotejid e a instância no erro e gerar um json para o webhook. Se der certo volto e explico exatamente como fiz.

schimaia1 avatar Jun 30 '25 18:06 schimaia1

It only happens to me when the person comes from an advertising campaign.

Since this morning, when a person arrives through an ad, for some reason N8N receives 3 requests, 2 of which mark errors and one as non-error in a body.data.status variable. This causes the flow to execute 3 times, that is, there is only one message, but it seems that Evolution Api sends 3 requests (2 errors and 1 non-error). I had to enter N8N and validate that if the status is ERROR, I should not continue with the automation. The strange thing is that this only happened today; before that, everything was working correctly.

Scenario 1: request1: status ERROR request2: status DELIVERY_ACK

Scenario 2: request1: status ERROR request2: status ERROR request3: status DELIVERY_ACK

Scenario 3: request1: status ERROR request2: status ERROR request3: status ERROR

I currently have these three scenarios written for the number of requests. For each request, it executes the n8n, doing the same thing. In other words, in the last scenario, it executes it up to three times.

I had to validate a stop so it wouldn't execute when the error status was reached. But, as you can see, the last scenario gave three errors, and the flow never executed because I validated the status.

Image

Image

The same ad request is sent twice in a row, separated by seconds. It's as if EvolutionApi is configured to send another request if there's an error.

Image

As I mentioned before, I place that error variable in another variable where I validate that if it is equal to ERROR, the flow does not continue, but what causes this is that for example in scenario 3 where there were 3 requests and all gave ERROR status, it does not execute the flow which the automation for that number never does. Image

Image

LeninZapata avatar Jul 03 '25 17:07 LeninZapata

Passando por isso tambem, pior é o webhook nem ser ativado. Perdendo os dados

marcolinoffls avatar Jul 10 '25 15:07 marcolinoffls

Alguém conseguiu solucionar?

rocketagenciaseo avatar Jul 16 '25 02:07 rocketagenciaseo

Passando por isso tambem, pior é o webhook nem ser ativado. Perdendo os dados

After a few hours, it was completely resolved, but it was a crazy process and caused me a lot of stress because I was losing money. Anyway, I'm waiting for the latest version of EVO-API to be uploaded to Docker, since it's not yet available, and I can't update it in EasyPanel.

LeninZapata avatar Jul 16 '25 02:07 LeninZapata

Passando por isso tambem, pior é o webhook nem ser ativado. Perdendo os dados

After a few hours, it was completely resolved, but it was a crazy process and caused me a lot of stress because I was losing money. Anyway, I'm waiting for the latest version of EVO-API to be uploaded to Docker, since it's not yet available, and I can't update it in EasyPanel.

How did you solved

pess0a avatar Jul 16 '25 17:07 pess0a

Passando por isso tambem, pior é o webhook nem ser ativado. Perdendo os dados

After a few hours, it was completely resolved, but it was a crazy process and caused me a lot of stress because I was losing money. Anyway, I'm waiting for the latest version of EVO-API to be uploaded to Docker, since it's not yet available, and I can't update it in EasyPanel.

Can you explain how do you fix this?

marcolinoffls avatar Jul 16 '25 20:07 marcolinoffls

Mesmo problema aqui. E quando chega a requisição e é lead oriundo do Instagram Ads, não vem com o sourceId.

Kaique-Grigoletto avatar Jul 22 '25 15:07 Kaique-Grigoletto

Mesmo problema aqui.

brvt avatar Jul 24 '25 13:07 brvt

Estou com o mesmo problema. Na 2.0 homolog não tinha isso.

pontedigital1 avatar Aug 12 '25 01:08 pontedigital1

Alterei para a versão 2.0.0-homolog e aparentemente resolveu. Quem for utilizar essa versão tem que configurar o SESSION_PHONE_VERSION

pontedigital1 avatar Aug 12 '25 01:08 pontedigital1

como corrigiu o problema ? estou passando por isso nem aparece a mensagem no evolution, apenas no aparelho

fabiotgk avatar Oct 13 '25 18:10 fabiotgk

conseguiram resolver?

gsulzbacher avatar Mar 02 '26 23:03 gsulzbacher

For ads, it's best to forget about unofficial APIs; they'll always give you problems. I just migrated to the official WhatsApp API and have been able to scale sales without any issues.

LeninZapata avatar Mar 03 '26 00:03 LeninZapata

aqui o que resolveu aparentemente foi usar a versão 2.3.4 do evolution, estou testando para ver se vai continuar funcionando. Se estiverem com problemas de não gerar o qrcode na versão 2.3.4, tentem mudar a whatsapp_version dentro da env

https://wppconnect.io/pt-BR/whatsapp-versions/

gsulzbacher avatar Mar 03 '26 16:03 gsulzbacher