Sending a text message on appointment slot
# support
r
I have a function tool called "bookAppointment" with name, description, phone, and startDateTime as parameters. Is it possible to get the calling users phone number without having to explicitly ask for it in the prompt?
v
@rowdy Please ask support for more info on this.
You can continue this conversation by mentioning me in the message.
v
yes it is. It is found in the tool call. If you follow the data stream, you'll be able to find the number.
c
The number always comes in as call, you don't need to pull from tools.
v
@Chowderr Great! If the calling user's phone number is automatically included in the data stream as part of the call context, then you wouldn't need to explicitly ask for it. You can simply extract it from the call information and use it as needed for the
bookAppointment
function. If you need to book an appointment and already have the other required details, please provide them, and I can assist you with setting up the appointment.
s
4 Views