Vonage
SMS and WhatsApp text, image, templates and custom messages (paid), Number Insight (paid levels opt-in for agents) and balance, agent sends need an opt-in and an exact-number E.164 recipient allowlist
Beta v0.1.0 Node.js 7 actions ToS risk low
About
A Graphrt plugin for Vonage: send SMS and WhatsApp messages through the Messages API v1, look up numbers with Number Insight and read the account balance.
What it can do
- SMS: send_sms (text, TTL, encoding)
- WhatsApp: send_whatsapp_text, send_whatsapp_image (inside the 24-hour customer care window), send_whatsapp_template (approved templates, any time), send_whatsapp_custom (any WhatsApp message object: media/interactive templates, buttons, lists, to, from and recipient_type inside custom are refused)
- Number Insight: number_insight (basic, standard or advanced)
- Account: get_balance
Actions
Each action is a step you can add to a workflow. Agents can also use most of them as tools.
- Number Insight
vonage.number_insight - Account balance
vonage.get_balance - Send SMS
vonage.send_sms - Send WhatsApp text
vonage.send_whatsapp_text - Send WhatsApp image
vonage.send_whatsapp_image - Send WhatsApp template
vonage.send_whatsapp_template - Send WhatsApp custom
vonage.send_whatsapp_custom
Settings
Graphrt starts plugins with a clean environment. Only these values reach the plugin, and secrets stay out of logs.
-
VONAGE_API_KEYRequiredAPI key (Basic auth user) -
VONAGE_API_SECRETRequiredAPI secret (Basic auth password) -
VONAGE_MESSAGES_REGIONOptionaleu, us or ap to use api-<region>.nexmo.com for Messages (default api.nexmo.com) -
VONAGE_TOOL_ALLOW_SENDOptional1 lets agent tools use the send operations -
VONAGE_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). +1*, +62* and other broad prefixes are refused -
VONAGE_TOOL_ALLOW_INSIGHTOptional1 lets agent tools use the paid standard and advanced Number Insight levels (basic is always allowed)
How to use it
In Graphrt Desktop
- Open Plugins and search for Vonage.
- 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 vonage workflow.yaml
- id: sms
type: vonage.send_sms
to: "+6281234567890"
from: AcmeShop
text: "Your code is {{#start.code#}}"
client_ref: "order-{{#start.order_id#}}"
- id: template
type: vonage.send_whatsapp_template
to: "+6281234567890"
from: "+14157386102"
template_name: order_update
template_parameters: ["Ada", "A-1001"]
locale: id