Ai question card

Question card shown inline in a conversational AI thread when the AI chatbot asks a question.

Contents

isSubmitDisabled disables the submit button only. The options stay interactive.

Who would your ideal customer be?

2 of 3

isSkipDisabled disables the skip button only. The field, submit button, and options stay interactive.

Who would your ideal customer be?

2 of 3

disableChoices belongs to the parent. This story turns it on as soon as the card sends an answer, the way a page would while that answer is in flight, so a second click cannot send a conflicting one. Pick an option below and then try picking another. Clearing the field drops the pick, so the story unlocks the choices again.

Where will you be selling?

3 of 3
Inputs in Disabled
disableChoices ?: boolean = false
isSkipDisabled ?: boolean = false
isSubmitDisabled ?: boolean = false
Also set in this example
question : AiQuestion
totalQuestions ?: number
Outputs
onSelectionCleared ?: any = new EventEmitter<void>()
onSkip ?: any = new EventEmitter<void>()
onSubmit ?: any = new EventEmitter<string>()