Slot is skipped when Slack datepicker is used

Hi there,

In one of my forms, I have two questions to the user where the slot are dates. As my channel is Slack, I opted for the datepicker to avoid users coming up with their own date format. However, I found that when using the datepicker twice within the form, messed up the flow, skipping the next requested slot.

I tried leaving just 1 datepicker (i.e. just using the text format), and the form worked properly. Is it really not possible to use 2 in one form?

Hi @chiqui_hm

I don’t see why you wouldn’t be able to use two datepickers. Do the slots have different names?

hi @jjuzl

When I use datepicker, it skips the utter_ask_age, thus messing up the utter_slots_values part:

image

vs when I use plain text:

image

perhaps my formatting is wrong?

- custom:

      blocks:

      - type: section

        text:

          text: "When did you take the test?"

          type: mrkdwn

        accessory:

          type: datepicker

          initial_date: '2021-01-01'

          placeholder:

            type: plain_text

            text: "Select a date."

because this warning pops out on the CLI:

UserWarning: The text argument is missing in the request payload for a chat.postMessage call - It’s a best practice to always provide a text argument when posting a message. The text is used in places where blocks cannot be rendered such as: system push notifications, assistive technology such as screen readers, etc. warnings.warn(message, UserWarning)

I think it’s more likely to be an issue with how you have the form configured than the custom response. Can you show me your domain and rules files please?

hi @jjuzl

Here’s my form in domain:

positive_form:

    privacy:

    - type: from_intent

      intent: affirm

      value: True

      not_intent: deny, stop, chitchat

    swab:

    - type: from_entity

      entity: test_type

    - type: from_intent

      intent: inform

      value: test_type

      not_intent: stop, chitchat, unsure

    test_date:

    - type: from_entity

      entity: time

    - type: from_intent

      intent: unsure

      value: to be checked

      not_intent: stop, chitchat

    age:

    - type: from_entity

      entity: age

      not_intent: stop, chitchat

    city_residence:

    - type: from_entity

      entity: GPE

    - type: from_text

      not_intent: deny, stop, chitchat

    temperature:

    - type: from_intent

      intent: affirm

      value: true

    - type: from_intent

      intent: deny

      value: false

    - type: from_intent

      intent: unsure

      value: to be checked

    - type: from_text

      not_intent: stop, chitchat

    symptoms:

    - type: from_entity

      entity: symptoms

    - type: from_intent

      intent: deny

      value: false

    - type: from_text

      not_intent: stop, chitchat

    initial_date:

    - type: from_entity

      entity: time

    - type: from_intent

      intent: deny

      value: false

    - type: from_intent

      intent: unsure

      value: false

    - type: from_text

      not_intent: stop, chitchat

there’s nothing much in my rules file:

- rule: Say 'I am a bot' anytime the user challenges

  steps:

  - intent: bot_challenge

  - action: utter_iamabot

- rule: Say you're busy when the user starts chitchat

  steps:

  - intent: chitchat

  - action: utter_chitchat

Which UI have to use to show date picker in chat window?