dl_amit
05/14/2025, 4:45 PMdl_amit
05/14/2025, 4:46 PMVapi Support Bot
05/14/2025, 4:47 PMsendSms
function. Here’s a basic example in TypeScript for your backend:
typescript
import { Twilio } from 'twilio';
const client = new Twilio(twilioAccountSid, twilioAuthToken);
client.messages.create({
body: 'Your message here',
from: 'Your_Twilio_Number',
to: 'Recipient_Phone_Number'
});
Vapi also sends conversation context to your endpoint, so you can use the whole conversation as context in your processing flow. There is no information available about receiving SMS or using SMS conversation history as context in Vapi.
Sources:
- [Discord: How to send SMS using Vapi](https://discord.com/channels/1211482211119796234/1333245023319494707)
- [Vapi documentation: Using conversation as context](https://docs.vapi.ai/customization/custom-llm/using-your-server)Vapi Support Bot
05/14/2025, 4:47 PMjs
sendSms({
phoneNumber: "+1234567890", // Customer's phone number
message: "Hello from Vapi!"
});
Note: Receiving SMS responses and using the full SMS conversation as context are not currently supported by Vapi.
[More info](https://discord.com/channels/1211482211119796234/1333245023319494707)
Source:
- [Vapi Discord documentation](https://discord.com/channels/1211482211119796234/1333245023319494707)Kings_big💫
05/14/2025, 7:17 PMHarshit Sharma
08/27/2025, 4:35 PM