I’m releasing today a free pack that allows you to send and receive WhatsApp messages, photos and files from a Coda Doc.
It’s a free pack but it uses a brazilian API that is not free. You can send message for less then a penny. It’s great news for frugal guys like me.
You can try the API for free for 15 days. All you need is a phone with WhatsApp installed and to click on “Teste Grátis” in their website. https://api.chatpro.com.br/
Setup is not complicated but it’s in portuguese. Google translate can be of help.
In order to receive message you need setup a webhook automation and, unfortunately, use Zapier , make.com or create a Google script app (I’m trying to get it to work and I need some help here) .
The reason is that you need to authenticate the Chatpro webhooks with a Coda token before sending them to Coda.
The source code is available for anyone who wants to see it
I have never used n8n, so I couldn’t say.
I’m trying to get google script to work because it’s free. The best case scenario is that chatpro adds support to authenticated webhooks. I’ve just asked them that.
Meanwhile, if someone could help with my google script, I’d appreciate. It captures webhooks from Chatpro, it authenticates them and it sends them to coda.io
function doPost(e) {
// Log the incoming request object
Logger.log(JSON.stringify(e));
// Send the POST request to Coda.io
var webhookURL = "https://coda.io/apis/v1/docs/c9jb1RDjpc/hooks/automation/grid-auto-NyUO6F****" ;
var codaOptions = {
'method': 'post',
'headers': {"Authorization": 'Bearer 3b0b9f5b-f0c1-4b96-9ee0-1dbe671d0****'},
'Content-Type': 'application/json',
'payload': JSON.stringify(e),
};
var codaResponse = UrlFetchApp.fetch(webhookURL, codaOptions);
Logger.log(codaResponse.getContentText());
}