Examples for Bifrost Flow Settings

From FlowSettings.yaml (bifrost/FlowSettings.schema)

---
{}
---
botmd_groupchat:
  group_member_phones: ["+6591231234", "+12134567890"]
---
nemg_medication_refill:
  clinic_phones:
    - clinic_name: Clinic One
      phone: "+6500000001"
    - clinic_name: Clinic Two
      phone: "+6500000002"
    - clinic_name: Clinic Three
      phone: "+6500000003"

  patient_confirmation_message:
    type: message
    message:
      type: whatsapp_template
      whatsapp_template:
        language_code: en
        template_name: template_name_x

        body_parameters:
          - default: ${ordered_variable_one}
          - default: ${ordered_variable_two}
          - default: ${ordered_variable_three}

  admin_confirmation_message:
    type: message
    message:
      type: whatsapp_template
      whatsapp_template:
        language_code: en
        template_name: template_name_y

        body_parameters:
          - default: ${var_one}
          - default: ${var_two}
          - default: some-value
          - default: " "

  qa_parser:
    fields:
      - key: clinic_name
        regex: wordone.+word2.+word3
        type: string
      - key: patient_name
        regex: ^WORD
        type: string
---
nemg_medication_refill:
  clinic_phones:
    - clinic_name: Clinic One
      phone: "+6500000001"
---
nemg_medication_refill:
  clinic_phones:
    - clinic_name: Clinic One
      phone: "+6500000001"

  patient_confirmation_message:
    type: message
    message:
      type: whatsapp_template
      whatsapp_template:
        language_code: en
        template_name: template_name_x
        body_parameters:
          - default: ${ordered_variable_one}
          - default: ${ordered_variable_two}
          - default: ${ordered_variable_three}

  admin_confirmation_message:
    type: message
    message:
      type: whatsapp_template
      whatsapp_template:
        language_code: en
        template_name: template_name_y
        body_parameters:
          - default: ${var_one}
          - default: ${var_two}
          - default: some-value
          - default: " "

  patient_reminder_message:
    type: message
    message:
      type: whatsapp_template
      whatsapp_template:
        language_code: en
        template_name: template_name_z
        body_parameters:
          - default: ${var_one}
          - default: ${var_two}
          - default: some-value
          - default: " "
---
nemg_medication_refill:
  qa_parser:
    fields:
      - key: short_nric
        regex: NRIC
        type: string
      - key: what_do
        regex: looking to do
        type: string
      - key: collection_date
        regex: Date of Rx Collection
        type: string
---
nemg_services_schedule_visit:
  patient_confirmation_messages:
    "cool event (spicy clinic)":
      type: message
      message:
        type: text
        text: short message
    "cooler event (spicier clinic)":
      type: message
      message:
        type: text
        text: short message
  patient_confirmation_message:
    type: message
    message:
      type: text
      text: short message
  reminder_buffer: 120
---
nemg_services_schedule_visit:
  patient_confirmation_messages:
    "cool event (spicy clinic)":
      type: message
      message:
        type: text
        text: short message
    "cooler event (spicier clinic)":
      type: message
      message:
        type: text
        text: short message
  patient_confirmation_message:
    type: message
    message:
      type: text
      text: short message
  reminder_buffers: [86400, 432000]
---
nemg_teleconsult_create_or_cancel_request:
  doctor_invitation_message:
    type: message
    message:
      type: whatsapp_template
      whatsapp_template:
        language_code: en
        template_name: temp1
        body_parameters:
          - type: text
            text: var1

  patient_confirmation_message:
    type: message
    message:
      type: whatsapp_template
      whatsapp_template:
        language_code: en
        template_name: temp1
        body_parameters:
          - type: text
            text: var1

  patient_cancelation_message:
    type: message
    message:
      type: whatsapp_template
      whatsapp_template:
        language_code: en
        template_name: temp1
        body_parameters:
          - type: text
            text: var1

  doctor_cancelation_message:
    type: message
    message:
      type: whatsapp_template
      whatsapp_template:
        language_code: en
        template_name: temp1
        body_parameters:
          - type: text
            text: var1

  qa_parser:
    fields:
      - key: clinic_name
        regex: wordone.+word2.+word3
        type: string
      - key: patient_name
        regex: ^WORD
        type: string

  respond_to_request_flow_uid: xxxxxx
#end nemg_create_or_cancel_teleconsult

---
nemg_teleconsult_respond_to_request:
  clinic_incoming_patient_message:
    type: message
    message:
      type: whatsapp_template
      whatsapp_template:
        language_code: en
        template_name: temp1
        body_parameters:
          - type: text
            text: var1
  start_teleconsult_typeform_url: https://typeform.com/to/abc


[Main Page] [Schema Documentation] [Raw Schema] [JSON Schema]