How to store caller phone number and send a text m...
# support
l
Hi guys, I'm using Vapi with Make.com to automate appointment scheduling. My Vapi assistant currently asks for the caller's number, but how can I store this number as a variable and then use Make.com to send a booking link to that number? Could you provide more detailed instructions for how I can create a Vapi function that captures and stores the caller's phone number? Thanks in advance!
v
message has been deleted
@luisz2k Hello! I'm glad to hear you're using Vapi with Make.com for your appointment scheduling automation. To capture and store the caller's phone number, you can create a Vapi function that will be triggered during the call. Here's a step-by-step guide on how to set this up: 1. Capture the Caller's Number: - Within your Vapi voice application, you'll need to create a function that is triggered after the caller provides their number. - This function should extract the caller's response and store it in a variable. 2. Store the Number: - Once you have the caller's number, you can store it in a context variable within the Vapi application or send it to an external database or service where it can be accessed later. 3. Integrate with Make.com: - To send the booking link to the stored number, you'll need to set up an automation in Make.com. - Create a scenario in Make.com that is triggered by the event of receiving a new phone number from your Vapi application. - Use the appropriate Make.com modules to send an SMS with the booking link to the captured phone number. 4. Vapi to Make.com Connection: - You may need to use a webhook or an API request from Vapi to Make.com to pass the captured phone number. - Configure the webhook or API request in Vapi to send the phone number to your Make.com scenario. 5. Test Your Setup: - Once everything is configured, make a test call to your Vapi number to ensure the phone number is captured correctly and that the Make.com scenario is triggered to send the booking link. If you need more detailed instructions on creating the function within Vapi or setting up the Make.com scenario, please let me know, and I can provide further assistance.
You can continue this conversation by mentioning me in the message.
l
I've created a tool named askForPhoneNumber, what do I type in the property name section though and how do I get my assistant to use this function?
v
@luisz2k Great! If you've created a tool named
askForPhoneNumber
, you'll want to ensure that it's properly defined in your assistant's functions array. The property name in the functions array should match the name of the tool you've created. Here's what you should have in your functions array:
Copy code
json
{
  "name": "askForPhoneNumber"
}
To get your assistant to use this function, you'll need to invoke it at the appropriate time during the call flow. You can do this by setting up a step in your voice application where you want to ask for the caller's phone number. At this step, you would call the
askForPhoneNumber
function. Here's an example of how you might instruct your assistant to use the function:
Copy code
plaintext
When you reach the point in the conversation where you need the caller's phone number, say: "May I have your phone number to send you the booking link?" Then, use the `askForPhoneNumber` function to capture the caller's response.
If you need the assistant to call the function right now, please provide the necessary context or parameters required for the function, and I'll proceed with calling it for you.
d
property name could be 'phone' and description would be 'phone number of the user'. something along those lines, you're just trying to make it clear to the llm what it is that it should collect.
12 Views