SMS not working "INVALID_PHONE_NUMBER"
# support
a
I'm trying to get my AI agent to send SMS confirmations when booking appointments. I created a test agent removing the unessacry prompt and am not successful. The log shows "INVALID_PHONE_NUMBER" which indicates that the agent is not passing off the correct information in the string to the tool. An example of a call ID of this happening is below. 019d6ec6-0741-7000-8524-25fd291275cc I'm also attaching four screenshots of my setup. One containing the system prompt, the tool configuration, the logs and the error. Please let me know if you have any questions. https://cdn.discordapp.com/attachments/1491537371248721971/1491537371827667014/System_Prompt.png?ex=69d80dec&is=69d6bc6c&hm=f51f9084758399d5dd648982b5f322b52f75a1dc36d2152c59c0d4a7eec10123& https://cdn.discordapp.com/attachments/1491537371248721971/1491537372234645658/SMS_Tool_Configuration.png?ex=69d80dec&is=69d6bc6c&hm=d4828b3290ddf47a23bd1f14fe1d2f67ba47bf223ba4d752311738090b0acb1f& https://cdn.discordapp.com/attachments/1491537371248721971/1491537372699951316/Logs.png?ex=69d80ded&is=69d6bc6d&hm=792b1f5c61c5f2571c9406e2b3c991263df6e8192aca52b93d77b57bce2869c7& https://cdn.discordapp.com/attachments/1491537371248721971/1491537373199204432/Tool_Error.png?ex=69d80ded&is=69d6bc6d&hm=9fb5faf90f93a56c34562101a51c2f4090abc2e3ae94986cea2c39b1aa065600&
a
thanks for sharing the details and screenshots. The “INVALID_PHONE_NUMBER” error usually means the agent isn’t formatting or passing the phone number correctly to the SMS tool. I can review your setup, identify where the string is breaking, and fix it so SMS confirmations send reliably. @Ackerman
a
Thank you for reaching out. Please let me know if you need anything from me. Do you have a template prompt for passing off the info to the tool correctly?
a
Yes, I can share a template prompt for correctly passing the phone number to the tool to avoid formatting issues. Typically, the key is ensuring the number is always in international format (e.g., +1234567890) and passed as a clean string without spaces or special characters. I’ll review your setup and provide a working template based on your current flow so it fits perfectly Also, I don’t mind helping with this I’m a freelancer offering these kinds of services, so if you’d like me to fully fix and optimize it for you, I’d be happy to handle that as well. @Ackerman
a
That would be awesome to have the template. I'll message you directly about the service you are offering as a freelancer. That would be something our company would be intrested it. We have been delivering and deploying AI services to of our customers
a
Okay good I saw your message @Ackerman But I can't reply because I have been restricted to send direct messages here on discord Kindly message me here on What sApp +1 (782) 624-5207
a
I beleive I found the issue. It wasn't on E.164 format. I was able to get it up and working on my test prompt. Going to merge it into my system prompt and will see if I have any issues. I just messaged you on WhatApp
c
we will mark this as resolved for the time being, but feel free to reopen it by replying here if you encounter any issues