Skip to main content

Content Block Types

When using the Designs from Content API, you can specify various types of content blocks within the content object. This document provides details about all supported content block types and how to use them effectively.

Text-Based Content Blocks

These content blocks are used for various types of textual content in your designs:

Block TypeDescriptionExample
titleMain headline or title for your design"title": "Discover the Freedom"
supertextText that appears above the title (often smaller)"supertext": "New Year"
subtextSupporting text that appears below the title"subtext": "Explore our latest collection of cars and bikes."
textGeneral body text content"text": "Leading auto portal for content and commerce hitting 30 Mn+ unique visitors month."
captionSmall explanatory text, often used with images"caption": "Terms and conditions apply."

Call-to-Action Blocks

These blocks help engage users to take specific actions:

Block TypeDescriptionExample
buttonText for buttons or call-to-action elements"button": "Shop Now"
couponCoupon or promo codes"coupon": "BONUS20"
offerSpecial offer or promotion text"offer": "Limited Time: Up to 20% Off"

List Content Blocks

For presenting information in list format:

Block TypeDescriptionExample
bulletlistArray of items to display as a bulleted list"bulletlist": ["Wide range of models", "Best price"]
numberedlistArray of items to display as a numbered list"numberedlist": ["Free Service", "Offer price"]

Date and Time Blocks

For time-sensitive content:

Block TypeDescriptionExample
date_timeDate and/or time information"date_time": "12th July 2024"

Contact Information Blocks

For including contact details in your designs:

Block TypeDescriptionExample
phonePhone number"phone": "+1 (800) 3543 323"
emailEmail address"email": "joe@example.com"
websiteWebsite URL"website": "www.example.com"
addressPhysical address"address": "40, M. Ave, Richmond road, US"

Social Media Blocks

For incorporating social media handles:

Block TypeDescriptionExample
whatsappWhatsApp contact number"whatsapp": "+1 6351621222"
instagramInstagram handle"instagram": "@example"
facebookFacebook username"facebook": "example"
linkedinLinkedIn username"linkedin": "joe_example"
twitterTwitter/X handle"twitter": "@example"
behanceBehance username"behance": "example"
dribbbleDribbble username"dribbble": "example"
pinterestPinterest username"pinterest": "example"
slackSlack workspace name"slack": "example"

Best Practices

  1. Include necessary content blocks: Different design types may require specific content blocks. For example, an advertisement design typically needs a title, offer, and button.

  2. Keep content concise: For optimal design generation, keep your content brief and to the point.

  3. Combine with assets: Pairing appropriate content blocks with relevant images and logos (via the assets object) yields the best design results.

  4. Plan hierarchically: Consider how content will be organized - titles should be brief and attention-grabbing, while supportive text can provide details.

Example Usage

Here's a comprehensive example showing how various content blocks can be combined:

{
"content": {
"title": "Summer Collection 2025",
"supertext": "New Arrival",
"subtext": "Premium quality at affordable prices",
"offer": "Limited Time: Up to 30% Off",
"bulletlist": [
"Ethically sourced materials",
"Free shipping on orders over $50",
"30-day money-back guarantee"
],
"button": "Shop Now",
"date_time": "August 31, 2025",
"website": "www.example-store.com",
"instagram": "@example_fashion"
}
}