Skip to content

Play around with the Open AI API

⚠️ Test your scenarios and save them at every step!

⚠️ Use your school email to log in to make.com, or you won’t be able to complete this practice!

⚠️ Test your prompts in ChatGPT before using them in a module!


🟢 Level 1 - Generate the text content of a digital product using AI

As a welcome gift for our new subscribers, you will generate a custom digital product.
1️⃣ Add an OpenAI “Generate a completion” module to your “Mailhook” scenario and create a connection. Please follow the following instructions :
Rename your new connection so you can find it easily later.
Use the credentials sent via email to configure your OpenAI Connection.
2️⃣Select the gpt-4o-mini (system) model. Use the content of your subscriber’s email reply to generate the content of a 2-page lead magnet for your B2B impact company containing the following :
a company name
a title
an introduction
a ten-item checklist,
an “About us” section,
a “Next steps” section,
The output must be in JSON format so it can be used in the following steps of the scenario.
Clues :
Your JSON could look like this :
{ "companyName": "string", "title": "string", "introduction": "string", "aboutUs": "string", "nextStep": "string", "tenItemChecklist": { "item1": "string", "item2": "string", "item3": "string", "item4": "string", "item5": "string", "item6": "string", "item7": "string", "item8": "string", "item9": "string", "item10": "string" } }
In the instruction prompt, you need to tell the AI to output only Json.
3️⃣ Using the provided Google Doc template, create a lead magnet containing the content output by the OpenAI “Generate a completion module”. Here’s the link to the template. You can copy it to your own Google Workspace:
Clues
There is a module in Make that allows you to create a document from a Google Doc template.
To map the content output by your OpenAI module to your Google Doc Module, you may need to use a “Parse JSON” module.
You can map the content from the “Parse JSON” module in the “values” section of the Google Doc module.
4️⃣ Modify the email so that it contains a link to the newly created document.
Clue :
If you want anyone with the link to be able to access the shared document, you will need to create a share link via a dedicated Google Drive module and include it in the email content.
5️⃣Test your scenario again.

🟠 Level 2- Generate the image content of a digital product using AI

1️⃣ Add an OpenAI “Generate images” module to your “Mailhook” scenario and create a connection.
Use the OpenAI connection you used in the previous exercise.
Select the Dall-E 2 model
Choose a 512x512 size
In “Advanced Settings”, use the URL response format.
2️⃣ Use the content of your digital product to generate an illustration.
Clue : You can write a simple prompt and map the results of the “Generate a completion” OpenAI module in it, so the prompt can dynamically adapt to your subscribers' replies.
3️⃣ Using the “Create a document from a template” Google Doc module, add the illustration to your digital product.
Clues :
You will need to download the file from the URL provided by OpenAI using the “HTTP - Download a file” Module
To add this image to your Google Document, you will need to host it. Use the Magic API “Image Upload API” to do it.
Go to and create an account and an API Key.
Read the documentation. Use the HTTP - Make a request module to upload the OpenAI image file you have downloaded. Make sure you select the correct authentication type and body content types. You will need to create an API Key.
Map the URL contained in the API response in the Google Docs - “Create document from template” module.


Want to print your doc?
This is not the way.
Try clicking the ··· in the right corner or using a keyboard shortcut (
CtrlP
) instead.