Unable to send Draft flow . Flow id incorrect. Error while processing WELJ Flow JSON has been saved, but processing has failed. Flow serving may not work properly. Please try uploading Flow JSON again or contact support.
1

```{ "version": "5.1", "data_api_version": "3.0", "routing_model": { "testssd": [ "manual" ] }, "screens": [ { "id": "testssd", "title": "Form Builder", "data": { "workspaceid": { "type": "string", "example": "Reports & Approvals" } }, "layout": { "type": "SingleColumnLayout", "children": [ { "type": "Form", "name": "flow_path", "children": [ { "type": "TextInput", "name": "botname", "label": "Form Name", "input-type": "text", "required": true }, { "type": "RadioButtonsGroup", "name": "access", "label": "Form Visibility", "data-source": [ { "id": "private_form", "title": "Private Form", "description": "Create a private form with restricted access. Suitable for internal use or collecting sensitive information from specific individuals or groups." }, { "id": "public_form", "title": "Public Form", "description": "Create a public form accessible to all users. Ideal for gathering responses from a wide audience or for general data collection purposes." } ], "required": true }, { "type": "If", "condition": "(${form.access} == 'public_form')", "then": [ { "type": "TextInput", "name": "max_responses", "label": "Maximum Responses", "input-type": "number", "required": true }, { "type": "RadioButtonsGroup", "name": "submission_type", "label": "Submission Type", "data-source": [ { "id": "one_time_submission", "title": "One-time Submission", "description": "Create a form that can be submitted only once per user. Suitable for unique submissions or one-off data collection tasks." }, { "id": "multiple_submissions", "title": "Multiple Submissions", "description": "Create a form that allows multiple submissions from the same user. Ideal for recurring data collection or ongoing feedback processes." } ], "required": true } ] }, { "type": "RadioButtonsGroup", "name": "form_assignment", "label": "Form Assignment", "data-source": [ { "id": "non_transferable", "title": "Non-transferable", "description": "Create a form that can only be filled by the assigned individual. Ensures data is collected from specific, designated respondents." }, { "id": "transferable_single", "title": "Transferable to Single", "description": "Create a form that can be reassigned to a single different user. Allows some flexibility in who can submit responses within a team or group." }, { "id": "transferable_multiple", "title": "Transferable to Multiple", "description": "Create a form that can be assigned to multiple users. Allows maximum flexibility in who can submit responses within a team or group." } ], "required": true }, { "type": "RadioButtonsGroup", "name": "partial_submissions", "label": "Partial Submissions", "data-source": [ { "id": "allow_partial_submissions", "title": "Allow Partial Submissions", "description": "Enable users to save incomplete form submissions and return later to complete them. The form status will change to 'WIP' (Work In Progress) for partial submissions." }, { "id": "disallow_partial_submissions", "title": "Disallow Partial Submissions", "description": "Require users to complete the form in one session. All fields must be filled before submission is allowed." } ], "required": true }, { "type": "If", "condition": "(${form.partial_submissions} == 'allow_partial_submissions')", "then": [ { "type": "RadioButtonsGroup", "name": "partial_submission_handling", "label": "Partial Submission Handling", "data-source": [ { "id": "freeze_after_one", "title": "Freeze Entry after One Submission", "description": "Once a partial submission is made, no further edits are allowed." }, { "id": "editable_by_submitter", "title": "Editable by Submitter", "description": "Allow the original submitter to edit their partial submission." }, { "id": "editable_by_anyone", "title": "Editable by Anyone", "description": "Allow any authorized user to edit partial submissions." } ], "required": true } ] }, { "type": "TextInput", "name": "No of user", "label": "Calculatorinput", "input-type": "text", "required": true }, { "type": "RadioButtonsGroup", "name": "createtype", "label": "Form", "data-source": [ { "id": "createmanual", "title": "Create Manually", "description": "Create a private form with restricted access. Suitable for internal use or collecting sensitive information from specific individuals or groups." }, { "id": "createAi", "title": "Create With AI", "description": "Create a public form accessible to all users. Ideal for gathering responses from a wide audience or for general data collection purposes." } ], "required": true }, { "type": "CheckboxGroup", "name": "form_header", "label": "Form Header Options", "data-source": [ { "id": "add_logo", "title": "Add your logo on top?", "description": "Include your organization's logo at the top of the form." } ], "required": false }, { "type": "Footer", "label": "Preview and Finalize Form", "on-click-action": { "name": "navigate", "next": { "type": "screen", "name": "manual" }, "payload": { "createtype": "${form.createtype}" } } } ] } ] } }, { "id": "manual", "title": "Finalize Form", "data": { "createtype": { "type": "string", "example": "createmanual" } }, "terminal": true, "layout": { "type": "SingleColumnLayout", "children": [ { "type": "Form", "name": "flow_path", "children": [ { "type": "TextHeading", "text": "Create Form Manually" }, { "type": "If", "condition": "${data.createtype} == 'createAi'", "then": [ { "type": "TextInput", "name": "botnameq", "label": "Form Name", "input-type": "text", "required": true } ], "else": [ { "type": "TextBody", "text": "First Element" }, { "type": "Dropdown", "name": "firstelement", "label": "Add Element", "data-source": [ { "id": "text", "title": "Text", "description": "A prominent title that summarizes the main topic. Edits are not allowed once submitted." }, { "id": "text-input", "title": "Text Box", "description": "An input field for user responses. Edits allowed by any authorized user." }, { "id": "checkbox", "title": "Checkbox", "description": "Allows users to select multiple options. Edits are not allowed once submitted." }, { "id": "dropdown", "title": "Dropdown", "description": "A list of options where users can select one. The original submitter can edit their choice." }, { "id": "date-picker", "title": "Date Picker", "description": "A calendar tool for selecting dates. Edits allowed by any authorized user." }, { "id": "radio-buttons", "title": "Radio Buttons", "description": "Allows users to select one option from multiple choices. Edits allowed by any authorized user." }, { "id": "image-upload", "title": "Image Upload", "description": "Enables users to upload images. Edits are not allowed once submitted." }, { "id": "document-upload", "title": "Document Upload", "description": "Allows users to upload files. Edits allowed by any authorized user." }, { "id": "header-image", "title": "Header image", "description": "Allows users to upload files. Edits allowed by any authorized user." } ], "required":true

          },


              {
                "type": "Switch",
                "value": "${form.firstelement}",
                "cases": {
                  "text": [
                    {
                      "type": "Dropdown",
                      "name": "tt",
                      "label": "Select Text Type",
                      "data-source": [
                        {
                          "id": "textheading",
                          "title": "Text Heading",
                          "description": "80 characterlimit"
                        },
                        {
                          "id": "textsubheading",
                          "title": "Text Subheading",
                          "description": "80 characters limit"
                        },
                        {
                          "id": "textbody",
                          "title": "Text Body",
                          "description": "4096 characters limit"
                        },
                        {
                          "id": "textcaption",
                          "title": "Text Caption",
                          "description": "409 characters limit"
                        }
                      ],
                      "required": false
                    }
                  ],
                  "text-input": [
                    {
                      "type": "Dropdown",
                      "name": "ttbox",
                      "label": "Select Text Type",
                      "data-source": [
                        {
                          "id": "freeflow",
                          "title": "Free Flow",
                          "description": "80 characterlimit"
                        },
                        {
                          "id": "number",
                          "title": "Number",
                          "description": "80 characters limit"
                        },
                        {
                          "id": "phone",
                          "title": "Phone Number",
                          "description": "4096 characters limit"
                        },
                        {
                          "id": "password",
                          "title": "Passcode",
                          "description": "409 characters limit"
                        },
                        {
                          "id": "password",
                          "title": "Passcode",
                          "description": "409 characters limit"
                        }
                      ],
                      "required": false
                    }
                  ],
                  "checkbox":[{
                  "type": "TextArea",
                  "name": "checkboxquestion",
                  "label": "Question",
                  "max-length": 409,
                  "required": false
                }

, { "type": "TextArea", "name": "checkboxsepareted", "label": "Checkbox Values comma seperated", "max-length": 80, "required": false }

                  ]
                }
              },     {
            "type": "Switch",
            "value": "${form.tt}",
            "cases": {
              "textheading": [
                {
                  "type": "TextArea",
                  "name": "textheasding",
                  "label": "Text Heading",
                  "max-length": 80,
                  "required": false
                }
              ],
              "textsubheading": [
                {
                  "type": "TextArea",
                  "name": "trxtsusbheading",
                  "label": "Text Subheading",
                  "max-length": 80,
                  "required": false
                }
              ],
              "textbody": [
                {
                  "type": "TextArea",
                  "name": "textbodsy",
                  "label": "Text Body",
                  "max-length": 4096,
                  "required": false
                }
              ],
              "textcaption": [
                {
                  "type": "TextArea",
                  "name": "textcaptison",
                  "label": "Text Caption",
                  "max-length": 409,
                  "required": false
                }
              ]
            }
          },
              {
                "type": "Switch",
                "value": "${form.ttbox}",
                "cases": {
                  "freeflow": [
                    {
                  "type": "TextArea",
                  "name": "checkboxquestin",
                  "label": "Question",
                  "max-length": 409,
                  "required": false
                }

, { "type": "TextInput", "name": "maxchar", "label": "Max Character", "input-type": "number", "required": false } ], "textsubheading": [ { "type": "TextArea", "name": "checkboxquesion", "label": "Question", "max-length": 409, "required": false } ,{ "type": "TextArea", "name": "trxtsubheading", "label": "Text Subheading", "max-length": 80, "required": false } ], "textbody": [ { "type": "TextArea", "name": "checkboxqustion", "label": "Question", "max-length": 409, "required": false } , { "type": "TextArea", "name": "textbody", "label": "Text Body", "max-length": 4096, "required": false } ], "textcaption": [ { "type": "TextArea", "name": "checkboxquestn", "label": "Question", "max-length": 409, "required": false } , { "type": "TextArea", "name": "textcaption", "label": "Text Caption", "max-length": 409, "required": false } ] } } ] }, { "type": "If", "condition": "(${form.textbodsy} != '') || (${form.textcaptison} != '') || (${form.trxtsusbheading} != '') || (${form.textheasding} != '') ||(${form.maxchar} > 0)", "then": [ { "type": "TextBody", "text": "Second Element" }, { "type": "Dropdown", "name": "secondelement", "label": "Add Element", "data-source": [ { "id": "text", "title": "Text", "description": "A prominent title that summarizes the main topic. Edits are not allowed once submitted." }, { "id": "text-box", "title": "Text Box", "description": "An input field for user responses. Edits allowed by any authorized user." }, { "id": "checkbox", "title": "Checkbox", "description": "Allows users to select multiple options. Edits are not allowed once submitted." }, { "id": "dropdown", "title": "Dropdown", "description": "A list of options where users can select one. The original submitter can edit their choice." }, { "id": "date-picker", "title": "Date Picker", "description": "A calendar tool for selecting dates. Edits allowed by any authorized user." }, { "id": "radio-buttons", "title": "Radio Buttons", "description": "Allows users to select one option from multiple choices. Edits allowed by any authorized user." }, { "id": "image-upload", "title": "Image Upload", "description": "Enables users to upload images. Edits are not allowed once submitted." }, { "id": "document-upload", "title": "Document Upload", "description": "Allows users to upload files. Edits allowed by any authorized user." }, { "id": "header-image", "title": "Header image", "description": "Allows users to upload files. Edits allowed by any authorized user." } ], "required": false } ], "else": [ { "type": "TextBody", "text": "Second Element" } ] }, { "type": "Footer", "label": "PUBLISH FORM", "on-click-action": { "name": "complete", "payload": {} } } ] } ] } } ] } ```

