AI-generated Key Takeaways
-
Slots are represented in JSON format with fields indicating their mode, status, value, update status, and an optional prompt.
-
Developers can define if a slot is required or optional using the
mode
field and include a custom prompt to guide user input. -
The
value
field in the JSON response allows modification of the slot value, directly impacting the slot filling process. -
A dedicated
prompt
field allows overriding the default prompt, offering flexibility in guiding user interactions.
Represents a slot.
JSON representation | |
---|---|
{ "mode": enum ( |
Fields | |
---|---|
mode |
The mode of the slot (required or optional). Can be set by developer. |
status |
The status of the slot. |
value |
The value of the slot. Changing this value in the response, will modify the value in slot filling. |
updated |
Indicates if the slot value was collected on the last turn. This field is read-only. |
prompt |
Optional. This prompt is sent to the user when needed to fill a required slot. This prompt overrides the existing prompt defined in the console. This field is not included in the webhook request. |