AI Generated Image
The AI Generated Image feature allows the bot to create unique illustrative images based on text input from users. It's perfect for visualizing creative ideas, generating product illustrations, or enhancing marketing with engaging visuals.
Common Use Cases:
- Generate Sample Product Images:
Users describe a product idea → AI generates a matching visual illustration.
- Illustrate Blog Posts or Social Media Content:
Automatically create eye-catching images based on the provided topic or content.
- Inspire Creative Ideas:
Help users visualize their rough concepts through AI-generated images.
Example:
User:
“Create an illustration of a jasmine-scented perfume with a soft, natural style.”
Bot (AI Image Generation):
The generated image features jasmine flowers, soft pastel tones, and a gentle, feminine aesthetic.
Setup Steps:
Step 1: Create the basic blocks
- “question” Block
Save the user’s image description into the {{question}}
attribute.
- Image Generation Block
Create a new block → Integration AI → ChatGPT
Type:
Generation Image
Model:
GPT Image 1
,DALL·E 3
,DALL·E 2
Size:
Auto
,Square - 1024x1024
,Landscape - 1536x1024
,Portrait - 1024x1536
Quality:
Auto
,High
,Medium
,Low
Message send to OpenAI:
{{question}}
Save the response value to attribute:
{{answer}}
- “answer” Block
Display the image from the {{answer}}
attribute to the user.
- “failed” Block
Provide a fallback message in case the image generation fails.
Flow Diagram Overview:
- Flow:
User enters a description → saved in
question
question
is sent to ChatGPT Image → image returned → saved inanswer
Image from
answer
is displayed to the userIf an error occurs → redirect to
failed
block
Tips:
Encourage users to provide detailed and specific descriptions for more accurate image results.
Combine with user attributes like product name or brand theme to generate personalized visuals.