CallMeBot can now receive WhatsApp messages from you, and react accordingly based on the rules that you defined.
---- THIS IS CURRENTLY IN DEVELOPMENT ----
Come back later or follow me on Twitter to get fresh news.
You need to get the apikey form the bot before using the API:
- Add the phone number +34 698 28 89 73 into your Phone Contacts. (Name it it as you wish)
- Send this message "I allow callmebot to send me messages" to the new Contact created (using WhatsApp of course)
- Wait until you receive the message "API Activated for your phone number. Your APIKEY is 123123" from the bot. As this is still in beta testing, the activation can take up to 2 minutes.
- The WhatsApp message from the bot will contain the apikey needed to send messages using the API.
You can send text messages using the API after receiving the confirmation.
How to configure the Bot to answer to your Messagess
Before starting, please ensure that you follow the Setup process above and you have a valid apikey.
First step is to add the "queries" and respective "action" that you want the bot to perform. This means that the bot will perform the action every time that you send the query message via whatsapp. For example, you can send the message "Reboot the server" to the Bot Contact, and the Bot will call to the url: "http://youarserver.com/reboot_server.php".
How to Add a query and an action?
Just call to this API:
[phone_number]: Is your phone number asociated to your WhatsApp including the country code. (Ex: +34 123 123 123).
[your_apikey]: The apikey that you received during the activation process (step 4-5 above)
[query]: could be any string that is not already taken. For example: "Turn on the alarm".
[url]: could be any URL that you want the bot to GET (Webhook). For example: https://maker.ifttt.com/use/TkRWa2ti2AwcPwaW
The bot will acknowledge with a message to confirm that the action (GET) has been executed. If you don't get any answer after a couple of minutes from the bot, that means that the query has not been recognized.
How to Remove an existing query?
To remove a query, just call to this API:
How to List all the configured queries?
You can list all the queries asociated to your phone number using the API below:
If you have problems, like not receiving the Call on Telegram, or not receiving the WhatsApp messages, try to test the CallMeBot API using your Web Browser:
- Telegram Phone Calls using Web Browser: here
- Telegram Text Messages using Web Browsers: here
- WhatsApp Text Messages using Web Browser: here
You might get some errors on the screen that will help you to identify the problem. (Ex: Calls disabled in the Telegram Security Settings, WhatsApp not activated, etc.)
If you still have problems to use this API, don’t hesitate to contact me in Telegram @callmebot_com or by email at [email protected] Rember to Follow me on Twitter to get news about coming features, changes, invitations, etc.