Assistant not receiving text messages when I send ...
# support
h
I was testing out the new SMS feature and when I send a text to the number I don't receive any responses. Is there something I need to configure in Vapi? Something to do with the incoming text message webhook?
v
To fix your SMS issue, check your server URL configuration in the Vapi Dashboard: 1. Go to Phone Numbers in your Vapi Dashboard 2. Select your phone number 3. Set the Server URL to your endpoint (e.g.,
https://your-domain.com/assistant-request
) This server URL acts as a webhook that receives incoming text messages and allows your assistant to process them. Source: - [Configuring a Server URL for Incoming Requests](https://discord.com/channels/1211482211119796234/1341224148667600976)
k
You'll need to configure a Server URL to handle incoming text webhooks and respond appropriately through your server.
h
got you but how can I get the assistant to be able to read these messages? you know
k
Set your server URL in Org Settings, build a webhook to handle incoming incoming message payloads, and respond with a proper JSON message to be sent back as the assistant’s reply.
h
And this is what the new sms feature is?
I feel like we’re talking aboht 2 different things s
k
The new SMS feature lets your assistant send and receive texts, and to use it, you need a webhook that handles and replies to incoming SMS messages..
h
Yh I get that but what I’m trying to say is with a webhook that handles this how on earth will the main assistant on the call be able to receive these texts. Say for example with the agent asks can you text me your email? How on earth will the main assistant get access to that email? It won’t.
That’s the part I don’t get how I would accomplish
@User
s
@Hugo The SMS feature is designed to work within the context of an active voice call, allowing an assistant to request and receive information via SMS during the call. It's not currently implemented as a standalone SMS chat interface where a user can start texting without an active call and receive automated responses.
1\. During an active call: - When the user (Hugo) sends an SMS to the VAPI phone number - The message is received by the Twilio webhook at
/twilio/sms
- VAPI's method identifies the active call by matching: - The phone number the SMS was sent to (VAPI number) - The phone number the SMS was sent from (Hugo's number) 2\. Message delivery: - When the active call is found, the SMS is published to a Redis channel specific to that call: 3\. Integration with conversation: - The SMS is automatically injected into the conversation as a user message - The assistant receives it as part of the conversation context - The message appears with metadata indicating it's an SMS: { role: 'user', content: message.body, metadata: { type: 'sms', source: message.from, } } you can send the first SMS without any special configuration, as long as there's an active call between him and the VAPI number. The assistant would immediately have access to the content of that SMS and could respond accordingly during the same call.
6 Views