Skip to content

Slots

Stackchat uses Slots to store and retrieve information about users. Out of the box, Stackchat is equipped with 7 Meta Slots, and unlimited Custom Slots created by you.

Meta Slots

Meta Slots are slots that are prefilled with a variety of information depending on the channel used to communicate with the user and their interaction with your bot.

User ID: User ID from the channel of choice.

Signup Date: Date on which the user subscribed to the channel.

Has Begun: A boolean that tells whether a user has begun interacting with the bot or not.

Has Authenticated: A boolean that tells whether a user has authenticated to the channel or not.

Email: The user's email address.

First Name: The user's given name.

Last Name: The user's family name.

Last Message: The last message that the user sent the bot. This may appear as the value of a button they clicked in a quick navigation item or carousel.

Meta Slots in Text Message

All Meta Slots appear regardless of which channels you are in. Be careful not to use ones you don't have.

Meta Slots by Platform

The Meta Slots that are filled will vary based on the channel you are using.

Facebook Slots:

  1. First Name
  2. Last name
  3. Has Begun
  4. Has Authenticated
  5. Last Message

WeChat:

  1. User ID (WeChat OpenID)
  2. First Name (WeChat nickname)
  3. Signup Date (Signup date to WeChat Official Account)
  4. Has Begun
  5. Has Authenticated
  6. Last Message

Native Android/Native iOS/Web Messenger

  1. Has Begun
  2. Last Message

Custom Slots

For information that cannot be gained from Meta Slots, you can create Custom Slots to hold any relevant information. These can be filled via Stackchat User Input Groups or NLP entity responses.

Slots will be populated in the order in which they appear. In the case of slots being filled via NLP, if the value returned from the NLP provider is null or empty, the slot is skipped (i.e., its value will remain as it was, instead of being set to null). This allows you to attempt to populate a single slot with multiple different entities from your NLP provider without worrying that its original value will be overwritten with an empty string or null.

To create a Custom Slot, click on Manage Slots in the sidebar.

Manage Slots

View and delete Custom Slots here.

In the overlay, click the Create Slot button and the slot creation dialog will slide in from the left.

Create Slot

Select the correct data type to go in your slot.

Give your Custom Slot a name, and you can choose from the eight different types of slots, defined by type of input:

Text: Accepts any text entry.

Boolean: A simple yes or no.

Number: Only accepts numeric values.

Multiple Choice: Allows for the choice of a list determined by you. This list is created in User Input Groups in the Bot Builder.

Date Time: Accepts times and/or dates.

Email: Accepts only email addresses.

URL: Accepts only web links.

Slot names can only use alphanumerics. Spaces and special characters are not allowed. This is indicated by the color of the Name box. If the box is green, you're in good shape.