Issue with sending confirmation messages via Gmail

Hello,

I’m facing an issue when trying to send confirmation messages via Gmail and I need guidance to resolve it.

Currently, I’m capturing leads through a bot, and my intention is to send a confirmation email to each lead. I’ve installed a Webhook and connected it to the Gmail step. When I manually enter an email address, the message triggers correctly. However, when using a custom field for the email address, I encounter an error stating “Recipient address required.”

I would greatly appreciate any guidance or suggestions on how to address this issue in the best possible way.

Looking forward to your feedback.

Can you provide us som more details of the data you receive in the Webhook? And also the set-up of the Gmail Piece. It seems like the mapping of the email field to the custom piece is not set-up correctly.

If you have some screenshots that would be amazing. Feel free to block any personal/security data.

Kr Bram

Thank you for your response. Attached is the PDF outlining the steps I’m taking and the error it’s throwing.

{“response”:{“status”:400,“body”:{“error”:{“code”:400,“message”:“Recipient address required”,“errors”:[{“message”:“Recipient address required”,“domain”:“global”,“reason”:“invalidArgument”}],“status”:“INVALID_ARGUMENT”}}},“request”:{“body”:{“raw”:“Q29udGVudC1UeXBlOiB0ZXh0L3BsYWluOyBjaGFyc2V0PXV0Zi04DQpGcm9tOiAiaGlAbW9ua2VpYS5jb20iIDxtb25rZWlhLjEwQGdtYWlsLmNvbT4NClN1YmplY3Q6DQogPT9VVEYtOD9CP3dxRkRiMjUyWlhKelpXMXZjeUJoYm5SbGN5QmtaU0J1ZFdWemRISmhJSEpsZFc1cHc3TnVJU0R3bjVPeDhKK1FrZz09Pz0NCk1lc3NhZ2UtSUQ6IDwxODgyMTMwNi04NjNhLTVhNWYtMzE3NC05MTYxZTIxZTVhNTBAZ21haWwuY29tPg0KQ29udGVudC1UcmFuc2Zlci1FbmNvZGluZzogcXVvdGVkLXByaW50YWJsZQ0KRGF0ZTogU3VuLCAyNCBNYXIgMjAyNCAxNDo0OToyNCArMDAwMA0KTUlNRS1WZXJzaW9uOiAxLjANCg0KPUVGPUJCPUJGSG9sYSBFeGFtcGxlIHZhbHVlIGZvciBuYW1lID1GMD05Rj05MT04Qj0yMApFc3Blcm8gcXVlIGVzdD1DMz1BOXMgdGVuaWVu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dHUgZGlzcG9zaWNpPUMzPUIzbiBwYXJhIGN1YWxxdWllciBjb25zdWx0YSBxdWUgPQ0KdGVuZ2FzLCB5IGVzcGVybyBjb24gaW50ZXI9QzM9QTlzIHBvZGVyIGhhYmxhciBjb250aWdvIHByb250by4KCj1DMj1BMUdyYWNpYXMgcG9yIHR1IHRpZW1wbyB5IGNvbnNpZGVyYWNpPUMzPUIzbiEKCkF0ZW50YW1lbnRlLAoKSlAgQ2FtcmVubwpDRU8sIE1vbmtlaWEgPUYwPTlGPTkwPTkyDQo=”}}}

These are the data received by the Webhook.

{“body”:{“data”:[{“name”:“Example value for name”,“email”:“Example value for email”,“phone”:“Example value for phone”,“¿Has implementado previamente la automatización de procesos en tu negocio mediante el uso de Chatbots?”:“Example value for ¿Has implementado previamente la automatización de procesos en tu negocio mediante el uso de Chatbots?”,“¿Qué tipo de negocio diriges y en qué áreas estás interesado en implementar soluciones de automatización? “:“Example value for ¿Qué tipo de negocio diriges y en qué áreas estás interesado en implementar soluciones de automatización? “,”¿Estás preparado para dar el paso hacia la implementación, o aún te encuentras evaluando diversas opciones de automatización?”:“Example value for ¿Estás preparado para dar el paso hacia la implementación, o aún te encuentras evaluando diversas opciones de automatización?”,”¿Dispones de un presupuesto específico para la incorporación de un bot que contribuya al mejoramiento y optimización de tu negocio?”:“Example value for ¿Dispones de un presupuesto específico para la incorporación de un bot que contribuya al mejoramiento y optimización de tu negocio?”}],“uuid”:“1eo209-1dj9182djeje-998u219”,“bot_name”:“Example Bot”},“method”:“POST”,“headers”:{“host”:“cloud.activepieces.com”,“accept”:“/”,“cf-ray”:“86926bc108cf6ff7-IAD”,“baggage”:“sentry-environment=production,sentry-public_key=34f14580c44a76b031e0efc859be830e,sentry-trace_id=cfc944c9fb3c4aa5a5802a5b690798bb,sentry-sample_rate=1,sentry-transaction=POST%20%2Fapi%2Fbot%2Fwebhook%2Ftest,sentry-sampled=true”,“cdn-loop”:“cloudflare”,“x-real-ip”:“172.70.174.197”,“cf-visitor”:“{"scheme":"https"}”,“connection”:“Upgrade”,“user-agent”:“undici”,“cf-ipcountry”:“US”,“content-type”:“application/json”,“sentry-trace”:“cfc944c9fb3c4aa5a5802a5b690798bb-be9800a223e83b53-1”,“content-length”:“1232”,“sec-fetch-mode”:“cors”,“accept-encoding”:“gzip, br”,“accept-language”:“*”,“x-forwarded-for”:“172.70.174.197”,“cf-connecting-ip”:“2600:1f18:666e:e000:ca21:f3f5:86f9:3e1e”,“x-forwarded-host”:“cloud.activepieces.com”,“x-forwarded-port”:“443”,“x-forwarded-proto”:“https”,“x-forwarded-server”:“f196bceeac2c”},“queryParams”:{}}

mmm it looks like the mapping is correct but the value of the email now states: “Example value for email”. This should be an emailadres to make it work I think.

So first step I would do for testing, is to remove the mapped email part. And manually enter an emailadres to make sure the GMAIL piece works. After that put back the mapping and try the Webhook with an email value and test it again.

Please let me know how that works.

KR

Bram

Thank you for your response. I just tested it out. If I manually input the email address, all the logic runs smoothly. However, when using the email field provided by the Webhook, I encounter the same error I showed you earlier.

Yes I understand that but that is because the field you are referring to in the Webhook holds the wrong value. The value should be an e-mailadres and not the text which it holds now.

This “ Example value for email” should be an e-mailadres something like email@domain.com

I understand perfectly. I’ve contacted Botsheets, where I created the bot, so they can look into it from their end. Thank you very much for your support.

You are welcome! Probably you only ran a test from botsheets and then they send test data like this.

Let me know if you got it fixed!

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.