Ashish
Asked about 3 months ago
Selected Answer
1

Hi Ashish, can you please share your Flow ID?

I was able to publish a new Flow with the JSON you have shared.

Please note, you can remove the "data_api_version" property if you are not using "data_exchange" action. In case you do want to use it, please add a valid endpoint before trying to publish.

October 8 at 6:08 AM
Vasudha
Ashish

Were you able to send draft flow?

I made a new flow and tried sending via draft "flow_message_version": "3", "flow_action": "navigate", "flow_token": "<FLOW_TOKEN>", "flow_id": "8677533775632475", "flow_cta": "Not shown in draft mode", "mode": "draft", "flow_action_payload": { "screen": "testssd", "data": { { "error": { "message": "(#131009) Parameter value is not valid", "type": "OAuthException", "code": 131009, "error_data": { "messaging_product": "whatsapp", "details": "Specified screen testssd is not allowed as first screen of this flow. Allowed screen name is: WELCOME_SCREEN." }, "fbtrace_id": "A-fG06CeueHjAdRQH9i1e5-" } }

WELCOME_SCREEN was default flow when I created new.

Now too after saving flow I am getting Error while processing WELJ Flow JSON has been saved, but processing has failed. Flow serving may not work properly. Please try uploading Flow JSON again or contact support.

And after sending draft flow I get above error

October 8 at 10:12 PM
Vasudha

Thanks Ashish, we are looking into the issue.

October 9 at 12:09 PM
Ashish

Sometime it is working sometime I get invalid flowid when changed token

October 13 at 3:04 AM