Wablas
Send text, images, documents and videos to one number, message reports, cancel, device info, agent sends need an opt-in and an E.164 recipient allowlist
Experimental v0.1.0 Node.js 8 actions ToS risk high
About
A Graphrt plugin for Wablas, an Indonesian WhatsApp gateway that sends from your WhatsApp number linked to a Wablas device (API docs, every server hosts the same docs): send text, images, documents and videos, read message reports, cancel pending messages and read the device status and quota.
What it can do
- Sending (v2 API): send_message, send_image, send_document, send_video (one number per call, media by public URL, optional ref_id, send_video needs a caption)
- Reports: list_message_reports (filter by phone, ref_id, status, date or message id, page-based next_cursor)
- Messages: cancel_message (pending only), resend_message (node only)
- Device: get_device_info (name, sender number, connected/disconnected, quota, expiry)
Actions
Each action is a step you can add to a workflow. Agents can also use most of them as tools.
- Device info
wablas.get_device_info - Message reports
wablas.list_message_reports - Send message
wablas.send_message - Send image
wablas.send_image - Send document
wablas.send_document - Send video
wablas.send_video - Cancel message
wablas.cancel_message - Resend message
wablas.resend_message
Settings
Graphrt starts plugins with a clean environment. Only these values reach the plugin, and secrets stay out of logs.
-
WABLAS_DOMAINRequiredYour Wablas server host, e.g. pati.wablas.com, jkt.wablas.com, solo.wablas.com (an https:// URL is accepted), must end in .wablas.com -
WABLAS_TOKENRequiredDevice token -
WABLAS_SECRET_KEYYes for current accountsSecret key, requests send Authorization: <token>.<secret_key> (only the token when unset) -
WABLAS_TOOL_ALLOW_SENDOptional1 lets agent tools use the send operations and cancel_message -
WABLAS_TOOL_RECIPIENT_ALLOWLISTFor agent sendsComma-separated recipients agent tools may send to: full E.164 numbers, matched exactly (+6281234567890), or prefixes with a trailing and at least 4 digits (+62812). +62* and other broad prefixes are refused
How to use it
In Graphrt Desktop
- Open Plugins and search for Wablas.
- Click Install and approve it.
- Follow the setup steps on the plugin's page, then paste the settings it needs.
- Describe a job that needs it, and the builder adds the steps.
With the CLI
terminal
$ graphrt plugin install wablas --yes workflow.yaml
- id: send
type: wablas.send_message
phone: "+6281234567890"
message: "Pesanan {{#start.order_id#}} sudah dikirim"
ref_id: "order-{{#start.order_id#}}"
- id: report
type: wablas.list_message_reports
ref_id: "order-{{#start.order_id#}}"