If you are using Amazon Lex V2, refer to the Amazon Lex V2 guide instead.
If you are using Amazon Lex V1, we recommend upgrading your bots to Amazon Lex V2. We are no longer adding new features to V1 and strongly recommend using V2 for all new bots.
AMAZON.PhoneNumber
Converts the numbers or words that represent a phone number into a string format without punctuation as follows.
Type | Description | Input | Result |
---|---|---|---|
International number with leading plus (+) sign | 11-digit number with leading plus sign. | +61 7 4445 1061 +1 (509) 555-1212 |
|
International number without leading plus (+) sign | 11-digit number without leading plus sign | 1 (509) 555-1212 61 7 4445 1061 |
|
National number | 10-digit number without international code | (03) 5115 4444 (509) 555-1212 |
|
Local number | 7-digit phone number without an international code or an area code | 555-1212 | 5551212 |