Graphrt

Twilio

Send SMS/MMS and WhatsApp (paid), list and read messages and calls, outbound calls (node only), free and paid Lookup v2, balance, agent sends need an opt-in and an E.164 recipient allowlist

Beta v0.1.0 Node.js 13 actions ToS risk low
Use in Graphrt Desktop

About

A Graphrt plugin for the Twilio REST API: send SMS, MMS and WhatsApp messages, read message and call logs, place outbound calls (node only), validate numbers with Lookup v2 and check the account balance.

What it can do

  • Messages: send_sms (SMS/MMS), send_whatsapp (free-form or a Content template), list_messages, get_message, delete_message (node only)
  • Calls: list_calls, get_call, create_call (node only: TwiML URL, inline TwiML or a TwiML App)
  • Lookup v2: lookup_phone_number (free validation and formatting), lookup_phone_number_data (paid data packages: line type, caller name, SIM swap, call forwarding, line status, reassigned number, SMS pumping risk)
  • Account: get_balance
  • api_request: any other resource under /2010-04-01/Accounts/{AccountSid} (e.g. /Recordings.json, GET only for agents)

Actions

Each action is a step you can add to a workflow. Agents can also use most of them as tools.

  • Lookup number twilio.lookup_phone_number
  • Lookup number data twilio.lookup_phone_number_data
  • Account balance twilio.get_balance
  • Send SMS twilio.send_sms
  • Send WhatsApp twilio.send_whatsapp
  • List messages twilio.list_messages
  • Get message twilio.get_message
  • Delete message twilio.delete_message
  • List calls twilio.list_calls
  • Get call twilio.get_call
Show all 12 actions
  • Create call twilio.create_call
  • Twilio REST API (2010-04-01 account resources) request twilio.api_request

Settings

Graphrt starts plugins with a clean environment. Only these values reach the plugin, and secrets stay out of logs.

  • TWILIO_ACCOUNT_SID Required
    Account SID (AC + 32 hex characters), Basic auth user and part of every path
  • TWILIO_AUTH_TOKEN Required
    Auth token (Basic auth password)
  • TWILIO_TOOL_ALLOW_SEND Optional
    1 lets agent tools use send_sms and send_whatsapp
  • TWILIO_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
  • TWILIO_TOOL_ALLOW_LOOKUP Optional
    1 lets agent tools use the paid lookup_phone_number_data

How to use it

In Graphrt Desktop

  1. Open Plugins and search for Twilio.
  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 twilio
workflow.yaml
- id: sms
  type: twilio.send_sms
  to: "+6281234567890"
  from: "+15005550006"
  body: "Your order {{#start.order_id#}} has shipped"
- id: whatsapp
  type: twilio.send_whatsapp
  to: "+6281234567890"
  from: "+14155238886"
  content_sid: HXb5b62575e6e4ff6129ad7c8efe1f983e
  content_variables: '{"1":"12/1","2":"3pm"}'
- id: status
  type: twilio.get_message
  message_sid: "{{#sms.data.sid#}}"
Plugins in the docs