{
  "audit": {
    "origin": "afeltham",
    "created": "2023-02-08T15:50:35.398Z",
    "created_by": "Andy Feltham"
  },
  "collections": {
    "Block": {
      "topic": "twilio",
      "Blocks": [
        {
          "oldBlockId": "62f3939e274f9600081eea44",
          "group": "twilio",
          "content": {
            "title": {
              "en": "Sms confirmation"
            }
          },
          "meta": {},
          "type": "function",
          "function": {
            "name": null,
            "args": {
              "confirmationBlock": "confirmation-block",
              "errorBlock": "error-block",
              "twilioAccountSid": "",
              "twilioAuthId": "",
              "from": "",
              "to_property": "ukPhoneNumber",
              "message": "Hello %%firstName%%. This is a test to see if SMS sending works."
            },
            "todo": false,
            "webhook": true,
            "tempText": {
              "en": ""
            },
            "endpoint": "https://europe-west2-intelagent-prod.cloudfunctions.net/wbb-twilio",
            "handlerName": "send-sms",
            "tempChoices": [],
            "formId": "62f3950e274f9600081eea4c"
          },
          "name": "sms-confirmation",
          "version": 2,
          "iconColour": "#ffffff",
          "backgroundColour": "#ed7e7e",
          "icon": "fal fa-sms"
        },
        {
          "oldBlockId": "62f3939e274f9600081eea45",
          "group": "twilio",
          "content": {
            "title": {
              "en": "No twilio credentials set"
            },
            "text": {
              "default": {
                "en": "No credentials set!"
              }
            },
            "items": [
              {
                "choices": [
                  {
                    "title": {
                      "en": "Back to menu"
                    },
                    "action": {
                      "type": "block",
                      "value": "menu"
                    }
                  }
                ]
              }
            ]
          },
          "meta": {
            "choiceType": "qreply"
          },
          "type": "select",
          "iconColour": "#ffffff",
          "backgroundColour": "#ed7e7e",
          "icon": "fal fa-sms",
          "name": "no-twilio-credentials-set",
          "version": 2
        },
        {
          "oldBlockId": "62f3939e274f9600081eea46",
          "group": "twilio",
          "content": {
            "title": {
              "en": "No message set"
            },
            "text": {
              "default": {
                "en": "No message set!"
              }
            },
            "items": [
              {
                "choices": [
                  {
                    "title": {
                      "en": "Back to menu"
                    },
                    "action": {
                      "type": "block",
                      "value": "menu"
                    }
                  }
                ]
              }
            ]
          },
          "meta": {
            "choiceType": "qreply"
          },
          "type": "select",
          "iconColour": "#ffffff",
          "backgroundColour": "#ed7e7e",
          "icon": "fal fa-sms",
          "name": "no-message-set",
          "version": 2
        },
        {
          "oldBlockId": "62f3939e274f9600081eea47",
          "group": "twilio",
          "content": {
            "title": {
              "en": "No to number set"
            },
            "text": {
              "default": {
                "en": "Number 'to' is not set!"
              }
            },
            "items": [
              {
                "choices": [
                  {
                    "title": {
                      "en": "Back to menu"
                    },
                    "action": {
                      "type": "block",
                      "value": "menu"
                    }
                  }
                ]
              }
            ]
          },
          "meta": {
            "choiceType": "qreply"
          },
          "type": "select",
          "name": "no-to-number-set",
          "version": 2,
          "iconColour": "#ffffff",
          "backgroundColour": "#ed7e7e",
          "icon": "fal fa-sms"
        },
        {
          "oldBlockId": "62f3939e274f9600081eea48",
          "group": "twilio",
          "content": {
            "title": {
              "en": "No from number set"
            },
            "text": {
              "default": {
                "en": "No 'from' number set!"
              }
            },
            "items": [
              {
                "choices": [
                  {
                    "title": {
                      "en": "Back to menu"
                    },
                    "action": {
                      "type": "block",
                      "value": "menu"
                    }
                  }
                ]
              }
            ]
          },
          "meta": {
            "choiceType": "qreply"
          },
          "type": "select",
          "iconColour": "#ffffff",
          "backgroundColour": "#ed7e7e",
          "icon": "fal fa-sms",
          "name": "no-from-number-set",
          "version": 2
        },
        {
          "oldBlockId": "62f3939e274f9600081eea49",
          "group": "twilio",
          "content": {
            "title": {
              "en": "Confirmation block"
            },
            "text": {
              "default": {
                "en": "Message sent successfully!"
              }
            },
            "items": [
              {
                "choices": [
                  {
                    "title": {
                      "en": "Back to menu"
                    },
                    "action": {
                      "type": "block",
                      "value": "menu"
                    }
                  }
                ]
              }
            ]
          },
          "meta": {
            "choiceType": "qreply"
          },
          "type": "select",
          "iconColour": "#ffffff",
          "backgroundColour": "#ed7e7e",
          "icon": "fal fa-sms",
          "name": "confirmation-block",
          "version": 2
        },
        {
          "oldBlockId": "62f3939e274f9600081eea4a",
          "group": "twilio",
          "content": {
            "title": {
              "en": "Error block"
            },
            "text": {
              "default": {
                "en": "Unfortunately, message failed to be sent!"
              }
            },
            "items": [
              {
                "choices": [
                  {
                    "title": {
                      "en": "Back to menu"
                    },
                    "action": {
                      "type": "block",
                      "value": "menu"
                    }
                  }
                ]
              }
            ]
          },
          "meta": {
            "choiceType": "qreply"
          },
          "type": "select",
          "iconColour": "#ffffff",
          "backgroundColour": "#ed7e7e",
          "icon": "fal fa-sms",
          "name": "error-block",
          "version": 2
        }
      ]
    },
    "Form": {
      "forms": [
        {
          "oldFormId": "603612802284aff670922dd4",
          "key": "firstName",
          "title": "First Name",
          "validations": [],
          "className": "FirstNameField",
          "fieldType": "input",
          "dataType": "string",
          "type": "form-field",
          "unset": false,
          "optional": false
        },
        {
          "oldFormId": "60361302ecc10547e6919811",
          "key": "ukPhoneNumber",
          "title": "UK phone number",
          "validations": ["6058d732e84029028002e377"],
          "dataType": "string",
          "question": {
            "en": "Please enter your mobile number. 📱",
            "cy": "Rhowch eich rhif ffôn symudol. 📱"
          },
          "choices": [],
          "fieldType": "input",
          "type": "form-field",
          "unset": true,
          "optional": false
        },
        {
          "oldFormId": "62f3950e274f9600081eea4c",
          "title": "SMS test",
          "type": "form",
          "key": "smsTest",
          "validations": [],
          "subforms": ["603612802284aff670922dd4", "60361302ecc10547e6919811"]
        }
      ]
    },
    "EntityIntent": {
      "entities": [],
      "intents": []
    },
    "BlockMapping": {
      "entityBlockMappings": [],
      "intentBlockMappings": []
    }
  }
}
