Now, our app can use the new submission of the form as a trigger for the Flow. 


When you integrate the form with Shopify Flow and set the new submission of the form as a trigger for Flow, the workflow you have configured will automatically execute as soon as the form is submitted.



This document explains how to set up the automatic execution of the "Send internal email" logic tasks within Shopify Flow when there is a new submission on the form.


Set up the workflow in Shopify Flow


Step1:Open the Shopify Flow app.


Step2:Click the Create workflow button to create a new workflow.



Step3:Select Pify Form Builder - Contact Form, then choose New Submission or New Submission - Without Customer as the trigger.



Please note: 


If you choose "New Submission" as the trigger, then you should have a required email field in the form. If the email used to submit the form is not associated with a Customer account in your store, it will not be triggered.

If you choose "New Submission - Without Customer" as the trigger, then there is no need to have an email field in the form.


Step4:After adding the trigger, click the "+" icon in the lower right corner of the card to add an Action. Select Flow, then choose Send internal email.



Step5:Add email address, subject, and message. For the subject and message, you can enter custom information or choose to add variables.



SubmissionData is the information filled out by the user in the form. 

FormName is the name of the form. 

FormID is the ID of the form. 

CreatedAt is the time this email was sent.


Step6:Once you have completed all the information, click the Turn on workflow button in the upper right corner to activate this workflow.



Enable Shopify Flow integration in the form


Step1:Enter the form editing page, select Settings, and expand Integration.



Step2:Select Shopify Flow, then check the box to Enable Shopify Flow, click Save.



When the form is submitted, the Workflow set in the Flow will be automatically executed.