Graphrt

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
Use in Graphrt Desktop

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_KEY Required
    API key (Basic auth user)
  • VONAGE_API_SECRET Required
    API secret (Basic auth password)
  • VONAGE_MESSAGES_REGION Optional
    eu, us or ap to use api-<region>.nexmo.com for Messages (default api.nexmo.com)
  • VONAGE_TOOL_ALLOW_SEND Optional
    1 lets agent tools use the send operations
  • VONAGE_TOOL_RECIPIENT_ALLOWLIST For agent sends
    Comma-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_INSIGHT Optional
    1 lets agent tools use the paid standard and advanced Number Insight levels (basic is always allowed)

How to use it

In Graphrt Desktop

  1. Open Plugins and search for Vonage.
  2. Click Install and approve it.
  3. Follow the setup steps on the plugin's page, then paste the settings it needs.
  4. Describe a job that needs it, and the builder adds the steps.
Plugins in Graphrt Desktop

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
Plugins in the docs