Available only on the "Business" plan.

Personalized images are custom illustrations or thumbnails that can be uniquely adapted for each user in your project. This customization typically involves modifying specific elements, such as text, to serve different purposes—for instance, displaying a user's name within the image to increase engagement.

Let’s create one together.

Creating a personalized image

To create a personalized image, you will need to use the certificate builder. You can access it from the course creation section.

In the certificate builder, you can configure personalized images to be distributed via a chatbot.

Step 1: Set Up the Certificate and Its Text

  1. Click "Create Certificate."
  2. Upload your chosen image as the certificate template.

Be sure to activate the checkbox "Use the template as a custom image."

Now go to the certificate settings and arrange the necessary elements in the order you want:

Enter the placeholder for the recipient's name (which will be dynamically replaced via the chatbot), along with any additional text you want to appear on the image. You can also configure other display settings here.

The certificate builder offers flexibility: feel free to experiment with different colors, fonts, images, and other design elements.

To deliver these personalized images, you will need to use a chatbot function within a messenger that is integrated with the MaviBot system.

Sending a file via chatbot

Go to the chatbot workflow where you want to send personalized images. There, you will need to use the function:
get_custom_image(image_id, name_on_image, avatar)

Please note

Each time you use this function, it uses the same resources as sending 10 regular messages.

You can find the image ID here:

As an example, let’s use a simple chatbot workflow that will send an image in the chat:

So, in the second block, we’ll ask the client for their name, and in the arrow settings leading to the third block, we’ll specify that the user is entering data and save their name into a variable:

In the final workflow block responsible for sending the image, insert the function into the calculator field. Use the following format, including the image_id and your name variable.

Please note

The get_custom_image function returns a dictionary. To display the image in the chat, do not output the result variable (e.g., image_1) directly. Instead, you must reference the value stored under the 'url' key (e.g., image_for_user).

If configured correctly, the image will be sent and displayed in the chat immediately.

Variable naming rules

When naming your variable in the calculator, ensure the name:

  • Contains only Latin letters and numbers (e.g., picture is correct).
  • Has no spaces (use underscores: e.g., apple_on_table).
  • Places numbers at the end (e.g., apple1, not 1apple).

Note that we used the syntax #{full_name} to dynamically insert the value provided by the user into the variable.

As a result, the images sent in the chat will be personalized with the name the user entered during the conversation.