Sending SMS and receiving SMS
# support
d
I am exploring the option to send SMS and receiving SMS response and use that whole conversation as context. Is this supported?
@Vapi Support Bot please help on this
v
You can send SMS using Vapi by configuring your Twilio credentials and creating a custom tool that triggers the
sendSms
function. Here’s a basic example in TypeScript for your backend:
Copy code
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)
You can send SMS using Vapi by integrating with Twilio. Here’s a quick example:
Copy code
js
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)
k
Yes, it's supported
h
Hey I am having similar problem. I am able to send an SMS but not recieve the replies to it as conversation context in a live call. Looking at a few youtube tutorials it seems that receiving SMS is supported. However, it's not working for me.
3 Views