Custom Text Personalization

Custom Text lets your customers add personalized text — names, dates, quotes, and more — to their AI-generated designs. When enabled on a style, a text input appears on the product page and the customer's input is woven into the AI prompt at generation time.

Overview

The feature has two sides:

  1. Admin configuration — you pick a text type, set validation rules, and write a prompt template that includes the {{CUSTOM_TEXT}} placeholder.
  2. Storefront experience — the customer sees a labeled input field, types their text, and the AI uses it when generating the design.

Prerequisites

  • Autopictura app installed and at least one AI style created
  • Access to the Autopictura admin panel

Enabling Custom Text on a Style

  1. Open the Autopictura admin and navigate to the style you want to edit.
  2. Scroll to the Custom Text Input section (marked with a BETA badge).
  3. Toggle Enable Custom Text Input on.
  4. Choose a Text Type from the dropdown (see Available Text Types below).
  5. Optionally toggle Text is Required — when enabled, customers must enter text before they can generate.
  6. Set the Maximum Character Length (1–500, default 50).
  7. Write a Prompt Template with Custom Text that includes the {{CUSTOM_TEXT}} placeholder.
  8. Save the style.

The {{CUSTOM_TEXT}} Placeholder

When a customer enters text and clicks generate, Autopictura replaces {{CUSTOM_TEXT}} in your prompt template with the sanitized customer input. If the customer leaves the field empty (and it isn't required), the regular prompt template is used instead.

How It Works

Each style can have two prompt templates:

TemplateUsed when
Prompt Template (standard)No custom text provided, or custom text is disabled
Prompt Template with Custom TextCustomer entered text and the style has custom text enabled

The placeholder is a simple find-and-replace: {{CUSTOM_TEXT}} → the customer's input after sanitization.

Example Prompt Templates per Text Type

Below are example prompt templates for every text type. Each one uses {{CUSTOM_TEXT}} where the customer's input will appear.

Child's Name

A whimsical watercolor portrait of a child with the name "{{CUSTOM_TEXT}}" written in playful hand-lettered typography, soft pastel colors, nursery art style

Baby's Name

A gentle newborn announcement artwork featuring the name "{{CUSTOM_TEXT}}" in elegant calligraphy, surrounded by soft florals and stars, dreamy pastel palette

Pet's Name

A charming illustrated pet portrait with the name "{{CUSTOM_TEXT}}" in a decorative banner below, vibrant colors, playful cartoon style

Couple Names

A romantic artwork with "{{CUSTOM_TEXT}}" intertwined in elegant script, floral accents, wedding invitation style, gold and blush tones

Family Name

A warm family crest-style illustration featuring "{{CUSTOM_TEXT}}" in a classic serif font, ornamental frame, vintage earth tones

Special Date

A commemorative artwork with the date "{{CUSTOM_TEXT}}" displayed in a timeless typographic layout, minimalist design, anniversary keepsake style

Location

A stylized travel poster-inspired illustration of {{CUSTOM_TEXT}}, vibrant retro color palette, vintage tourism art style

Quote

A beautifully typeset artwork featuring the quote "{{CUSTOM_TEXT}}" in modern calligraphy, decorative flourishes, inspirational wall art style

Initials

A sophisticated monogram design featuring the initials "{{CUSTOM_TEXT}}" in an ornate interlocking style, gold foil effect, luxury brand aesthetic

Title

A bold artwork with the title "{{CUSTOM_TEXT}}" in striking display typography, modern poster design, high contrast colors

Custom Text (generic)

An artistic design incorporating the text "{{CUSTOM_TEXT}}" in a creative typographic layout, balanced composition, contemporary art style

Nickname

A fun and playful artwork featuring the nickname "{{CUSTOM_TEXT}}" in a comic-style speech bubble, bright colors, pop art aesthetic

Occasion

A festive celebration artwork for {{CUSTOM_TEXT}}, confetti and ribbons, joyful color palette, party invitation style

Year

A retro-inspired year artwork featuring "{{CUSTOM_TEXT}}" in bold vintage block letters, nostalgic color scheme, yearbook cover style

Message

A heartfelt greeting card design with the message "{{CUSTOM_TEXT}}" in elegant handwriting, watercolor background, warm and inviting

Dedication

A touching tribute artwork with the dedication "{{CUSTOM_TEXT}}" in graceful italic script, subtle vignette, memorial keepsake style

Memory

A nostalgic scrapbook-style illustration with "{{CUSTOM_TEXT}}" in a vintage typewriter font, polaroid frame, sepia-toned accents

Team Name

A dynamic sports-inspired logo design with "{{CUSTOM_TEXT}}" in powerful athletic lettering, bold team colors, championship banner style

Company Name

A professional corporate artwork featuring "{{CUSTOM_TEXT}}" in clean modern sans-serif typography, business branding style, sleek and minimal

Slogan

A motivational poster design with the slogan "{{CUSTOM_TEXT}}" in impactful display typography, gradient background, rally cry aesthetic

Available Text Types

When you enable Custom Text on a style, you choose a Text Type. This controls the label customers see, the placeholder hint in the input field, and helps communicate what kind of text is expected.

Text TypeAdmin LabelStorefront LabelPlaceholder
child_nameChild's NameEnter child's namee.g., Emma
baby_nameBaby's NameEnter baby's namee.g., Oliver
pet_namePet's NameEnter pet's namee.g., Max
couple_namesCouple NamesEnter couple namese.g., John & Jane
family_nameFamily NameEnter family namee.g., The Smiths
special_dateSpecial DateEnter special datee.g., 12.25.2024
locationLocationEnter locatione.g., Paris, France
quoteQuoteEnter quotee.g., Live, Laugh, Love
initialsInitialsEnter initialse.g., JD
titleTitleEnter titlee.g., Best Dad Ever
custom_textCustom TextEnter custom textEnter your text
nicknameNicknameEnter nicknamee.g., Buddy
occasionOccasionEnter occasione.g., Birthday 2024
yearYearEnter yeare.g., 2024
messageMessageEnter messagee.g., Happy Birthday!
dedicationDedicationEnter dedicatione.g., For Mom
memoryMemoryEnter memorye.g., Summer 2024
team_nameTeam NameEnter team namee.g., The Eagles
company_nameCompany NameEnter company namee.g., Acme Inc.
sloganSloganEnter slogane.g., Dream Big

Field Position

The custom text input can be placed either above or below the image upload area. This is configured in two places:

  • Theme Editor — go to Theme Settings → App Embeds → Autopictura Extension and change the Custom text field position setting.
  • The position applies to all styles that have custom text enabled.

Special Characters Handling

Emojis and special Unicode characters often don't render well in AI-generated images. The theme extension provides two modes, configurable in the Shopify theme editor under the Autopictura extension settings:

ModeBehavior
Allow (warn)Characters are kept, but a warning message appears telling the customer they may not render correctly.
BlockEmojis and special characters are automatically stripped from the input.

Text Sanitization

All custom text input is sanitized server-side before being sent to the AI model. The following are automatically removed:

  • Control characters (U+0000–U+001F, U+007F–U+009F)
  • Zero-width characters (U+200B–U+200F, U+202A–U+202E, U+FEFF)
  • Null bytes
  • Multiple consecutive spaces (collapsed to single space)

Empty or whitespace-only input is treated as no text provided.

Translations

The custom text UI is fully translated into six languages. The storefront automatically detects the customer's language from the Shopify locale and falls back to the browser language, then to English.

Supported Languages

KeyEnglish (en)Dutch (nl)German (de)French (fr)Hungarian (hu)Romanian (ro)
customTextCustom textAangepaste tekstBenutzerdefinierter TextTexte personnaliséEgyéni szövegText personalizat
enterCustomTextEnter your textVoer je tekst inGeben Sie Ihren Text einEntrez votre texteÍrd be a szövegedIntrodu textul tău
customTextRequiredText is requiredTekst is verplichtText ist erforderlichLe texte est requisA szöveg kötelezőTextul este obligatoriu
optional(optional)(optioneel)(optional)(optionnel)(opcionális)(opțional)
required(required)(verplicht)(erforderlich)(requis)(kötelező)(obligatoriu)
charactersRemainingcharacters remainingtekens overZeichen übrigcaractères restantskarakter maradtcaractere rămase
specialCharsMayNotRenderSpecial characters may not render correctlySpeciale tekens worden mogelijk niet correct weergegevenSonderzeichen werden möglicherweise nicht richtig angezeigtLes caractères spéciaux peuvent ne pas s'afficher correctementA speciális karakterek esetleg nem jelennek meg helyesenCaracterele speciale pot să nu fie afișate corect
specialCharsNotSupportedSpecial characters are not supportedSpeciale tekens worden niet ondersteundSonderzeichen werden nicht unterstütztLes caractères spéciaux ne sont pas pris en chargeA speciális karakterek nem támogatottakCaracterele speciale nu sunt acceptate

How Locale Detection Works

  1. The storefront checks window.Shopify.locale (e.g., nl-NL, en-US).
  2. The language portion is extracted (nl, en).
  3. If a translation exists for that language, it's used.
  4. Otherwise the browser's navigator.language is checked.
  5. If neither matches, English is used as the fallback.

CSS Customization

All custom text elements use namespaced CSS classes that you can override in your theme:

ClassElement
.autopictura-custom-text-sectionOuter container
.autopictura-custom-text-section--abovePosition modifier (above image upload)
.autopictura-custom-text-section--belowPosition modifier (below image upload)
.autopictura-custom-text-section--errorError state on the container
.autopictura-custom-text-labelThe label element
.autopictura-custom-text-inputThe text input field
.autopictura-custom-text-input--errorError state on the input
.autopictura-custom-text-footerFooter area (counter + messages)
.autopictura-custom-text-counterCharacter counter
.autopictura-custom-text-errorError message
.autopictura-custom-text-warningWarning message (special chars)
.autopictura-requiredRequired badge
.autopictura-optionalOptional badge

Testing Custom Text

When editing a style in the Autopictura admin, you can test the prompt with custom text:

  1. Enable custom text and write your prompt template with {{CUSTOM_TEXT}}.
  2. Scroll down to the test section.
  3. Enter sample text in the Test custom text field.
  4. Click Test Prompt — the preview will show the final prompt with your test text substituted in.

Tips

  • Keep the {{CUSTOM_TEXT}} placeholder inside quotes in the prompt (e.g., "{{CUSTOM_TEXT}}") to help the AI treat it as a distinct text element.
  • Set a reasonable max length — shorter text (20–50 characters) tends to render more cleanly in AI-generated images than long paragraphs.
  • Use the required toggle for styles where the design only makes sense with personalized text (e.g., a name-on-mug product).
  • Test with different text lengths and special characters to make sure your prompt produces good results.