Menu
Amazon Lex
Developer Guide

AMAZON.PhoneNumber

This slot type is in preview release for Amazon Lex and is subject to change.

Converts numbers or words that represent a phone number into a string format without punctuation as described below.

Note

Only U.S. phone numbers are supported.

  • International number with "+" sign – An 11-digit number containing an international code with a leading plus (+) sign. The user input +1 (509) 555–1212 is resolved to +15095551212. The phone number includes the leading plus sign.

     

  • International number without a "+" sign – An 11-digit number containing an international code without a leading plus (+) sign. The user input 1 (509) 555–1212 is resolved to 15095551212. The phone number does not include the leading plus sign.

     

  • National number –10-digit number that does not contain an international code. The user input (509) 555–1212 resolves to 5095551212.

     

  • Local number –7-digit number that does not contain an international code or an area code. The user input 555–1212 resolves to 5551212.