A Low-Code/No-Code Approach to Strapi Enablement
Tags: strapi, typeform, nocode, lowcode
Published: 2024-04-18 13:04:31

With the advancement of no-code/low-solutions and the rapid development of AI, Strapi is in a unique situation where it is necessary to integrate and enable solutions rapidly in the future via its API-driven strategy and built-in security.


This blog post dives into how Strapi, a powerful yet user-friendly headless CMS, empowers even non-technical teams to build robust business solutions.

Why should we care about no-code/low-code? If you've been keeping up with all the latest developments in AI, one thing is becoming apparent. And in the words of "Jensen Huang" Nvidia's CEO recently said it best -

>"Everybody in the world is now a programmer. This is the miracle of AI"

## Here's what you'll learn:

* **Strapi's Superpower:** Effortless integration with popular tools like [Typeform](https://www.typeform.com/) and [Make.com](https://www.make.com/).

* **No Coding Experience:** Automate workflows and user registration using webhooks and APIs (without writing a single line of code!).

* **Rapid Prototyping & Development:** Strapi's intuitive interface lets you see your ideas come to life faster than ever before.

## Get ready to:
* Simplify complex tasks and streamline your operations.
* Empower your entire team to contribute to building solutions.
* Focus on innovation while Strapi handles the technical heavy lifting.

This blog post is a guide to unlocking Strapi's potential and taking businesses to the next level, even with limited coding expertise!

## Prerequisites
Refer to the prerequisites below to start our journey into a low-code and no-code paradigm. 

