Prebuilt Slots
Understanding Parloa's Duckling-based Pre-Built Slots
Pre-built slots enable you to process common user inputs consistently and efficiently. These slots, based on Duckling, simplify the extraction of key information from sentences. Let's explore how these pre-built slots work and how you can leverage them effectively.
Standardizing User Inputs
Imagine a user wants to repay a certain amount of money they owe. For instance:
Hi , I owe $60, can I pay this amount back please?
In this case, the extracted entity is the amount $60
. This is where the amountOfMoney
pre-built slot comes into play. It specializes in handling various currency types.
Using Pre-Built Slots Across Platforms
If you're utilizing platforms other than Phone 2 (such as Phone V2 or Textchat), it's important to define the pre-built slot types within each slot's respective Platforms tab. This ensures consistent behavior and understanding across different interfaces.
Prebuilt Slot Types
The following lists all the pre-built Slot types:
amountOfMoney
Currency types like 10 EUR, 2β¬, 1.34 Euro, 100 $.
distance
Distances, such as 10 km or 1 cm.
duration
Time durations like 1 second or 3 hours.
email
Email addresses, such as [email protected].
number
123 (No spaces between values)
ordinal
Description of an order 1st-45th.
phoneNumber
Phone numbers, including international formats like +49302873737.
dateTime
Moments in time, whether it's yesterday, today, or a specific time.
volume
Volume measurements, like 3 liters or 20 ml.
url
Web page addresses, such as www.parloa.com.
distanceInterval
An interval between two distances: 2 to 3 km, from three to five kilometers.
dateTimeInterval
The duration of time: last week, from yesterday to today, 1 p.m. to 2 p.m.
volumeInterval
A volume range: 3-5 liters, 20-50 ml.
Using Pre-Built Slots In a Response
When you select a prebuilt slot, the first tab Info displays all relevant information, including the Available Data in Javascript. The following example shows the Slot amountOfMoney
's available date:
"slots": [
{
"extractor": "DucklingEntityExtractor",
"value": {
"value": 60,
"unit": "EUR"
},
"confidence": 1,
"entity": "amountOfMoney",
"additionalInfo": {
"value": 60,
"type": "value",
"unit": "EUR"
},
"start": 0,
"end": 3,
"processors": [],
"text": "60β¬"
}
]
Pre-Built Slots
The following table lists the pre-built slots, categorized by language and slot type.
Language
amountOfMoney
creditCardNumber
distance
duration
email
numeral
ordinal
phoneNumber
quantity
temperature
time
timeGrain
url
volume
Afrikaans
β
β
β
β
β
β
β
β
β
β
β
β
β
β
Arabic
β
β
β
β
β
β
β
β
β
β
β
β
β
β
Bengali
β
β
β
β
β
β
β
β
β
β
β
β
β
β
Bulgarian
β
β
β
β
β
β
β
β
β
β
β
β
β
β
Burmese
β
β
β
β
β
β
β
β
β
β
β
β
β
β
Catalan
β
β
β
β
β
β
β
β
β
β
β
β
β
β
Chinese
β
β
β
β
β
β
β
β
β
β
β
β
β
β
Croatian
β
β
β
β
β
β
β
β
β
β
β
β
β
β
Czech
β
β
β
β
β
β
β
β
β
β
β
β
β
β
Danish
β
β
β
β
β
β
β
β
β
β
β
β
β
β
Dutch
β
β
β
β
β
β
β
β
β
β
β
β
β
β
English
β
β
β
β
β
β
β
β
β
β
β
β
β
β
Estonian
β
β
β
β
β
β
β
β
β
β
β
β
β
β
Finnish
β
β
β
β
β
β
β
β
β
β
β
β
β
β
French
β
β
β
β
β
β
β
β
β
β
β
β
β
β
Georgian
β
β
β
β
β
β
β
β
β
β
β
β
β
β
German
β
β
β
β
β
β
β
β
β
β
β
β
β
β
Greek
β
β
β
β
β
β
β
β
β
β
β
β
β
β
Hebrew
β
β
β
β
β
β
β
β
β
β
β
β
β
β
Hindi
β
β
β
β
β
β
β
β
β
β
β
β
β
β
Hungarian
β
β
β
β
β
β
β
β
β
β
β
β
β
β
Icelandic
β
β
β
β
β
β
β
β
β
β
β
β
β
β
Indonesian
β
β
β
β
β
β
β
β
β
β
β
β
β
β
Irish
β
β
β
β
β
β
β
β
β
β
β
β
β
β
Italian
β
β
β
β
β
β
β
β
β
β
β
β
β
β
Japanese
β
β
β
β
β
β
β
β
β
β
β
β
β
β
Kannada
β
β
β
β
β
β
β
β
β
β
β
β
β
β
Khmer
β
β
β
β
β
β
β
β
β
β
β
β
β
β
Korean
β
β
β
β
β
β
β
β
β
β
β
β
β
β
Lao
β
β
β
β
β
β
β
β
β
β
β
β
β
β
Malayalam
β
β
β
β
β
β
β
β
β
β
β
β
β
β
Mongolian
β
β
β
β
β
β
β
β
β
β
β
β
β
β
Nepali
β
β
β
β
β
β
β
β
β
β
β
β
β
β
Norwegian-BokmΓ₯l
β
β
β
β
β
β
β
β
β
β
β
β
β
β
Persian
β
β
β
β
β
β
β
β
β
β
β
β
β
β
Polish
β
β
β
β
β
β
β
β
β
β
β
β
β
β
Portuguese
β
β
β
β
β
β
β
β
β
β
β
β
β
β
Romanian
β
β
β
β
β
β
β
β
β
β
β
β
β
β
Russian
β
β
β
β
β
β
β
β
β
β
β
β
β
β
Slovak
β
β
β
β
β
β
β
β
β
β
β
β
β
β
Spanish
β
β
β
β
β
β
β
β
β
β
β
β
β
β
Swahili
β
β
β
β
β
β
β
β
β
β
β
β
β
β
Swedish
β
β
β
β
β
β
β
β
β
β
β
β
β
β
Tamil
β
β
β
β
β
β
β
β
β
β
β
β
β
β
Telugu
β
β
β
β
β
β
β
β
β
β
β
β
β
β
Thai
β
β
β
β
β
β
β
β
β
β
β
β
β
β
Turkish
β
β
β
β
β
β
β
β
β
β
β
β
β
β
Ukrainian
β
β
β
β
β
β
β
β
β
β
β
β
β
β
Vietnamese
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
Last updated
Was this helpful?