Hi @citron-truc and everyone, Hope you all doing well.
I have created a Fallback flow that show follow up question by using ask a Question topic but the problem is:
- When i send message at first it give me Answer and follow up question.
- But if i select the followup question it still working.
The Problem:
- When i donot select the ask a Question options and try to send new textas question it did not trigger the flow from start and it again show me the followup question from previous resonse .
- so how i can activate trigger even if i did not select the followup question option that is given by ask a Question topic.
here is my flow:



- So if we look at the first question it give us reponse and follow up questions.
- But if we did not select the followup question and try to ask new question it will automatically give the follow up question options from previous response.
I want to send new question to the trigger without selecting the followup question option.
here is the code:
kind: AdaptiveDialog
beginDialog:
kind: OnUnknownIntent
id: main
actions:
- kind: ConditionGroup
id: conditionGroup_LktzXw
conditions:
- id: conditionItem_tlGIVo
condition: =System.FallbackCount < 0
actions:
- kind: SendActivity
id: sendMessage_QZreqo
activity: I'm sorry, I'm not sure how to help with that. Can you try rephrasing?
elseActions:
- kind: SetVariable
id: setVariable_UZzHTG
variable: Topic.userquery
value: =System.Activity.Text
- kind: SetVariable
id: setVariable_JxvOBh
variable: Topic.channel_id
value: =System.Conversation.Id
- kind: InvokeFlowAction
id: invokeFlowAction_E7w02P
input:
binding:
text: =Topic.userquery
text_1: =Topic.channel_id
output:
binding:
answer: Topic.answer
followup: Topic.followup
source: Topic.source
flowId: e2261edf-1fb5-ee11-a569-6045bd006ade
- kind: SendActivity
id: sendActivity_EdTV40
activity: "{Topic.answer}"
- kind: SendActivity
id: sendActivity_J4qAAN
activity: "{Topic.source}"
- kind: ConditionGroup
id: conditionGroup_l0lbpH
conditions:
- id: conditionItem_vKSxmN
condition: =Topic.followup <> "No"
actions:
- kind: ParseValue
id: 65LtLM
variable: Topic.OptionsTable
valueType:
kind: Record
properties:
json:
type:
kind: Table
properties:
DisplayName: String
question: String
value: =Topic.followup
- kind: Question
id: question_FWI3kc
interruptionPolicy:
allowInterruption: true
variable: init:Topic.SelectedQuestion
prompt: "You may like Follow Up questions:"
entity:
kind: DynamicClosedListEntity
items: =Topic.OptionsTable.json
- kind: ConditionGroup
id: conditionGroup_grIIgb
conditions:
- id: conditionItem_2iWCpo
condition: =!IsBlank(Topic.SelectedQuestion)
actions:
- kind: SetVariable
id: setVariable_Is0FtG
variable: Topic.FollowUpQuestion
value: =Topic.SelectedQuestion.question
- kind: InvokeFlowAction
id: invokeFlowAction_1lIq5m
input:
binding:
text: =Topic.FollowUpQuestion
text_1: =System.Conversation.Id
output:
binding:
answer: Topic.answer
followup: Topic.followup
source: Topic.source
flowId: e2261edf-1fb5-ee11-a569-6045bd006ade
- kind: GotoAction
id: QNFBoo
actionId: sendActivity_EdTV40
Input data coming from action in three variable:
{'sources': '',
'answer': "```this is the query```.",
'followup': {'json': [{'question': 'question one text',
'DisplayName': 'question one text'},
{'question': 'question two text',
'DisplayName': 'question two text'}]}
}
how to get ride of this loop??
thanks