How can we use a formaction to collect user input such as yes/no?

how can we use a formaction to collect user input such as yes/no?

i dont know if this is the right way to do it…please anyone correct me . how can we allow user to select yes or no then collect them to do a custom action.

forms:
 prediction_form:
    affirm1:
    - type: from_intent
      intent: affirm1
      value: true
    affirm2:
    - type: from_intent
      intent: affirm2 
      value: true
    affirm3:
    - type: from_intent
      intent: affirm3
      value: true
    affirm4:
    - type: from_intent
      intent: affirm4
      value: true
    affirm5:
    - type: from_intent
      intent: affirm5 
      value: true
    affirm6: 
    - type: from_intent
      intent: affirm6
      value: true
 utter_ask_affirm1:
  - text: do you have itching?  
    buttons:
    - title: "Yes"
      payload: "/affirm1"
    - title: "No"
      payload: "/deny1"

  utter_ask_affirm2:
  - text: do you have skin_rash?  
    buttons:
    - title: "Yes"
      payload: "/affirm2"
    - title: "No"
      payload: "/deny2"

  utter_ask_affirm3:
  - text: do you have nodal_skin_eruptions?  
    buttons:
    - title: "Yes"
      payload: "/affirm3"
    - title: "No"
      payload: "/deny3"

  utter_ask_affirm4:
  - text: do you have continuous_sneezing?  
    buttons:
    - title: "Yes"
      payload: "/affirm4"
    - title: "No"
      payload: "/deny4"

  utter_ask_affirm5:
  - text: do you have joint_pain?  
    buttons:
    - title: "Yes"
      payload: "/affirm5"
    - title: "No"
      payload: "/deny5"     


  utter_ask_affirm6:
  - text: do you have stomach_pain?  
    buttons:
    - title: "Yes"
      payload: "/affirm6"
    - title: "No"
      payload: "/deny6"
- intent: affirm1
  examples: |
    - yes
    - Yes
    - YEs
    - YES

- intent: affirm2
  examples: |
    - yes
    - Yes
    - YEs
    - YES

- intent: affirm3
  examples: |
    - yes
    - Yes
    - YEs
    - YES

- intent: affirm4
  examples: |
    - yes
    - Yes
    - YEs
    - YES    

- intent: affirm5
  examples: |
    - yes
    - Yes
    - YEs
    - YES

- intent: affirm6
  examples: |
    - yes
    - Yes
    - YEs
    - YES