1. Install the latest stable version of Strapi on your local machine:
```bash
npx create-strapi-app@latest my-project
```
2. Serve your local Strapi instance to test our registration API using [Postman](https://www.postman.com/).
3. Once you've verified the registration API via Postman, install [Ngrok](https://www.npmjs.com/package/ngrok) on your machine. Ngrok will make our local instance of Strapi visible to the Make scenario.
4. Register with Make (https://www.make.com/en/register).
5. Register with Typeform (https://www.typeform.com/signup/).

## Resources

Here is our Make scenario/blueprint. You will be using this once we get to Make below:

[blueprint-strapi-demo.json.zip](https://github.com/strapi/community-content/files/14897263/blueprint-strapi-demo.json.zip).

## Strapi 

Before diving too deep into the solution, ensure the core essentials work as expected. The following user registration assumes a fresh install of Strapi without any security settings (yet). Start by testing the user registration API using Postman.

If you don't have Postman, I suggest downloading it here -  https://www.postman.com.

### Run Strapi locally (dev mode is fine)
Run the command below to start Strapi in development mode.
```shell
npm run develop
```

### User registration API
Register a user by making a `POST` request to the URL or endpoint below:
```shell
http://localhost:1337/api/auth/local/register
```
### Registration payload (test data)
Below is the request body or payload. You can replace the data with your own below.

```json
{
   "username": "demo@demo.com",
   "email": "king@demo.com",
   "password": "password123!",   
   "blocked": "true",
   "confirmed": "true"
}
```

### Postman Request

Copy and paste the API endpoint and JSON payload above on Postman (as per below).

![001-postman.png](https://api-prod.strapi.io/uploads/001_postman_79330c9aed.png)

On **"Send"**, a successful response should look like this. 

![002-postman.png](https://api-prod.strapi.io/uploads/002_postman_72acee0d34.png)

And under our Strapi instance, we should now see the user listed under **"User"** content type.

![003-admin.png](https://api-prod.strapi.io/uploads/003_admin_ff5eec72a4.png)

Right. With our core requirements confirmed, let's move to the next stage of making our local Strapi instance visible over the web.

## Ngrok

For our external services, which we will cover in the next few steps, we'll need to make our local Strapi instance available on the web. 

Like most things in our tech world, there are several ways to tackle this cattle of fish. However, for our low-code/no-code demo, we will make this as swiftly as possible to get you up and running in no time and get you in the mindset of "Rapid-Prototyping," even if you're not a developer.

Install Ngrok using the following command line.

```
npm i ngrok
```

Once installed, start Ngrok from your command line.
```
ngrok HTTP 1337
```

You should see something like this. Take note and copy your **"Forwarding"** URL. This URL is your public-facing URL. 

![004-ngrok.png](https://api-prod.strapi.io/uploads/004_ngrok_90c8070957.png)

To verify that this is working. Register a new user using Postman again with "bogus details." This time, replace your local Strapi instance URL (keep the endpoint - see below) with your "Forwarding" URL and make a new user registration. Assuming all goes as planned, you should see a new user under the Strapi **User** content type.

Remember, the Ngrok URL can be found under forwarding, in the terminal (see image above).

```
 https://994f-202-129-81-163.ngrok-free.app/api/auth/local/register
```
>**Note**: This could change whenever we rerun the Ngrok start command.

I'm going to register a new user, Mr. King Kong, using our external URL. You should see a successful registration below.

![005-postman.png](https://api-prod.strapi.io/uploads/005_postman_eef6658854.png)

## Ngrok URL + Endpoint (User Registration) Example
Voila! How easy was that!? Now that we have confirmed our basics, we can move on to the next part of our no-code solution by creating a Typeform "Form" and importing a pre-made Make.com "Scenario." 

>**NOTE**: Keep your local Strapi and Ngrok running.

## Typeform
To get started with Typeform, we'll need to register first. Once registered select **"Personal"** and **"Start from scratch"** to create our registration form - 

```
https://www.typeform.com/signup/
```

![006-typeform.png](https://api-prod.strapi.io/uploads/006_typeform_f11475d702.png)

![007-create-form.png](https://api-prod.strapi.io/uploads/007_create_form_630b6e0947.png)

Next give your form a **"Name"** and select **"Registration form"** - 

![008-form.png](https://api-prod.strapi.io/uploads/008_form_a2395c8b8b.png)

Once you've created the form, you'll notice that its defaults are pre-populated with a **"Multiple Choice"** field; hover over the first option **"A Choice 1"** and **"x"** should appear on the right-hand side of the field, click it to delete. And that leaves us with only one option. Let's change that; on the top right-hand corner, under the **"Question"** tab, click the dropdown box and select **"Short Text"** for our **"First name"** field. Then, on the new field label, enter **"First name"**.

> **NOTE**: To add new fields, click on the **"+"** sign at the top left (see Typeform Step 3 below).

### Typeform: Step 1
Delete the multichoice fields.

![009-form-step-1.png](https://api-prod.strapi.io/uploads/009_form_step_1_84d74e7199.png)

### Typeform: Step 2
Change field label to "First name"
![010-form-step-2.png](https://api-prod.strapi.io/uploads/010_form_step_2_53d7a66cb4.png)

### Typeform: Step 3

To add our next field (**last name**), click the **"+"** button on the top left-hand side. A list of options should expand. , choose field type **"Short Text"** and label it **"Last name"**. 

![011-form-step-3.png](https://api-prod.strapi.io/uploads/011_form_step_3_0067a54e74.png)

### Typeform: Step 4 

Select the field type of **"email"** and label it accordingly - 

![012-form-step-4.png](https://api-prod.strapi.io/uploads/012_form_step_4_49a95b9c96.png)

### Typeform: Step 5
Enter the field type as "What's your email?".
![013-form-step-5.png](https://api-prod.strapi.io/uploads/013_form_step_5_e0eaf36129.png)

### Typeform: Step 6 

And you've reached your first step to a no-code form. Let's publish the form by clicking on the top right hand side of the window. Once published you'll get a confirmation screen with the form URL. Don't submit your form just yet, we have a couple of more steps to enable it with a webhook. 

![014-form-step-6.png](https://api-prod.strapi.io/uploads/014_form_step_6_87b2808853.png)

## Make.com

Here we are going to use a pre-made scenario cooked up just for our demo. Under the make dashboard, on the left-hand bar, click on **"Scenarios"** (refer to Make Step 1 below). On the top right hand corner of the scenarios page, click **"Create a new scenario"** (refer to Make Step 2 below).

### Make: Step 1
Click on "Scenario".
![015-make-step-1.png](https://api-prod.strapi.io/uploads/015_make_step_1_97b7b00748.png)


### Make: Step 2
Click on "Create a new scenario" by the top right corner.
![016-make-step-2.png](https://api-prod.strapi.io/uploads/016_make_step_2_dfc256e91d.png)

### Make: Step 3
Import the scenario **"blueprint-strapi-demo.json",** we do this from our scenario page tool bar at the bottom of our page. 

![017-make-step-3.png](https://api-prod.strapi.io/uploads/017_make_step_3_d140c24fce.png)

### Make: Step 4

Select our "blueprint-strapi-demo.json" file attached to this blog.

![018-make-step-4.png](https://api-prod.strapi.io/uploads/018_make_step_4_7ee9baeed7.png)

### Make: Step 5
Once you import the scenario, you should see our five modules below.

![019-make-step-5.png](https://api-prod.strapi.io/uploads/019_make_step_5_b247542435.png)

### Make: Step 6

Here, we need to create a webhook under your make environment, which gets triggered from Typeform on **"Submit"** of the user registration. Let's name it **"Strapi No-Code"**.

On save of our new webhook, a URL will be generated; this is our webhook. Let's copy it and head back to Typeform (refer to Make Step 7).

![020-make-step-6.png](https://api-prod.strapi.io/uploads/020_make_step_6_d4a379cae0.png)

### Make: Step 7

Let's add our Make webhook to our Typeform; select your form and click on _**connect > webhooks > Add a webhook**_ (refer to the image below).

 ![021-make-step-7.png](https://api-prod.strapi.io/uploads/021_make_step_7_eb9253baf2.png)

Paste your webhook and click **"Save webhook"**.

![022-webhook.png](https://api-prod.strapi.io/uploads/022_webhook_209a79904d.png)

Once saved, toggle our **"Webhook"** to **"ON"**.

![023-webhook-2.png](https://api-prod.strapi.io/uploads/023_webhook_2_ff83e2e42f.png)

### Make: Step 8

We're on the home straight now! 

In our final step to getting this automation up and running, we need to tell Make where to submit our form, i.e., Our local Strapi instance, which we've served using Ngrok. On your make scenario, click on the last module **"Strapi POST User Registration"** and update the URL with your Ngrok **"Forwarding"** URL. 

![024-make-step-8.png](https://api-prod.strapi.io/uploads/024_make_step_8_e7b10f0516.png)

To check what our payload from Make to Strapi looks like, scroll down the module settings. You'll notice that the password has been assigned a **"uuid"** value. This is a Binary Function that is built to Make. We use this to make sure our password is secured.

![025-make-step-8-1.png](https://api-prod.strapi.io/uploads/025_make_step_8_1_635196fb49.png)


![026-makle-step-8-2.png](https://api-prod.strapi.io/uploads/026_makle_step_8_2_c4c6037cdc.png)

## Let's Test Your Solution

### Test: Step 1
Go to your Make scenario and click the **"Play"** button; it should then refresh to an active webhook. This, of course, means registering a new user from Typeform. Head down to **"Test Step 2"**.

![027-test-step-1.png](https://api-prod.strapi.io/uploads/027_test_step_1_85aac9641b.png)

### Test: Step 2

On Typeform, select your **"form"** and click **"View"**. This will take you to our published form. Enter your details and submit.

![028-test-step-2.png](https://api-prod.strapi.io/uploads/028_test_step_2_b3079b3331.png)

If you're monitoring your Strapi logs, you should see the post request come through.

![029-terminal.png](https://api-prod.strapi.io/uploads/029_terminal_aede762a03.png)

In my case, the new user is **"bugs@bunny.com"**, and it's now visible under our **User** content type.

![030-user.png](https://api-prod.strapi.io/uploads/030_user_a2faac5972.png)

## Demo Time!
Let's check a quick demo:

https://github.com/strapi/community-content/assets/4221574/7c698e27-111c-4cae-a964-727f530bb189

## Conclusion

Arguably, these are new tools to learn and master. However, the same could be said for all the frameworks that are released yearly.

While no-code/low-code solutions might not be the answer for every project, they offer a compelling value proposition. 

Consider these advantages:
* **Rapid Prototyping:**  Streamline your development process by quickly building prototypes and testing ideas before diving into complex coding. This allows for faster iteration and validation. 
* **Empowering Less Technical Teams:**  No-code/low-code tools empower teams with limited coding experience to contribute to AI solution development. This fosters broader team participation and innovation.
* **Building User Interfaces (UI) with AI:**  Solutions like Strapi shines in enabling user interfaces specifically designed for AI-powered solutions (think agents), bridging the gap between AI functionality and user interaction.

**The Takeaway:** No-code/low-code tools like Typeform, Make.com, and Strapi act as powerful springboards for building and deploying solutions at scale. Their intuitive interfaces and focus on user experience can democratize development and accelerate your journey toward innovation.