Skip to main content

WhatsApp

Send and receive WhatsApp messages via the unofficial multi-device protocol. Use at your own risk — Meta may suspend accounts that rely on unofficial automation.

WhatsApp Logo

Authentication

This connector uses Token-based authentication.

info

Set up your connection in the Abstra Console before using it in your workflows.

How to use

Using the Smart Chat

Execute the action "CHOOSE_ONE_ACTION_BELOW" from my connector "YOUR_CONNECTOR_NAME" using the params "PARAMS_HERE".

Using the Web Editor

from abstra.connectors import run_connection_action

result = run_connection_action(
connection_name="your_connection_name",
action_name="your_action_name",
params={
"param1": "value1",
"param2": "value2"
})

Available Actions

This connector provides 9 actions:

ActionPurposeParameters
send_textSend a plain text WhatsApp message to a phone number or JID.to (string) required
message (string) required
replyToId (string)
send_imageSend an image to a phone number or JID. URL must be publicly reachable.to (string) required
url (string) required
caption (string)
send_documentSend a document PDF, spreadsheet, etc. to a phone number or JID.to (string) required
url (string) required
filename (string) required
caption (string)
send_audioSend an audio message. Pass voice=true to send as a voice note PTT.to (string) required
url (string) required
voice (boolean)
mark_as_readMark incoming messages as read shows the double-blue-check in sender's app.chatJid (string) required
messageIds (array) required
create_groupCreate a new WhatsApp group with an initial participant list.name (string) required
participants (array) required
add_to_groupAdd participants to an existing group. Requires the bot to be a group admin.groupJid (string) required
participants (array) required
remove_from_groupRemove participants from a group. Requires admin rights.groupJid (string) required
participants (array) required
send_to_groupSend a text message to a group by JID.groupJid (string) required
message (string) required

Webhook Events

This connector emits 4 events back to your workflow via the connection's webhook callback. Subscribe to them by attaching a workflow trigger to the connection.

EventDescription
new_messageIncoming WhatsApp message text, image, document, or audio.
message_statusStatus update for a previously sent message delivered, read, failed.
connection_statusConnection lifecycle change connected, reconnecting, logged_out, banned.
group_participants_changedGroup membership changed add, remove, promote, demote.