Send messages on Signal / Messenger / WhatsApp (Callmebot)

Hello everyone,

Currently, it is only possible to send messages on Telegram and that’s a shame.

For my part, I use Signal in addition to Message (on Iphone). And I am going to propose a way to send messages via the scenes on Signal.

First, we will go through an external service (potentially they collect all your messages, it shouldn’t be too « sensitive »). This service « callmebot » => Free API to Send Signal Messaging - CallMeBot API

The idea is simple, I will show you for Signal.

(For Messenger and WhatsApp, same protocol, just change the tutorial on the callmebot.com site

On Signal

Retrieving the API key on Signal

We open Signal and send a message:

I allow callmebot to send me messages

The number to which you need to send the message is: +34603212597

The bot sends you a message containing an API key:
The APIKey created for you is: XXXXX

Sending messages via scenes on Gladys

For this, make your scene, in the actions to be performed you have this:

You create a new action and then configure it like this:

The URL is composed as follows:
https://api.callmebot.com/signal/send.php?phone=+336XXXXXXXX&apikey=XXXXX&text=Ceci+est+un+test

Testing the scene


We execute the scene and the bot sends us a message directly on Signal.

Writing a message

To write a message, it is clear that the format is particular:
&text=Voici+un+message

To be able to make more « complicated » messages, you can go through this site for example: https://www.urlencoder.org/

To make it simple, we will « encode » a sentence so that it is compatible with an http request.

We can see that the message has been « transformed » with a lot of %. It’s normal, it will be read correctly.

Here is the result:

Attention!

  • The callmebot service receives all SMS in plain text, no security on this side so send non-sensitive information
  • Do not share your API key, especially not on the forum, you can be spammed. In particular on this forum do not share the key (blur the images if necessary)

Enjoy :slight_smile:

Super tutorial @damalgos! :slight_smile:

Too bad Signal doesn’t have an API like Telegram to have native bots

Thanks for the tutorial. I also wanted to use Signal but when I looked into it and realized there was no API to create bots, I didn’t pursue it further because it’s a real hassle.

I think the service you mentioned must use real phone lines to automate the creation of Signal accounts, which are linked to phone numbers.

However, for Signal, they could create an API with paid tiers to allow them to be more easily profitable!

Thank you :slight_smile: :sparkles:

Yes, the service uses real phone lines to be able to correspond. However, it is quite possible to do it yourself. Host a site that receives SMS and can forward them. There are surely partners who do this.

Potentially an idea for development on the gladys side.

But we can also imagine an app that pushes notifications? Whether it’s gladys as a PWA or an app to install that just receives notifications from gladys?