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

Evolution Bot - Não é enviado o fromMe

Open edsonalanis opened this issue 8 months ago • 4 comments

Welcome!

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

What type of feature?

Integration

What is the motivation for the request?

Quando a opção "Ouvindo de mim" está ativado e eu respondo no meu Whatsapp, que está conectado na Evolution, a mensagem é enviada ao Webhook, porém não tenho como saber qual a origem da mensagem pois o fromMe não é enviado no body do Webhook.

Seria muito importante incluir esta informação, afim de poder identificar no meu fluxo e tomar alguma ação específica.

Usage Examples

Aqui está um exemplo de mensagem:

Log da Evolution

[Evolution API] [Demonstração-Whats1] v2.2.3 212 - Sun May 18 2025 05:43:01 LOG [ChannelStartupService] [object]
{ key: { remoteJid: '[email protected]', fromMe: true, id: '2CFAB2D53326ED1D00FAD8963C8EA217', participant: undefined }, pushName: 'Verity Labs', status: 'SERVER_ACK', message: { conversation: 'Posso ajudar', messageContextInfo: MessageContextInfo { messageSecret: [Uint8Array] } }, contextInfo: undefined, messageType: 'conversation', messageTimestamp: 1747557781, instanceId: '9f3b030d-c638-4700-8ce5-49e9585cad73', source: 'android' }

Mensagem recebida no Webhook

[ { "headers": { "host": "n8n-webhook.veritylabs.com.br", "user-agent": "axios/1.7.9", "content-length": "309", "accept": "application/json, text/plain, /", "accept-encoding": "gzip, compress, deflate, br", "content-type": "application/json", "x-forwarded-for": "172.18.0.1", "x-forwarded-host": "n8n-webhook.veritylabs.com.br", "x-forwarded-port": "443", "x-forwarded-proto": "https", "x-forwarded-server": "e2cfd6e319a3", "x-real-ip": "172.18.0.1" }, "params": {}, "query": {}, "body": { "inputs": { "sessionId": "cmatepuvn10krrv5w1crndn7h", "remoteJid": "[email protected]", "pushName": "Verity Labs", "instanceName": "Demonstração-Whats1", "serverUrl": "https://evolution.veritylabs.com.br", "apiKey": "9BD28B8516A5E8DA4DF574EA89A9E" }, "query": "Posso ajudar", "user": "[email protected]" }, "webhookUrl": "https://n8n-webhook.veritylabs.com.br/webhook/evolution-bot", "executionMode": "production" } ]

O número "555193227107" é o número do cliente, o numero conectado na Evolution é "555195508921"

How should the feature be developed?

No response

Additional Notes

No response

edsonalanis avatar May 18 '25 08:05 edsonalanis

Welcome!

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

What type of feature?

Integration

What is the motivation for the request?

Quando a opção "Ouvindo de mim" está ativado e eu respondo no meu Whatsapp, que está conectado na Evolution, a mensagem é enviada ao Webhook, porém não tenho como saber qual a origem da mensagem pois o fromMe não é enviado no body do Webhook.

Seria muito importante incluir esta informação, afim de poder identificar no meu fluxo e tomar alguma ação específica.

Usage Examples

Aqui está um exemplo de mensagem:

Log da Evolution

[Evolution API] [Demonstração-Whats1] v2.2.3 212 - Sun May 18 2025 05:43:01 LOG [ChannelStartupService] [object] { key: { remoteJid: '[email protected]', fromMe: true, id: '2CFAB2D53326ED1D00FAD8963C8EA217', participant: undefined }, pushName: 'Verity Labs', status: 'SERVER_ACK', message: { conversation: 'Posso ajudar', messageContextInfo: MessageContextInfo { messageSecret: [Uint8Array] } }, contextInfo: undefined, messageType: 'conversation', messageTimestamp: 1747557781, instanceId: '9f3b030d-c638-4700-8ce5-49e9585cad73', source: 'android' }

Mensagem recebida no Webhook

[ { "headers": { "host": "n8n-webhook.veritylabs.com.br", "user-agent": "axios/1.7.9", "content-length": "309", "accept": "application/json, text/plain, /", "accept-encoding": "gzip, compress, deflate, br", "content-type": "application/json", "x-forwarded-for": "172.18.0.1", "x-forwarded-host": "n8n-webhook.veritylabs.com.br", "x-forwarded-port": "443", "x-forwarded-proto": "https", "x-forwarded-server": "e2cfd6e319a3", "x-real-ip": "172.18.0.1" }, "params": {}, "query": {}, "body": { "inputs": { "sessionId": "cmatepuvn10krrv5w1crndn7h", "remoteJid": "[email protected]", "pushName": "Verity Labs", "instanceName": "Demonstração-Whats1", "serverUrl": "https://evolution.veritylabs.com.br", "apiKey": "9BD28B8516A5E8DA4DF574EA89A9E" }, "query": "Posso ajudar", "user": "[email protected]" }, "webhookUrl": "https://n8n-webhook.veritylabs.com.br/webhook/evolution-bot", "executionMode": "production" } ]

O número "555193227107" é o número do cliente, o numero conectado na Evolution é "555195508921"

How should the feature be developed?

No response

Additional Notes

No response

Amigo, conseguiu resolver? tambem queria pegar o fromMe da evolution para o typebot.

Leandrogri avatar May 21 '25 20:05 Leandrogri

Não, estou esperando o pessoal incluir aqui para o Evolution Bot, e para você no Typebot

edsonalanis avatar May 22 '25 11:05 edsonalanis

Não, estou esperando o pessoal incluir aqui para o Evolution Bot, e para você no Typebot

poderia me explicar melhor? já esta em desenvolvimento?

Leandrogri avatar May 22 '25 14:05 Leandrogri

Acho que não está em desenvolvimento, eu só abrir a Feature aqui, acredito que o @DavidsonGomes tem que avaliar primeiro.

edsonalanis avatar May 22 '25 14:05 edsonalanis

@DavidsonGomes chegaram a analisar a possibilidade?

edsonalanis avatar Jun 07 '25 13:06 edsonalanis