How to: Set Up an Unqork Application in 20 Minutes
Overview
Welcome to Unqork, the first no-code enterprise application platform. In 20 minutes, you can create a simple insurance application. This app lets you sell a commercial policy to a small business for their automobiles. This build includes creating an Unqork Workflow and two modules.
You need access to an Unqork environment to build your app. Once you have environment access, you can complete this build without writing a single line of code.
To create a workflow, use the Workflow Builder. Workflows let you build complex flows and logic with an easy, drag-and-drop interface. You can also map all the data points and user types in your application. By default, your workflow has two swimlanes: Authenticated and Automated. The Authenticated swimlane is for tasks driven by your end-user, like completing an online form. The Automated swimlane is for tasks that run automatically without end-user interaction. These tasks can be an email or text message sent automatically.
These are additional Display & Layout components focusing on the various Unqork grids. Examples include the Dynamic Grid, Freeform Grid, and Uniform Grid components.
These components let you integrate logic into your applications without writing code. Examples include the Calculator, Decisions, and Initializer components.
These components can visually display aggregated statistics for data. Examples include the Chart and KPI components.
What You'll Learn
In this how-to guide, you’ll learn to build an Unqork application in 20 minutes.
Configuration
Creating a Workspace
Unqork lets you create your own virtual workspace. That way, your team can stay organized during the application development process. For this how-to guide, start by creating your workspace. Then, you can create applications in your workspace.
To create a new workspace:
1.
At the top of the Unqork Designer Platform, click Workspaces.
2.
At the top right of the Workspaces homepage, click + Create Workspace.
3.
In the Workspace Name* field, enter a unique workspace name.
4.
(Optional) In the Workspace Description field, enter a description of your workspace.
5.
Click Create Workspace.
You are now at the Workspace Level and your new workspace tile displays on the page. Inside your workspace, you can create your own applications, and access any of your teammates' Library Elements.
In the App Name* field, enter a unique application name. The App Path* autopopulates for you.
3.
From the App Type* drop-down, select Workflow.
For workflow-type applications, the App Entrypoint is New Entrypoint by default.
4.
(Optional) In the App Description field, add a description of your application.
There are other various options and settings when creating an application. But, for this how-to guide, we will ignore them and use the defaults.
5.
Click Create.
You are now at the Application Level and your application displays on the page. When you create a workflow-type app, it also creates an Unqork Workflow inside the application. You can find it by selecting Workflows to the left of the page. Click the workflow tile to open it in the Workflow Builder.
Adding the First Task Node
Start the application by creating a module that asks for information about the business owner. You'll create this module directly in a Workflow Task node..
1.
In the Workflow Builder, drag and drop a Task node in the pool, placing it in the Authenticated swimlane.
2.
Click Edit.
3.
In the Label field, enter Business Owner. The Path autopopulates for you.
4.
Click Create New Module.
5.
(Optional) In the Module Title* field, enter a unique name for your module.
6.
(Optional) In the Module Path* field, enter a unique path for your module.
It's best practice to create lowercase paths with no spaces.
7.
From the Module Type* drop-down, select FE Front-End.
To learn more about module types, view our Module Settings article.
8.
Click Create.
You'll configure this module in a bit. For now, create it and move on to the next step.
9.
Connect the output port (right) of the Start node to the input port (left) of the Task node.
Adding the Second Task Node
Next, create another module using a Task node. This module asks for information about the business owner's company.
1.
Drag and drop a Task node in the pool, placing it in the Authenticated swimlane.
2.
Click Edit.
3.
In the Label field, enter Company. The Path autopopulates for you.
4.
Click Create New Module.
5.
(Optional) In the Module Title* field, enter a unique name for your module.
6.
(Optional) In the Module Path* field, enter a unique path for your module.
It's best practice to create lowercase paths with no spaces.
7.
From the Module Type* drop-down, select FE Front-End.
To learn more about module types, view our Module Settings article.
8.
Click Create.
You'll configure this module in a bit. For now, create it and move on to the next step.
9.
Connect the output port (right) of the Business Owner Task node to the input port (left) of the Company Task node.
Adding the Message Node
So far, your end-user (the applicant) completes the modules you added. Next, you'll automatically trigger a notification email to the applicant using the Message node in the Automated swimlane.
1.
Drag and drop a Message node in the pool, placing it in the Automated swimlane.
2.
Click Edit.
3.
In the Label field, enter Email.
4.
From the Send via drop-down, select Email.
5.
In the To field, enter {{data.ownerEmail}}.
{{data.ownerEmail}} references the value your end-user enters in the Email field of the Business Owner module that you'll set up later.
6.
In the From Name field, enter Unqork, or a custom sender name.
7.
In the Reply To field, enter no-reply@unqork.com, or a custom sender address.
8.
In the Subject field, enter Thank you!.
9.
In the Template field, enter the following:
Hi, {{data.ownerFirstName}}!
Thank you for submitting your application. We'll be in touch soon.
{{data.driversLicenseFirstName}} references the value your end-user enters in the First Name field of the Business Owner module that you'll set up later.
10.
Connect the output port (right) of the Company Task node to the input port (left) of the Email Message node.
Adding the End Node
You just created your application flow. Now, complete the flow by adding an End node to the Authenticated swimlane.
1.
Drag and drop an End node in the pool, placing it in the Authenticated swimlane.
2.
Click Edit.
3.
In the Label field, enter End.
4.
Connect the output port (right) of the Message node to the input port (left) of the End node.
5.
Click Save....
6.
Click Save.
Adding the Basic Information Questionnaire Snippet
To save time and effort, you can use one of Unqork's prebuilt snippets. Snippets are preconfigured, so all you have to do is drag and drop them onto your canvas. The Basic Information Questionnaire snippet includes dynamic fields where end-users can enter personal information.
First, open your Business Owner module from your workflow:
1.
In the Workflow Builder, click the hyperlink inside the Business Owner Task node. Your module opens in the Module Builder in a new tab.
2.
Above the component tray in the Module Builder, click Snippets.
3.
In the search bar, enter Basic Info.
4.
Drag and drop the Basic Information Questionnairesnippet onto your canvas.
Editing the Columns Component
Now, rearrange the snippet to make it wider, so it fits the screen:
1.
Inside the panelBasicInfoPanel component, hover over the Columns component.
A 5-button toolbar displays above the component on hover-over.
2.
Click (Settings).
3.
Under Formatting, click (One Column).
4.
Click Save & Close.
5.
Save your module.
You've just created the first module in your workflow. At the top right of the Module Builder, click Preview to see how it looks to your end-user in Express View.
Adding the First Radio Buttons Component
Now that you finished the Business Owner module, it's time to open the Company module. You'll use the module for your applicant to add company information. For example, asking the applicant how long the company has been in business. First, you'll add some questions about the business using Radio Buttons components. Then, you'll use a Number and Decisions component to provide a risk score to the applicant.
First, open your Company module from your workflow.
1.
In the Workflow Builder, click the hyperlink inside the Company Task node. Your module opens in the Module Builder in a new tab.
2.
In the Module Builder, drag and drop a Radio Buttons component onto the canvas, placing it below the panelBasicInfoPanel component.
To the left of the component's configuration window, click Data.
5.
Set your Option Label and Value to Store in Submission Data as shown below:
6.
To the left of the component's configuration window, click Actions.
7.
In the Trigger field, enter ruleSetRiskScore.
This is the Property ID of the Decisions component you'll set up next.
8.
To the left of the component's configuration window, click Validation.
9.
Set the Required toggle to (ON).
10.
Click Save & Close.
Adding the Number Component
Based on the applicant's credit score and answers to these two questions, you'll provide them with a risk score. Use a Number component to display the score and a Decisions component to determine it.
1.
Drag and drop a Number component onto the canvas, placing it below the previousLoss Radio Buttons components.
The Decisions component is a logic-based components used in if/then scenarios. This component tells your module what to do based on the specified inputs.
1.
Drag and drop a Decisions component onto the canvas, placing it below the riskScore Number component.
To the left of the component's configuration window, click Actions.
4.
In the Inputs table, enter the following:
Property ID
Type
Required
businessLength
exact
(Yes)
previousLoss
exact
(Yes)
5.
In the Outputs table, enter the following:
Property ID
Type
riskScore
value
6.
In the Micro Decisions table, enter the following:
BusinessLength
previousLoss
riskScore_value
0
yes
10
0
no
8
1
yes
7
1
no
6
7.
Click Save & Close.
8.
Save the module.
Reviewing, Previewing, and Testing Your App
Now that you built your modules, it's time to test your application. Open your workflow and click Preview. You'll see that this application corresponds with the modules you created in your app.
1.
Fill out the information fields in the first module.
Make sure to at least fill out the First Name and Email fields so you can test out your Message node.
2.
Follow the process flow onto the next module and input company information. Based on how you answer these questions, you'll receive a risk score.
3.
To submit your application, click Next.
4.
Check your email inbox for the automated email. The workflow sends to the email address and name you entered in the first module.
You created a fully functional application in 20 minutes. And, you did it all without a single line of code. Let's review what you set up.
You used the Micro Decisions table to set up rules to determine the risk score. Here's a summary of how this works:
If the end-user has been in business for less than 5 years, and has filed a previous loss, their risk score is 10.
If the end-user has been in business for less than 5 years, and hasn't filed a previous loss, their risk score is 8.
If the end-user has been in business for 5 years or more, and has filed a previous loss, their risk score is 7.
If the end-user has been in business for 5 years or more, and hasn't filed a previous loss, their risk score is 6.