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?
When I use datepicker, it skips the utter_ask_age, thus messing up the utter_slots_values part:
vs when I use plain text:
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?
- 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