Automate with
Twilio
Twilio gives you programmatic control over SMS, voice, and WhatsApp. NVS uses it as the outbound channel for time-sensitive alerts, appointment reminders, and two-way conversational workflows.
Use Cases
Inbound texts are analyzed for sentiment and urgency. Frustrated or urgent messages get escalated to a human via Slack; standard queries get an AI-generated reply with conversation memory.
Trigger
Inbound SMS
twilio.webhook
Twilio fires when a text message is received by your number.
Load History
postgresql.query
Conversation history for this phone number fetched from PostgreSQL.
Analyze Message
openai.gpt-4o
GPT-4o reads the message and history, scoring sentiment and urgency.
IF
Urgent or Frustrated?
nvs.condition
High urgency or negative sentiment routes to a human agent immediately.
YES
Alert #support
slack.message
Slack alert to support team: 'Urgent SMS from {{phone}} — needs human'.
Output
Send Holding SMS
twilio.sms
Auto-reply sent: 'Connecting you to a human agent — standby'.
NO
Generate Reply
openai.gpt-4o
AI reply generated using the full conversation context from memory.
Save to History
postgresql.insert
Message and AI reply appended to conversation history in PostgreSQL.
Output
Send Reply
twilio.sms
AI-generated reply sent back to the customer via Twilio.
Every morning, tomorrow's appointments are pulled from Sheets and processed one by one. Contacts with a phone number get an SMS; those without automatically fall back to an email reminder.
Trigger
Daily 8am
schedule.cron
Morning trigger pulls all appointments scheduled for the following day.
Get Tomorrow's Appts
google.sheets
Appointments fetched from Sheets where date=tomorrow.
Loop
Each Appointment
nvs.loop
Processes every appointment row, sending a reminder to each contact.
IF
Phone Number Present?
nvs.condition
Determines whether SMS or email is the right delivery channel.
YES
Format SMS
nvs.set
Personalized reminder formatted: 'Hi {{name}}, your appointment is tomorrow at {{time}}'.
Output
Send SMS
twilio.sms
SMS reminder delivered via Twilio to the contact's number.
NO
Output
Send Email
gmail.send
Email reminder sent as fallback when no phone number is available.
Every 10 minutes a critical URL is checked. If the site returns anything other than 200, an SMS is sent to the on-call admin and the outage is logged instantly, without human monitoring.
Trigger
Every 10 Min
schedule.cron
Frequent trigger keeps a tight check on uptime.
Check URL
http.request
HTTP GET fired at the monitored URL; status code and response time captured.
IF
Status 200?
nvs.condition
Evaluates whether the site returned a healthy HTTP response.
YES
Output
No Action
nvs.end
Site is healthy. Workflow ends silently.
NO
Send SMS Alert
twilio.sms
Admin receives: 'ALERT: {{url}} is DOWN — status {{code}}'.
Output
Log Outage
google.sheets
Outage logged to Sheets: url, status_code, timestamp, duration.