Built-in Field Types
Twilio Autopilot will be shut down on August 25, 2023.
Twilio Autopilot will be disabled for all users on August 25, 2023. After this date, customers won’t be able to access the Autopilot APIs, Console Experience, Studio Widget, and docs. Additionally, Twilio will discontinue including Autopilot support in the new helper library releases and customer support won’t answer tickets or requests regarding Autopilot after Feb 25, 2023. For full details, including migration options, see Autopilot Support at Twilio.
The Built-in Field Types allow you to create fields of a common data type such as Date, Time, Number rather than defining them yourself as a custom Field Type. You should use built-in fields when possible given that they are optimized to understand this type of data.
Built-in Field | Example input | Example output |
---|---|---|
Twilio.YES_NO | yeah | Yes |
Twilio.NUMBER | 34 please | 34 |
Twilio.PHONE_NUMBER | The best number is (415) 390-2337 | 4153902337 |
Twilio.DATE | for December 14th please | 2018-12-14 |
Twilio.TIME | at 7 pm please | 19:00 |
Twilio.FIRST_NAME | my name is sam | Sam |
Twilio.LAST_NAME | my last name is jackson | Jackson |
Twilio.EMAIL | my email is sam.jackson@example.com | sam.jackson@example.com |
Twilio.MONTH | May is the best month of the year | May |
Twilio.DAY_OF_WEEK | today is tuesday | Tuesday |
Twilio.US_STATE | Last state I visited was Alaska | Alaska |
Twilio.COUNTRY | I live in France | France |
Twilio.CITY | I live in Tokyo | Tokyo |
Twilio.CURRENCY | bucks | USD |
Twilio.COUNTRY_ISO_ALPHA2 | I'm going to Spain for Christmas | ES |
Twilio.COUNTRY_ISO_ALPHA3 | I'm going to Spain for Christmas | ESP |
Twilio.LANGUAGE | I speak spanish | Spanish |
Twilio.NUMBER_SEQUENCE | My US Zipcode is nine o two one o | 90210 |
Twilio.ALPHANUMERIC | Triple A four five | AAA45 |
A as in apple double one two beta | A112B |
Don't see the field you are looking for? Let us know what you would like to see.
Need some help?
We all do sometimes; code is hard. Get help now from our support team, or lean on the wisdom of the crowd by visiting Twilio's Stack Overflow Collective or browsing the Twilio tag on Stack Overflow.